kernel.org 2.6.11.11
[linux-2.6.git] / drivers / usb / misc / tiglusb.h
1 /* Hey EMACS -*- linux-c -*-
2  *
3  * tiglusb - low level driver for SilverLink cable
4  *
5  * Copyright (C) 2000-2002, Romain Lievin <roms@lpg.ticalc.org>
6  * under the terms of the GNU General Public License.
7  *
8  * Redistribution of this file is permitted under the terms of the GNU
9  * Public License (GPL)
10  */
11
12 #ifndef _TIGLUSB_H
13 #define _TIGLUSB_H
14
15 /*
16  * Max. number of devices supported
17  */
18 #define MAXTIGL         16
19
20 /*
21  * The driver context...
22  */
23
24 typedef enum { _stopped=0, _started } driver_state_t;
25
26 typedef struct
27 {
28         struct usb_device       *dev;           /* USB device handle */
29         struct semaphore        mutex;          /* locks this struct */
30
31         wait_queue_head_t       wait;           /* for timed waits */
32         wait_queue_head_t       remove_ok;
33
34         int             minor;                  /* which minor dev #? */
35
36         driver_state_t  state;                  /* started/stopped */
37         int             opened;                 /* tru if open */
38         int     remove_pending;
39
40         int             max_ps;                 /* max packet size */
41 } tiglusb_t, *ptiglusb_t;
42
43 #endif