Fix divisor calculation for SDHC 3.0.
1/1   -> 0
1/2   -> 1
1/4   -> 2
...
1/2*N -> N
Be a bit more verbose about errors, also pass through error code
from lower layer like other drivers.
Fix tools build on !NetBSD.
devmajor_t not int