File: /usr/src/linux/drivers/net/ncr885_debug.h

1     #ifndef _H_NCR885_DEBUG
2     #define _H_NCR885_DEBUG
3     
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;
13     };
14     
15     #ifndef __KERNEL__
16     
17     struct ncr885e_private {
18     
19       struct dbdma_cmd *head;
20       struct dbdma_cmd *tx_cmds;
21       struct dbdma_cmd *rx_cmds;
22       struct dbdma_cmd *stop_cmd;
23     
24       struct sk_buff *tx_skbufs[NR_TX_RING];
25       struct sk_buff *rx_skbufs[NR_RX_RING];
26     
27       int rx_current;
28       int rx_dirty;
29     
30       int tx_dirty;
31       int tx_current;
32     
33       unsigned short tx_status[NR_TX_RING];
34     
35       unsigned char tx_fullup;
36       unsigned char tx_active;
37       
38       struct net_device_stats  stats;
39     
40       struct device *dev;
41     
42       struct timer_list tx_timeout;
43       int timeout_active;
44     
45       spinlock_t lock;
46     };
47     
48     #endif /* __KERNEL__ */
49     
50     
51     #define NCR885E_GET_PRIV   _IOR('N',1,sizeof( struct ncr885e_private ))
52     #define NCR885E_GET_REGS   _IOR('N',2,sizeof( struct ncr885e_regs ))
53     
54     #endif
55