summaryrefslogtreecommitdiffstats
path: root/sys/dev/mmc/mmc.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/mmc/mmc.c')
-rw-r--r--sys/dev/mmc/mmc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/mmc/mmc.c b/sys/dev/mmc/mmc.c
index c6bce35..bea8c3b 100644
--- a/sys/dev/mmc/mmc.c
+++ b/sys/dev/mmc/mmc.c
@@ -1343,6 +1343,9 @@ mmc_read_ivar(device_t bus, device_t child, int which, u_char *result)
case MMC_IVAR_ERASE_SECTOR:
*(int *)result = ivar->erase_sector;
break;
+ case MMC_IVAR_MAX_DATA:
+ *(int *)result = mmcbr_get_max_data(bus);
+ break;
}
return (0);
}
OpenPOWER on IntegriCloud