libsdhcdrivers: Extract write and read commands

Write and read commands share the same logic with only the command
being the difference thus logic can be extracted.
1 file changed