diff options
author | imp <imp@FreeBSD.org> | 2008-10-02 07:06:59 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2008-10-02 07:06:59 +0000 |
commit | 97389cb928ffca7d653c1f4ea018250eea64079b (patch) | |
tree | f0628f749027058b9a61d19f899475d975689fc4 /sys/dev/mmc/mmcreg.h | |
parent | fa4528e966e99bf0a083fd49cdb060b34bb8804a (diff) | |
download | FreeBSD-src-97389cb928ffca7d653c1f4ea018250eea64079b.zip FreeBSD-src-97389cb928ffca7d653c1f4ea018250eea64079b.tar.gz |
Define and use MMC_SECTOR_SIZE.
Make mmc_get_media_size now return an off_t and remove now useless cast.
Diffstat (limited to 'sys/dev/mmc/mmcreg.h')
-rw-r--r-- | sys/dev/mmc/mmcreg.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/dev/mmc/mmcreg.h b/sys/dev/mmc/mmcreg.h index 6bd45fc..3aac296 100644 --- a/sys/dev/mmc/mmcreg.h +++ b/sys/dev/mmc/mmcreg.h @@ -351,4 +351,12 @@ struct mmc_csd wp_grp_enable:1; }; +/* + * Older versions of the MMC standard had a variable sector size. However, + * I've been able to find no old MMC or SD cards that have a non 512 + * byte sector size anywhere, so we assume that such cards are very rare + * and only note their existance in passing here... + */ +#define MMC_SECTOR_SIZE 512 + #endif /* DEV_MMCREG_H */ |