]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blob - drivers/staging/winbond/linux/wb35tx_s.h
Staging: add w35und wifi driver
[linux-2.6-omap-h63xx.git] / drivers / staging / winbond / linux / wb35tx_s.h
1 //====================================
2 // IS89C35 Tx related definition
3 //====================================
4 #define TX_INTERFACE                    0       // Interface 1
5 #define TX_PIPE                                 3       // endpoint 4
6 #define TX_INTERRUPT                    1       // endpoint 2
7 #define MAX_INTERRUPT_LENGTH    64      // It must be 64 for EP2 hardware
8
9
10
11 //====================================
12 // Internal variable for module
13 //====================================
14
15
16 typedef struct _WB35TX
17 {
18         // For Tx buffer
19         u8      TxBuffer[ MAX_USB_TX_BUFFER_NUMBER ][ MAX_USB_TX_BUFFER ];
20
21         // For Interrupt pipe
22         u8      EP2_buf[MAX_INTERRUPT_LENGTH];
23
24         OS_ATOMIC       TxResultCount;// For thread control of EP2 931130.4.m
25         OS_ATOMIC       TxFireCounter;// For thread control of EP4 931130.4.n
26         u32                     ByteTransfer;
27
28         u32         TxSendIndex;// The next index of Mds array to be sent
29         u32         EP2vm_state; // for EP2vm state
30         u32         EP4vm_state; // for EP4vm state
31         u32         tx_halt; // Stopping VM
32
33         struct urb *                            Tx4Urb;
34         struct urb *                            Tx2Urb;
35
36         int             EP2VM_status;
37         int             EP4VM_status;
38
39         u32     TxFillCount; // 20060928
40         u32     TxTimer; // 20060928 Add if sending packet not great than 13
41
42 } WB35TX, *PWB35TX;
43
44
45
46
47