[BACK]Return to tiglusb.h CVS log [TXT][DIR] Up to [Development] / linux-2.6-xfs / drivers / usb / misc

File: [Development] / linux-2.6-xfs / drivers / usb / misc / Attic / tiglusb.h (download)

Revision 1.2, Wed Jan 5 14:17:31 2005 UTC (12 years, 9 months ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.1: +2 -6 lines

Merge up to 2.6.10.
Merge of 2.6.x-xfs-melb:linux:21010a by kenmcd.

/* Hey EMACS -*- linux-c -*-
 *
 * tiglusb - low level driver for SilverLink cable
 *
 * Copyright (C) 2000-2002, Romain Lievin <roms@lpg.ticalc.org>
 * under the terms of the GNU General Public License.
 *
 * Redistribution of this file is permitted under the terms of the GNU
 * Public License (GPL)
 */

#ifndef _TIGLUSB_H
#define _TIGLUSB_H

/*
 * Max. number of devices supported
 */
#define MAXTIGL		16

/*
 * The driver context...
 */

typedef enum { _stopped=0, _started } driver_state_t;

typedef struct
{
	struct usb_device	*dev;		/* USB device handle */
	struct semaphore	mutex;		/* locks this struct */

	wait_queue_head_t	wait;		/* for timed waits */
	wait_queue_head_t	remove_ok;

	int		minor;			/* which minor dev #? */

	driver_state_t	state;			/* started/stopped */
	int		opened;			/* tru if open */
	int	remove_pending;

	int             max_ps;                 /* max packet size */
} tiglusb_t, *ptiglusb_t;

#endif