Showing changes from revision #0 to #1:
Added | Removed | Changed
Entry | |
---|---|
R0 | 1 (reason code: enumerate units) |
R1 | 0 on first call, or preserved on subsequent calls |
R2 | Bits 0 – 7 = slot number |
Bits 8 – 15 = bus number | |
Bits 16 – 31 ignored |
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 |
R2 | Bits 0 – 7 = slot number |
Bits 8 – 15 = bus number | |
Bits 16 – 31 = relative card address (RCA) | |
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) |
This SWI is used to enable the caller to discover the memory cards and IO functions available in a given slot.
This SWI is not re-entrant.
None.