Ignore all writes to BBA_TXFIFOCNT

This commit is contained in:
zeroZshadow 2015-08-13 19:27:19 +02:00
parent 798365846d
commit 8925b828aa
2 changed files with 8 additions and 2 deletions

View File

@ -248,7 +248,7 @@ bool CEXIETHERNET::SendFrame(u8 *frame, u32 size)
OVERLAPPED overlap; OVERLAPPED overlap;
ZeroMemory(&overlap, sizeof(overlap)); ZeroMemory(&overlap, sizeof(overlap));
//WriteFile will always return false because the TAP handle is async // WriteFile will always return false because the TAP handle is async
WriteFile(mHAdapter, frame, size, NULL, &overlap); WriteFile(mHAdapter, frame, size, NULL, &overlap);
DWORD res = GetLastError(); DWORD res = GetLastError();
@ -314,7 +314,7 @@ bool CEXIETHERNET::RecvStart()
if (res) if (res)
{ {
// Synce the read is syncronouse here, complete immediately // Since the read is synchronous here, complete immediately
RecvHandlePacket(); RecvHandlePacket();
} }

View File

@ -358,6 +358,12 @@ void CEXIETHERNET::MXCommandHandler(u32 data, u32 size)
data &= (data & 0xff) ^ 0xff; data &= (data & 0xff) ^ 0xff;
goto write_to_register; goto write_to_register;
case BBA_TXFIFOCNT:
case BBA_TXFIFOCNT+1:
// Ignore all writes to BBA_TXFIFOCNT
transfer.address += size;
return;
write_to_register: write_to_register:
default: default:
for (int i = size - 1; i >= 0; i--) for (int i = size - 1; i >= 0; i--)