diff options
Diffstat (limited to 'freebsd/sys/dev/mmc/mmcvar.h')
-rw-r--r-- | freebsd/sys/dev/mmc/mmcvar.h | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/freebsd/sys/dev/mmc/mmcvar.h b/freebsd/sys/dev/mmc/mmcvar.h index 99b8a6a5..c7a4af99 100644 --- a/freebsd/sys/dev/mmc/mmcvar.h +++ b/freebsd/sys/dev/mmc/mmcvar.h @@ -69,25 +69,18 @@ enum mmc_device_ivars { MMC_IVAR_BUS_WIDTH, MMC_IVAR_ERASE_SECTOR, MMC_IVAR_MAX_DATA, - MMC_IVAR_CARD_ID_STRING + MMC_IVAR_CARD_ID_STRING, + MMC_IVAR_CARD_SN_STRING, }; /* - * Simplified accessors for pci devices + * Simplified accessors for mmc devices */ #define MMC_ACCESSOR(var, ivar, type) \ __BUS_ACCESSOR(mmc, var, MMC, ivar, type) MMC_ACCESSOR(dsr_imp, DSR_IMP, int) -#ifndef __rtems__ -MMC_ACCESSOR(media_size, MEDIA_SIZE, off_t) -#else /* __rtems__ */ -/* - * The instance variable value storage is limited by the uintptr_t type. Since - * off_t has more bits than uintptr_t on most RTEMS targets, we need this hack. - */ -MMC_ACCESSOR(media_size, MEDIA_SIZE, uintptr_t) -#endif /* __rtems__ */ +MMC_ACCESSOR(media_size, MEDIA_SIZE, long) MMC_ACCESSOR(rca, RCA, int) MMC_ACCESSOR(sector_size, SECTOR_SIZE, int) MMC_ACCESSOR(tran_speed, TRAN_SPEED, int) @@ -98,5 +91,6 @@ MMC_ACCESSOR(bus_width, BUS_WIDTH, int) MMC_ACCESSOR(erase_sector, ERASE_SECTOR, int) MMC_ACCESSOR(max_data, MAX_DATA, int) MMC_ACCESSOR(card_id_string, CARD_ID_STRING, const char *) +MMC_ACCESSOR(card_sn_string, CARD_SN_STRING, const char *) #endif /* DEV_MMC_MMCVAR_H */ |