22 #define STATUS_RUS_MASK 0x003C // Receive Unit Status
23 #define STATUS_CUS_MASK 0x00C0 // Comamnd Unit Status
24 #define STATUS_FCP 0x0100 // Flow Control Pause
25 #define STATUS_ER 0x0200 // Early Recieve
26 #define STATUS_SWI 0x0400 // Software Interrupt
27 #define STATUS_MDI 0x0800 // Management Data Interrupt
28 #define STATUS_RNR 0x1000 // Receive Not Ready
29 #define STATUS_CNA 0x2000 // Command Unit not active
30 #define STATUS_FR 0x4000 // Frame Recieved
31 #define STATUS_CX 0x8000 // Command Unit executed
33 #define CMD_RUC 0x0007
34 #define CMD_CUC 0x00F0
35 #define CMD_M 0x0100 // Interrupt Mask
36 #define CMD_SI 0x0200 // Software Interrupt
38 #define MDI_IE (1 << 29)
39 #define MDI_RDY (1 << 28)
41 #define EEPROM_CTRL_SK 0x01 //
42 #define EEPROM_CTRL_CS 0x02
43 #define EEPROM_CTRL_DI 0x04
44 #define EEPROM_CTRL_DO 0x08
47 PORT_SOFTWARERESET = 0,
49 PORT_SELECTIVERESET = 2,
58 tIPStackBuffer *Buffer;