Make the media size return the block rather than the bytes on the device.

This commit is contained in:
Warner Losh 2008-09-29 18:55:45 +00:00
parent 4e0efe35fa
commit 051bc8ead2

View File

@ -760,7 +760,7 @@ mmc_read_ivar(device_t bus, device_t child, int which, u_char *result)
*(int *)result = ivar->csd.dsr_imp;
break;
case MMC_IVAR_MEDIA_SIZE:
*(int *)result = ivar->csd.capacity;
*(int *)result = ivar->csd.capacity / DEV_BSIZE;
break;
case MMC_IVAR_RCA:
*(int *)result = ivar->rca;