2 * Acess2 E1000 Network Driver
3 * - By John Hodge (thePowersGang)
13 #include <semaphore.h>
15 #include <IPStack/include/buffer.h>
17 #define NUM_TX_DESC (PAGE_SIZE/sizeof(struct sTXDesc))
18 #define NUM_RX_DESC (PAGE_SIZE/sizeof(struct sRXDesc))
20 #define RX_DESC_BSIZE 4096
21 #define RX_DESC_BSIZEHW RCTL_BSIZE_4096
28 volatile void *MMIOBase;
33 void *RXBuffers[NUM_RX_DESC];
34 volatile tRXDesc *RXDescs;
35 tSemaphore AvailPackets;
36 struct sCard *RXBackHandles[NUM_RX_DESC]; // Pointers to this struct, offset used to select desc
41 volatile tTXDesc *TXDescs;
42 tSemaphore FreeTxDescs;
44 tIPStackBuffer *TXSrcBuffers[NUM_TX_DESC];