* add p cc
[mascara-docs.git] / i386 / linux / linux-2.3.21 / drivers / net / ncr885_debug.h
blobbd1fead2dfa5ec0aee04cf99c7d12ed5b2b9b6ac
1 #ifndef _H_NCR885_DEBUG
2 #define _H_NCR885_DEBUG
4 struct ncr885e_regs {
5 unsigned long tx_status;
6 unsigned long rx_status;
7 unsigned long mac_config;
8 unsigned long tx_control;
9 unsigned long rx_control;
10 unsigned long tx_cmd_ptr;
11 unsigned long rx_cmd_ptr;
12 unsigned long int_status;
15 #ifndef __KERNEL__
17 struct ncr885e_private {
19 struct dbdma_cmd *head;
20 struct dbdma_cmd *tx_cmds;
21 struct dbdma_cmd *rx_cmds;
22 struct dbdma_cmd *stop_cmd;
24 struct sk_buff *tx_skbufs[NR_TX_RING];
25 struct sk_buff *rx_skbufs[NR_RX_RING];
27 int rx_current;
28 int rx_dirty;
30 int tx_dirty;
31 int tx_current;
33 unsigned short tx_status[NR_TX_RING];
35 unsigned char tx_fullup;
36 unsigned char tx_active;
38 struct net_device_stats stats;
40 struct device *dev;
42 struct timer_list tx_timeout;
43 int timeout_active;
45 spinlock_t lock;
48 #endif /* __KERNEL__ */
51 #define NCR885E_GET_PRIV _IOR('N',1,sizeof( struct ncr885e_private ))
52 #define NCR885E_GET_REGS _IOR('N',2,sizeof( struct ncr885e_regs ))
54 #endif