initial commit with v2.6.9
[linux-2.6.9-moxart.git] / drivers / usb / misc / tiglusb.h
blob627a3728de52143d2b17392b7d4b524fa645240f
1 /* Hey EMACS -*- linux-c -*-
3 * tiglusb - low level driver for SilverLink cable
5 * Copyright (C) 2000-2002, Romain Lievin <roms@lpg.ticalc.org>
6 * under the terms of the GNU General Public License.
8 * Redistribution of this file is permitted under the terms of the GNU
9 * Public License (GPL)
12 #ifndef _TIGLUSB_H
13 #define _TIGLUSB_H
16 * Max. number of devices supported
18 #define MAXTIGL 16
21 * Max. packetsize for IN and OUT pipes
23 #define BULK_RCV_MAX 32
24 #define BULK_SND_MAX 32
27 * The driver context...
30 typedef enum { _stopped=0, _started } driver_state_t;
32 typedef struct
34 struct usb_device *dev; /* USB device handle */
35 struct semaphore mutex; /* locks this struct */
37 wait_queue_head_t wait; /* for timed waits */
38 wait_queue_head_t remove_ok;
40 int minor; /* which minor dev #? */
42 driver_state_t state; /* started/stopped */
43 int opened; /* tru if open */
44 int remove_pending;
45 } tiglusb_t, *ptiglusb_t;
47 #endif