X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FModules%2FNetwork%2FPRO100%2Fpro100.h;h=d61c22b9b156b19f86adb40a3ac9733d2fbe84ad;hb=75b702d7e74f8eb720e65adda2650bf6ce203b2c;hp=2bcc78257bfc5133041c1bee4bd5bfe2ebd6603c;hpb=1ec0aa1a19bca35e032e404bfcdaa3eb1adec51d;p=tpg%2Facess2.git diff --git a/KernelLand/Modules/Network/PRO100/pro100.h b/KernelLand/Modules/Network/PRO100/pro100.h index 2bcc7825..d61c22b9 100644 --- a/KernelLand/Modules/Network/PRO100/pro100.h +++ b/KernelLand/Modules/Network/PRO100/pro100.h @@ -10,6 +10,13 @@ #include "pro100_hw.h" +#include +#include + +#define NUM_RX 4 +#define RX_BUF_SIZE ((PAGE_SIZE/2)-sizeof(tRXBuffer)) +#define NUM_TX (PAGE_SIZE/sizeof(tTXCommand)) + typedef struct sCard tCard; struct sCard @@ -22,7 +29,16 @@ struct sCard Uint16 Words[3]; // Used to read the MAC from EEPROM } MAC; - //tIPStackBuffer *TXBuffers[NUM_TX]; + int CurRXIndex; + tRXBuffer *RXBufs[NUM_RX]; + tSemaphore RXSemaphore; + + tSemaphore TXCommandSem; + tMutex lTXCommands; + int LastTXIndex; + int CurTXIndex; + tTXCommand *TXCommands; + tIPStackBuffer *TXBuffers[NUM_TX]; }; #endif