Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
hisax_fcpcipnp.h
Go to the documentation of this file.
1 #include "hisax_if.h"
2 #include "hisax_isac.h"
3 #include <linux/pci.h>
4 
5 #define HSCX_BUFMAX 4096
6 
7 enum {
11 };
12 
13 struct hdlc_stat_reg {
14 #ifdef __BIG_ENDIAN
15  u_char fill;
16  u_char mode;
17  u_char xml;
18  u_char cmd;
19 #else
24 #endif
25 } __attribute__((packed));
26 
27 struct fritz_bcs {
28  struct hisax_b_if b_if;
30  int mode;
31  int channel;
32 
33  union {
35  struct hdlc_stat_reg sr;
36  } ctrl;
38  int rcvidx;
39  int fifo_size;
40  u_char rcvbuf[HSCX_BUFMAX]; /* B-Channel receive Buffer */
41 
42  int tx_cnt; /* B-Channel transmit counter */
43  struct sk_buff *tx_skb; /* B-Channel transmit Buffer */
44 };
45 
46 struct fritz_adapter {
47  int type;
49  unsigned int io;
50  unsigned int irq;
51  struct isac isac;
52 
53  struct fritz_bcs bcs[2];
54 
56  void (*write_ctrl) (struct fritz_bcs *bcs, int which);
57 };