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 * The driver context...
24 typedef enum { _stopped=0, _started } driver_state_t;
28 struct usb_device *dev; /* USB device handle */
29 struct semaphore mutex; /* locks this struct */
31 wait_queue_head_t wait; /* for timed waits */
32 wait_queue_head_t remove_ok;
34 int minor; /* which minor dev #? */
36 driver_state_t state; /* started/stopped */
37 int opened; /* tru if open */
40 int max_ps; /* max packet size */
41 } tiglusb_t, *ptiglusb_t;