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
16 * Max. number of devices supported
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;
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 #? */
41 devfs_handle_t devfs; /* devfs device */
43 driver_state_t state; /* started/stopped */
44 int opened; /* tru if open */
46 } tiglusb_t, *ptiglusb_t;