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:
Shawn Hoffman 2009-04-19 19:26:45 +00:00
parent 2b906ae8b2
commit dee79c719e
2 changed files with 26 additions and 6 deletions

View File

@ -141,7 +141,7 @@ bool CWII_IPC_HLE_Device_sdio_slot0::IOCtlV(u32 _CommandAddress)
u32 Cmd = Memory::Read_U32(_CommandAddress + 0xC);
switch (Cmd) {
case IOCTL_SENDCMD:
case IOCTLV_SENDCMD:
ERROR_LOG(WII_IPC_SD, "IOCTLV_SENDCMD");
break;
@ -179,9 +179,6 @@ u32 CWII_IPC_HLE_Device_sdio_slot0::ExecuteCommand(u32 _BufferIn, u32 _BufferInS
switch (req.command)
{
case APP_CMD1:
break;
case SELECT_CARD:
//return R1b
break;
@ -191,7 +188,10 @@ u32 CWII_IPC_HLE_Device_sdio_slot0::ExecuteCommand(u32 _BufferIn, u32 _BufferInS
break;
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;
default:

View File

@ -42,6 +42,7 @@ private:
SDIO_BASE = 0x8d070000,
};
// IOCtl
enum
{
IOCTL_WRITEHCREG = 0x01,
@ -60,18 +61,37 @@ private:
IOCTL_WRITEDATA = 0x0E,
};
// IOCtlV
enum
{
IOCTLV_SENDCMD = 0x07,
};
// Status
enum
{
CARD_INSERTED = 1,
CARD_INITIALIZED = 0x10000,
};
// Commands
enum
{
APP_CMD1 = 0x06,
GO_IDLE_STATE = 0x00,
ALL_SEND_CID = 0x02,
SEND_RELATIVE_ADDR = 0x03,
SELECT_CARD = 0x07,
SEND_IF_COND = 0x08,
SEND_CSD = 0x09,
SEND_STATUS = 0x0D,
SET_BLOCKLEN = 0x10,
READ_MULTIPLE_BLOCK = 0x12,
WRITE_MULTIPLE_BLOCK= 0x19,
APP_CMD_NEXT = 0x37,
ACMD_SETBUSWIDTH = 0x06,
ACMD_SENDOPCOND = 0x29,
ACMD_SENDSCR = 0x33,
};
u32 m_status;