summaryrefslogtreecommitdiffstats
path: root/drivers/net/3c527.h
blob: dfe2738cb15a360bf93ba435702c34c5dc1dfdfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
 *	3COM "EtherLink MC/32" Descriptions
 */

/*
 *	Registers
 */
  
#define HOST_CMD		0

#define HOST_STATUS		2
#define		HOST_STATUS_CRR	(1<<6)
#define		HOST_STATUS_CWR	(1<<5)

#define HOST_CTRL		6
#define		HOST_CTRL_ATTN	(1<<7)
#define 	HOST_CTRL_RESET	(1<<6)
#define 	HOST_CTRL_INTE	(1<<2)

#define HOST_RAMPAGE		8

struct skb_header
{
	u8	status __attribute((packed));
	u8	control __attribute((packed));
	u16	next __attribute((packed));	/* Do not change! */
	u16	length __attribute((packed));
	u32	data __attribute((packed));
};

#define STATUS_MASK	0x0F
#define COMPLETED	0x80
#define COMPLETED_OK	0x40
#define BUFFER_BUSY	0x20

#define CONTROL_EOP	0x80	/* End Of Packet */
#define CONTROL_EL	0x40	/* End of List */


#define MCA_MC32_ID	0x0041	/* Our MCA ident */