h6. [[SDIODriver]] h6(. » [[SDIODriver SWI Calls|SWI Calls]] h6((. » [[SDIO_Enumerate]] h6(((. » SDIO_Enumerate 1 h2. SDIO_Enumerate 1 h5. (SWI &59002) |_<^{width:4em}. Entry | | |<^. R0 |<^. 1 (reason code: enumerate units) | |<^. R1 |<^. 0 on first call, or preserved on subsequent calls | |/3<^. R2 |<^. Bits 0 - 7 = slot number | |<^. Bits 8 - 15 = bus number | |<^. Bits 16 - 31 ignored | |_<^{width:4em}. Exit | | |<^. R0 |<^. Preserved | |<^. R1 |<^. 0 if no more units (R2 and R3 are not valid in this case), else the value to pass in R1 to next call | |/3<^. R2 |<^. Bits 0 - 7 = slot number | |<^. Bits 8 - 15 = bus number | |<^. Bits 16 - 31 = relative card address (RCA) | |/5<^. R3 |<^. Bits 0 - 7 = unit number | |<^. Bits 8 - 15 = function interface code (FIC) for IO, or 0 for memory(1 = UART, 2 = Bluetooth Type-A etc.) | |<^. Bit 16 set => device is write-protected | |<^. Bit 17 set => MMC (rather than SD/SDIO) device | |<^. Bits 18 - 31 reserved, 0 | |<^. R4 |<^. Low word of card capacity (for memory cards) | |<^. R5 |<^. High word of card capacity (for memory cards) | h4. Use This SWI is used to enable the caller to discover the memory cards and IO functions available in a given slot. h4. Re-entrancy This SWI is not re-entrant. h4. Notes None. h4. See also * [[SDIO_Enumerate]] * [[SDIO_Initialise]]