Staging: add w35und wifi driver
[linux-2.6/mini2440.git] / drivers / staging / winbond / linux / wb35tx_s.h
blobac43257367604f4229bcd885509452cfb6449b5c
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
11 //====================================
12 // Internal variable for module
13 //====================================
16 typedef struct _WB35TX
18 // For Tx buffer
19 u8 TxBuffer[ MAX_USB_TX_BUFFER_NUMBER ][ MAX_USB_TX_BUFFER ];
21 // For Interrupt pipe
22 u8 EP2_buf[MAX_INTERRUPT_LENGTH];
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;
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
33 struct urb * Tx4Urb;
34 struct urb * Tx2Urb;
36 int EP2VM_status;
37 int EP4VM_status;
39 u32 TxFillCount; // 20060928
40 u32 TxTimer; // 20060928 Add if sending packet not great than 13
42 } WB35TX, *PWB35TX;