* add p cc
[mascara-docs.git] / i386 / linux / linux-2.3.21 / drivers / net / 3c527.h
blobdfe2738cb15a360bf93ba435702c34c5dc1dfdfe
1 /*
2 * 3COM "EtherLink MC/32" Descriptions
3 */
5 /*
6 * Registers
7 */
9 #define HOST_CMD 0
11 #define HOST_STATUS 2
12 #define HOST_STATUS_CRR (1<<6)
13 #define HOST_STATUS_CWR (1<<5)
15 #define HOST_CTRL 6
16 #define HOST_CTRL_ATTN (1<<7)
17 #define HOST_CTRL_RESET (1<<6)
18 #define HOST_CTRL_INTE (1<<2)
20 #define HOST_RAMPAGE 8
22 struct skb_header
24 u8 status __attribute((packed));
25 u8 control __attribute((packed));
26 u16 next __attribute((packed)); /* Do not change! */
27 u16 length __attribute((packed));
28 u32 data __attribute((packed));
31 #define STATUS_MASK 0x0F
32 #define COMPLETED 0x80
33 #define COMPLETED_OK 0x40
34 #define BUFFER_BUSY 0x20
36 #define CONTROL_EOP 0x80 /* End Of Packet */
37 #define CONTROL_EL 0x40 /* End of List */
40 #define MCA_MC32_ID 0x0041 /* Our MCA ident */