patch-2.3.46 linux/drivers/usb/plusb.h
Next file: linux/drivers/usb/scanner.c
Previous file: linux/drivers/usb/plusb.c
Back to the patch index
Back to the overall index
- Lines: 49
- Date:
Tue Feb 15 11:37:33 2000
- Orig file:
v2.3.45/linux/drivers/usb/plusb.h
- Orig date:
Wed Dec 31 16:00:00 1969
diff -u --recursive --new-file v2.3.45/linux/drivers/usb/plusb.h linux/drivers/usb/plusb.h
@@ -0,0 +1,48 @@
+#define _PLUSB_INTPIPE 0x1
+#define _PLUSB_BULKOUTPIPE 0x2
+#define _PLUSB_BULKINPIPE 0x3
+
+#define _SKB_NUM 1000
+// 7 6 5 4 3 2 1 0
+// tx rx 1 0
+// 1110 0000 rxdata
+// 1010 0000 idle
+// 0010 0000 tx over
+// 0110 tx over + rxd
+
+#define _PLUSB_RXD 0x40
+#define _PLUSB_TXOK 0x80
+
+#ifdef __KERNEL__
+#define _BULK_DATA_LEN 16384
+
+typedef struct
+{
+ struct list_head skb_list;
+ struct sk_buff *skb;
+ int state;
+} skb_list_t,*pskb_list_t;
+
+typedef struct
+{
+ struct usb_device *usbdev;
+
+ int status;
+ int connected;
+ int in_bh;
+ int opened;
+
+ spinlock_t lock;
+
+ urb_t *inturb;
+ urb_t *bulkurb;
+
+ struct list_head tx_skb_list;
+ struct list_head free_skb_list;
+ struct tq_struct bh;
+
+ struct net_device net_dev;
+ struct net_device_stats net_stats;
+} plusb_t,*pplusb_t;
+
+#endif
FUNET's LINUX-ADM group, [email protected]
TCL-scripts by Sam Shen (who was at: [email protected])