defined the rest of the wii sd commands which libogc actually uses
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3012 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
2b906ae8b2
commit
dee79c719e
|
@ -141,7 +141,7 @@ bool CWII_IPC_HLE_Device_sdio_slot0::IOCtlV(u32 _CommandAddress)
|
||||||
u32 Cmd = Memory::Read_U32(_CommandAddress + 0xC);
|
u32 Cmd = Memory::Read_U32(_CommandAddress + 0xC);
|
||||||
|
|
||||||
switch (Cmd) {
|
switch (Cmd) {
|
||||||
case IOCTL_SENDCMD:
|
case IOCTLV_SENDCMD:
|
||||||
ERROR_LOG(WII_IPC_SD, "IOCTLV_SENDCMD");
|
ERROR_LOG(WII_IPC_SD, "IOCTLV_SENDCMD");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -179,9 +179,6 @@ u32 CWII_IPC_HLE_Device_sdio_slot0::ExecuteCommand(u32 _BufferIn, u32 _BufferInS
|
||||||
|
|
||||||
switch (req.command)
|
switch (req.command)
|
||||||
{
|
{
|
||||||
case APP_CMD1:
|
|
||||||
break;
|
|
||||||
|
|
||||||
case SELECT_CARD:
|
case SELECT_CARD:
|
||||||
//return R1b
|
//return R1b
|
||||||
break;
|
break;
|
||||||
|
@ -191,7 +188,10 @@ u32 CWII_IPC_HLE_Device_sdio_slot0::ExecuteCommand(u32 _BufferIn, u32 _BufferInS
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case APP_CMD_NEXT:
|
case APP_CMD_NEXT:
|
||||||
//indicates that next cmd doesn't adhere to standards
|
// Next cmd is going to be ACMD_*
|
||||||
|
break;
|
||||||
|
|
||||||
|
case ACMD_SETBUSWIDTH:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -42,6 +42,7 @@ private:
|
||||||
SDIO_BASE = 0x8d070000,
|
SDIO_BASE = 0x8d070000,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// IOCtl
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
IOCTL_WRITEHCREG = 0x01,
|
IOCTL_WRITEHCREG = 0x01,
|
||||||
|
@ -60,18 +61,37 @@ private:
|
||||||
IOCTL_WRITEDATA = 0x0E,
|
IOCTL_WRITEDATA = 0x0E,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// IOCtlV
|
||||||
|
enum
|
||||||
|
{
|
||||||
|
IOCTLV_SENDCMD = 0x07,
|
||||||
|
};
|
||||||
|
|
||||||
|
// Status
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
CARD_INSERTED = 1,
|
CARD_INSERTED = 1,
|
||||||
CARD_INITIALIZED = 0x10000,
|
CARD_INITIALIZED = 0x10000,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Commands
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
APP_CMD1 = 0x06,
|
GO_IDLE_STATE = 0x00,
|
||||||
|
ALL_SEND_CID = 0x02,
|
||||||
|
SEND_RELATIVE_ADDR = 0x03,
|
||||||
SELECT_CARD = 0x07,
|
SELECT_CARD = 0x07,
|
||||||
|
SEND_IF_COND = 0x08,
|
||||||
|
SEND_CSD = 0x09,
|
||||||
|
SEND_STATUS = 0x0D,
|
||||||
SET_BLOCKLEN = 0x10,
|
SET_BLOCKLEN = 0x10,
|
||||||
|
READ_MULTIPLE_BLOCK = 0x12,
|
||||||
|
WRITE_MULTIPLE_BLOCK= 0x19,
|
||||||
APP_CMD_NEXT = 0x37,
|
APP_CMD_NEXT = 0x37,
|
||||||
|
|
||||||
|
ACMD_SETBUSWIDTH = 0x06,
|
||||||
|
ACMD_SENDOPCOND = 0x29,
|
||||||
|
ACMD_SENDSCR = 0x33,
|
||||||
};
|
};
|
||||||
|
|
||||||
u32 m_status;
|
u32 m_status;
|
||||||
|
|
Loading…
Reference in New Issue