EXI_DeviceEthernet: Correct constness of function parameters
This commit is contained in:
parent
320e0d101b
commit
37da945609
|
@ -43,7 +43,7 @@ bool CEXIETHERNET::IsActivated()
|
||||||
return fd != -1;
|
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());
|
INFO_LOG(SP1, "SendFrame %x\n%s", size, ArrayToString(frame, size, 0x10).c_str());
|
||||||
|
|
||||||
|
|
|
@ -100,7 +100,7 @@ bool CEXIETHERNET::IsActivated()
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CEXIETHERNET::SendFrame(u8* frame, u32 size)
|
bool CEXIETHERNET::SendFrame(const u8* frame, u32 size)
|
||||||
{
|
{
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
INFO_LOG(SP1, "SendFrame %x\n%s", size, ArrayToString(frame, size, 0x10).c_str());
|
INFO_LOG(SP1, "SendFrame %x\n%s", size, ArrayToString(frame, size, 0x10).c_str());
|
||||||
|
|
|
@ -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());
|
DEBUG_LOG(SP1, "SendFrame %u bytes:\n%s", size, ArrayToString(frame, size, 0x10).c_str());
|
||||||
|
|
||||||
|
|
|
@ -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
|
// In direct mode, the hardware handles creating the state required by the
|
||||||
// GMAC instead of finagling with packet descriptors and such
|
// GMAC instead of finagling with packet descriptors and such
|
||||||
|
@ -412,7 +412,7 @@ void CEXIETHERNET::SendComplete()
|
||||||
mBbaMem[BBA_LTPS] = 0;
|
mBbaMem[BBA_LTPS] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline u8 CEXIETHERNET::HashIndex(u8* dest_eth_addr)
|
inline u8 CEXIETHERNET::HashIndex(const u8* dest_eth_addr)
|
||||||
{
|
{
|
||||||
// Calculate CRC
|
// Calculate CRC
|
||||||
u32 crc = 0xffffffff;
|
u32 crc = 0xffffffff;
|
||||||
|
|
|
@ -297,11 +297,11 @@ public:
|
||||||
const char* GetRegisterName() const;
|
const char* GetRegisterName() const;
|
||||||
void MXHardReset();
|
void MXHardReset();
|
||||||
void MXCommandHandler(u32 data, u32 size);
|
void MXCommandHandler(u32 data, u32 size);
|
||||||
void DirectFIFOWrite(u8* data, u32 size);
|
void DirectFIFOWrite(const u8* data, u32 size);
|
||||||
void SendFromDirectFIFO();
|
void SendFromDirectFIFO();
|
||||||
void SendFromPacketBuffer();
|
void SendFromPacketBuffer();
|
||||||
void SendComplete();
|
void SendComplete();
|
||||||
u8 HashIndex(u8* dest_eth_addr);
|
u8 HashIndex(const u8* dest_eth_addr);
|
||||||
bool RecvMACFilter();
|
bool RecvMACFilter();
|
||||||
void inc_rwp();
|
void inc_rwp();
|
||||||
bool RecvHandlePacket();
|
bool RecvHandlePacket();
|
||||||
|
@ -313,7 +313,7 @@ public:
|
||||||
bool Activate();
|
bool Activate();
|
||||||
void Deactivate();
|
void Deactivate();
|
||||||
bool IsActivated();
|
bool IsActivated();
|
||||||
bool SendFrame(u8* frame, u32 size);
|
bool SendFrame(const u8* frame, u32 size);
|
||||||
bool RecvInit();
|
bool RecvInit();
|
||||||
void RecvStart();
|
void RecvStart();
|
||||||
void RecvStop();
|
void RecvStop();
|
||||||
|
|
Loading…
Reference in New Issue