summaryrefslogtreecommitdiffstats
path: root/drivers/net/ncr885_debug.h
blob: bd1fead2dfa5ec0aee04cf99c7d12ed5b2b9b6ac (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#ifndef _H_NCR885_DEBUG
#define _H_NCR885_DEBUG

struct ncr885e_regs {
  unsigned long tx_status;
  unsigned long rx_status;
  unsigned long mac_config;
  unsigned long tx_control;
  unsigned long rx_control;
  unsigned long tx_cmd_ptr;
  unsigned long rx_cmd_ptr;
  unsigned long int_status;
};

#ifndef __KERNEL__

struct ncr885e_private {

  struct dbdma_cmd *head;
  struct dbdma_cmd *tx_cmds;
  struct dbdma_cmd *rx_cmds;
  struct dbdma_cmd *stop_cmd;

  struct sk_buff *tx_skbufs[NR_TX_RING];
  struct sk_buff *rx_skbufs[NR_RX_RING];

  int rx_current;
  int rx_dirty;

  int tx_dirty;
  int tx_current;

  unsigned short tx_status[NR_TX_RING];

  unsigned char tx_fullup;
  unsigned char tx_active;
  
  struct net_device_stats  stats;

  struct device *dev;

  struct timer_list tx_timeout;
  int timeout_active;

  spinlock_t lock;
};

#endif /* __KERNEL__ */


#define NCR885E_GET_PRIV   _IOR('N',1,sizeof( struct ncr885e_private ))
#define NCR885E_GET_REGS   _IOR('N',2,sizeof( struct ncr885e_regs ))

#endif