EXI_DeviceEthernet: Correct constness of function parameters

This commit is contained in:
Lioncash 2016-07-18 01:12:52 -04:00
parent 320e0d101b
commit 37da945609
5 changed files with 8 additions and 8 deletions

View file

@ -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());

View file

@ -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());

View file

@ -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());

View file

@ -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;

View file

@ -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();