From: John Hodge Date: Sun, 11 Aug 2013 03:11:25 +0000 (+0800) Subject: Modules/E1000 - Disabled debug X-Git-Tag: rel0.15~276 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=e0b8ebba7d716201c94d53df3b452946962714cb;p=tpg%2Facess2.git Modules/E1000 - Disabled debug --- diff --git a/KernelLand/Modules/Network/E1000/e1000.c b/KernelLand/Modules/Network/E1000/e1000.c index 21cc9ed7..404540aa 100644 --- 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) */ -#define DEBUG 1 +#define DEBUG 0 #define VERSION VER2(0,1) #include #include "e1000.h" @@ -234,6 +234,7 @@ int E1000_SendPacket(void *Ptr, tIPStackBuffer *Buffer) 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); @@ -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); } + #endif // Trigger TX IPStack_Buffer_LockBuffer(Buffer); LOG("Triggering TX - Buffers[%i]=%p", last_txd, Buffer);