Re-enable SDIO events.

This commit is contained in:
Tom Boshoven 2017-08-05 14:52:03 +02:00
parent 494e935ca7
commit 47e056a654
1 changed files with 1 additions and 6 deletions

View File

@ -155,8 +155,7 @@ s32 SDIOSlot0::ExecuteCommand(const Request& request, u32 _BufferIn, u32 _Buffer
u32 pad0; u32 pad0;
} req; } req;
// Ignore the first two bits (start bit and direction) req.command = Memory::Read_U32(_BufferIn + 0);
req.command = Memory::Read_U32(_BufferIn + 0) & 0x3f;
req.type = Memory::Read_U32(_BufferIn + 4); req.type = Memory::Read_U32(_BufferIn + 4);
req.resp = Memory::Read_U32(_BufferIn + 8); req.resp = Memory::Read_U32(_BufferIn + 8);
req.arg = Memory::Read_U32(_BufferIn + 12); req.arg = Memory::Read_U32(_BufferIn + 12);
@ -317,9 +316,6 @@ s32 SDIOSlot0::ExecuteCommand(const Request& request, u32 _BufferIn, u32 _Buffer
Memory::Write_U32(0x900, _BufferOut); Memory::Write_U32(0x900, _BufferOut);
break; break;
// The following events don't seem to be possible due to the command length being only 6 bits
// I don't want to delete this without more context on why it's there and what it's meant to do
/*
case EVENT_REGISTER: // async case EVENT_REGISTER: // async
INFO_LOG(IOS_SD, "Register event %x", req.arg); INFO_LOG(IOS_SD, "Register event %x", req.arg);
m_event = std::make_unique<Event>(static_cast<EventType>(req.arg), request); m_event = std::make_unique<Event>(static_cast<EventType>(req.arg), request);
@ -339,7 +335,6 @@ s32 SDIOSlot0::ExecuteCommand(const Request& request, u32 _BufferIn, u32 _Buffer
m_event.reset(); m_event.reset();
break; break;
} }
*/
default: default:
ERROR_LOG(IOS_SD, "Unknown SD command 0x%08x", req.command); ERROR_LOG(IOS_SD, "Unknown SD command 0x%08x", req.command);