Misc fixes for dsiwifi BMI stage (#1216)

This commit is contained in:
Max Thomas
2021-09-06 04:52:33 -06:00
committed by GitHub
parent 8d8a46ad67
commit a54b076b06
3 changed files with 70 additions and 1 deletions

View File

@ -95,6 +95,20 @@ private:
Mailbox[n].Write(val & 0xFF);
}
u32 MB_Peek32(int n)
{
return MB_Peek32(n, 0);
}
u32 MB_Peek32(int n, int offs)
{
u32 ret = Mailbox[n].Peek(offs+0);
ret |= (Mailbox[n].Peek(offs+1) << 8);
ret |= (Mailbox[n].Peek(offs+2) << 16);
ret |= (Mailbox[n].Peek(offs+3) << 24);
return ret;
}
u32 MB_Read32(int n)
{
u32 ret = Mailbox[n].Read();