summaryrefslogtreecommitdiffstats
path: root/sys/dev/mmc/mmcbrvar.h
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2008-09-28 22:40:11 +0000
committerimp <imp@FreeBSD.org>2008-09-28 22:40:11 +0000
commit0de91f430bf941d9f61c958e040420c3b7e3cab0 (patch)
treedbe56b7b3b48488f07d956e2fbe0ebc488f9250f /sys/dev/mmc/mmcbrvar.h
parentdb3715c928cd7dc3811372e9f8c03d03f1c044ee (diff)
downloadFreeBSD-src-0de91f430bf941d9f61c958e040420c3b7e3cab0.zip
FreeBSD-src-0de91f430bf941d9f61c958e040420c3b7e3cab0.tar.gz
Propigate read-only status of cards. Right now it is read only at
device attach time. We may need to read this more often in the future, but for now simplicity of implementation wins. Submitted by: mav@
Diffstat (limited to 'sys/dev/mmc/mmcbrvar.h')
-rw-r--r--sys/dev/mmc/mmcbrvar.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/mmc/mmcbrvar.h b/sys/dev/mmc/mmcbrvar.h
index 0f8a9cf..9a8bb47 100644
--- a/sys/dev/mmc/mmcbrvar.h
+++ b/sys/dev/mmc/mmcbrvar.h
@@ -97,4 +97,10 @@ mmcbr_update_ios(device_t dev)
return (MMCBR_UPDATE_IOS(device_get_parent(dev), dev));
}
+static int __inline
+mmcbr_get_ro(device_t dev)
+{
+ return (MMCBR_GET_RO(device_get_parent(dev), dev));
+}
+
#endif /* DEV_MMC_MMCBRVAR_H */
OpenPOWER on IntegriCloud