1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-06 13:09:50 +00:00

Implement MMCBR_IVAR_CAPS. It should better be implemented, or results

can be unpredictable.

PR:		arm/128987
This commit is contained in:
Alexander Motin 2009-01-20 17:36:58 +00:00
parent 3f8760e331
commit 96dfc86948
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=187476

View File

@ -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: