Import 2.4.0-test5pre2
[davej-history.git] / drivers / usb / plusb.h
bloba77ae0f01326211fae02ee66fd22037dd75f1bd0
1 #define _PLUSB_INTPIPE 0x1
2 #define _PLUSB_BULKOUTPIPE 0x2
3 #define _PLUSB_BULKINPIPE 0x3
5 #define _SKB_NUM 1000
6 // 7 6 5 4 3 2 1 0
7 // tx rx 1 0
8 // 1110 0000 rxdata
9 // 1010 0000 idle
10 // 0010 0000 tx over
11 // 0110 tx over + rxd
13 #define _PLUSB_RXD 0x40
14 #define _PLUSB_TXOK 0x80
16 #ifdef __KERNEL__
17 #define _BULK_DATA_LEN 16384
19 typedef struct
21 struct list_head skb_list;
22 struct sk_buff *skb;
23 int state;
24 } skb_list_t,*pskb_list_t;
26 typedef struct
28 struct usb_device *usbdev;
30 int status;
31 int connected;
32 int in_bh;
33 int opened;
35 spinlock_t lock;
37 urb_t *inturb;
38 urb_t *bulkurb;
40 struct list_head tx_skb_list;
41 struct list_head free_skb_list;
42 struct tq_struct bh;
44 struct net_device net_dev;
45 struct net_device_stats net_stats;
46 } plusb_t,*pplusb_t;
48 #endif