From e6593c6ded66bef65d4275ed5bd61f0d161aa5ec Mon Sep 17 00:00:00 2001 From: mav Date: Tue, 20 Jan 2009 17:36:58 +0000 Subject: Implement MMCBR_IVAR_CAPS. It should better be implemented, or results can be unpredictable. PR: arm/128987 --- sys/arm/at91/at91_mci.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sys/arm') diff --git a/sys/arm/at91/at91_mci.c b/sys/arm/at91/at91_mci.c index 80ebe89..f55e371 100644 --- a/sys/arm/at91/at91_mci.c +++ b/sys/arm/at91/at91_mci.c @@ -643,6 +643,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.caps; + break; case MMCBR_IVAR_MAX_DATA: *(int *)result = 1; break; @@ -683,6 +686,7 @@ at91_mci_write_ivar(device_t bus, device_t child, int which, uintptr_t value) sc->host.ios.vdd = value; break; /* These are read-only */ + case MMCBR_IVAR_CAPS: case MMCBR_IVAR_HOST_OCR: case MMCBR_IVAR_F_MIN: case MMCBR_IVAR_F_MAX: -- cgit v1.1