git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Modules/PRO100 - Fixed -ve array reference
[tpg/acess2.git]
/
KernelLand
/
Modules
/
Network
/
E1000
/
e1000.c
diff --git
a/KernelLand/Modules/Network/E1000/e1000.c
b/KernelLand/Modules/Network/E1000/e1000.c
index
21cc9ed
..
404540a
100644
(file)
--- a/
KernelLand/Modules/Network/E1000/e1000.c
+++ b/
KernelLand/Modules/Network/E1000/e1000.c
@@
-5,7
+5,7
@@
* e1000.c
* - Intel 8254x Network Card Driver (core)
*/
* e1000.c
* - Intel 8254x Network Card Driver (core)
*/
-#define DEBUG
1
+#define DEBUG
0
#define VERSION VER2(0,1)
#include <acess.h>
#include "e1000.h"
#define VERSION VER2(0,1)
#include <acess.h>
#include "e1000.h"
@@
-234,6
+234,7
@@
int E1000_SendPacket(void *Ptr, tIPStackBuffer *Buffer)
Card->TXSrcBuffers[last_txd] = Buffer;
__sync_synchronize();
Card->TXSrcBuffers[last_txd] = Buffer;
__sync_synchronize();
+ #if DEBUG
{
volatile tTXDesc *txdp = Card->TXDescs + last_txd;
LOG("%p %P: %llx %x %x", txdp, MM_GetPhysAddr((void*)txdp), txdp->Buffer, txdp->Length, txdp->CMD);
{
volatile tTXDesc *txdp = Card->TXDescs + last_txd;
LOG("%p %P: %llx %x %x", txdp, MM_GetPhysAddr((void*)txdp), txdp->Buffer, txdp->Length, txdp->CMD);
@@
-242,6
+243,7
@@
int E1000_SendPacket(void *Ptr, tIPStackBuffer *Buffer)
LOG("%p %P: %llx %x %x", txdp, MM_GetPhysAddr((void*)txdp), txdp->Buffer, txdp->Length, txdp->CMD);
MM_FreeTemp( (void*)txdp_base);
}
LOG("%p %P: %llx %x %x", txdp, MM_GetPhysAddr((void*)txdp), txdp->Buffer, txdp->Length, txdp->CMD);
MM_FreeTemp( (void*)txdp_base);
}
+ #endif
// Trigger TX
IPStack_Buffer_LockBuffer(Buffer);
LOG("Triggering TX - Buffers[%i]=%p", last_txd, Buffer);
// Trigger TX
IPStack_Buffer_LockBuffer(Buffer);
LOG("Triggering TX - Buffers[%i]=%p", last_txd, Buffer);
UCC
git Repository :: git.ucc.asn.au