diff options
author | imp <imp@FreeBSD.org> | 2008-09-28 23:37:56 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2008-09-28 23:37:56 +0000 |
commit | 3808bd172daf18100917365656736f85a590a4fa (patch) | |
tree | 50c6eccced45c4b5847be1c1ef80fbe2427a45c3 /sys/arm | |
parent | c737e2ef8246f752164f463eda39ee26b7dac084 (diff) | |
download | FreeBSD-src-3808bd172daf18100917365656736f85a590a4fa.zip FreeBSD-src-3808bd172daf18100917365656736f85a590a4fa.tar.gz |
Implement MMCBR_IVAR_CAPS for AT91 MCI device.
Submitted by: mav@ (well, not this one, but the base impl was)
Diffstat (limited to 'sys/arm')
-rw-r--r-- | sys/arm/at91/at91_mci.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/arm/at91/at91_mci.c b/sys/arm/at91/at91_mci.c index 1c0a22c..8daeedd 100644 --- a/sys/arm/at91/at91_mci.c +++ b/sys/arm/at91/at91_mci.c @@ -642,6 +642,9 @@ at91_mci_read_ivar(device_t bus, device_t child, int which, u_char *result) case MMCBR_IVAR_VDD: *(int *)result = sc->host.ios.vdd; break; + case MMCBR_IVAR_CAPS: + *(int *)result = sc->host.ios.caps; + break; } return (0); } @@ -678,9 +681,11 @@ at91_mci_write_ivar(device_t bus, device_t child, int which, uintptr_t value) case MMCBR_IVAR_VDD: sc->host.ios.vdd = value; break; + /* These are read-only */ case MMCBR_IVAR_HOST_OCR: case MMCBR_IVAR_F_MIN: case MMCBR_IVAR_F_MAX: + case MMCBR_IVAR_CAPS: return (EINVAL); } return (0); |