diff --git a/Source/Core/Core/HW/BBA-TAP/TAP_Apple.cpp b/Source/Core/Core/HW/BBA-TAP/TAP_Apple.cpp index 5681f0b507..6246c21bf3 100644 --- a/Source/Core/Core/HW/BBA-TAP/TAP_Apple.cpp +++ b/Source/Core/Core/HW/BBA-TAP/TAP_Apple.cpp @@ -43,7 +43,7 @@ bool CEXIETHERNET::IsActivated() return fd != -1; } -bool CEXIETHERNET::SendFrame(u8* frame, u32 size) +bool CEXIETHERNET::SendFrame(const u8* frame, u32 size) { INFO_LOG(SP1, "SendFrame %x\n%s", size, ArrayToString(frame, size, 0x10).c_str()); diff --git a/Source/Core/Core/HW/BBA-TAP/TAP_Unix.cpp b/Source/Core/Core/HW/BBA-TAP/TAP_Unix.cpp index ad2f67cda0..0108706856 100644 --- a/Source/Core/Core/HW/BBA-TAP/TAP_Unix.cpp +++ b/Source/Core/Core/HW/BBA-TAP/TAP_Unix.cpp @@ -100,7 +100,7 @@ bool CEXIETHERNET::IsActivated() #endif } -bool CEXIETHERNET::SendFrame(u8* frame, u32 size) +bool CEXIETHERNET::SendFrame(const u8* frame, u32 size) { #ifdef __linux__ INFO_LOG(SP1, "SendFrame %x\n%s", size, ArrayToString(frame, size, 0x10).c_str()); diff --git a/Source/Core/Core/HW/BBA-TAP/TAP_Win32.cpp b/Source/Core/Core/HW/BBA-TAP/TAP_Win32.cpp index a3e16047ab..c817d370e6 100644 --- a/Source/Core/Core/HW/BBA-TAP/TAP_Win32.cpp +++ b/Source/Core/Core/HW/BBA-TAP/TAP_Win32.cpp @@ -307,7 +307,7 @@ static void ReadThreadHandler(CEXIETHERNET* self) } } -bool CEXIETHERNET::SendFrame(u8* frame, u32 size) +bool CEXIETHERNET::SendFrame(const u8* frame, u32 size) { DEBUG_LOG(SP1, "SendFrame %u bytes:\n%s", size, ArrayToString(frame, size, 0x10).c_str()); diff --git a/Source/Core/Core/HW/EXI_DeviceEthernet.cpp b/Source/Core/Core/HW/EXI_DeviceEthernet.cpp index dd0aed4be9..42352c7d98 100644 --- a/Source/Core/Core/HW/EXI_DeviceEthernet.cpp +++ b/Source/Core/Core/HW/EXI_DeviceEthernet.cpp @@ -370,7 +370,7 @@ void CEXIETHERNET::MXCommandHandler(u32 data, u32 size) } } -void CEXIETHERNET::DirectFIFOWrite(u8* data, u32 size) +void CEXIETHERNET::DirectFIFOWrite(const u8* data, u32 size) { // In direct mode, the hardware handles creating the state required by the // GMAC instead of finagling with packet descriptors and such @@ -412,7 +412,7 @@ void CEXIETHERNET::SendComplete() mBbaMem[BBA_LTPS] = 0; } -inline u8 CEXIETHERNET::HashIndex(u8* dest_eth_addr) +inline u8 CEXIETHERNET::HashIndex(const u8* dest_eth_addr) { // Calculate CRC u32 crc = 0xffffffff; diff --git a/Source/Core/Core/HW/EXI_DeviceEthernet.h b/Source/Core/Core/HW/EXI_DeviceEthernet.h index 26f0e8e28d..c73d1c9df7 100644 --- a/Source/Core/Core/HW/EXI_DeviceEthernet.h +++ b/Source/Core/Core/HW/EXI_DeviceEthernet.h @@ -297,11 +297,11 @@ public: const char* GetRegisterName() const; void MXHardReset(); void MXCommandHandler(u32 data, u32 size); - void DirectFIFOWrite(u8* data, u32 size); + void DirectFIFOWrite(const u8* data, u32 size); void SendFromDirectFIFO(); void SendFromPacketBuffer(); void SendComplete(); - u8 HashIndex(u8* dest_eth_addr); + u8 HashIndex(const u8* dest_eth_addr); bool RecvMACFilter(); void inc_rwp(); bool RecvHandlePacket(); @@ -313,7 +313,7 @@ public: bool Activate(); void Deactivate(); bool IsActivated(); - bool SendFrame(u8* frame, u32 size); + bool SendFrame(const u8* frame, u32 size); bool RecvInit(); void RecvStart(); void RecvStop();