patch-2.3.11 linux/drivers/usb/ezusb.h

Next file: linux/drivers/usb/hub.c
Previous file: linux/drivers/usb/ezusb.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.10/linux/drivers/usb/ezusb.h linux/drivers/usb/ezusb.h
@@ -0,0 +1,67 @@
+/*****************************************************************************/
+
+/*
+ *	ezusb.h  --  Firmware download miscdevice for Anchorchips EZUSB microcontrollers.
+ *
+ *	Copyright (C) 1999
+ *          Thomas Sailer (sailer@ife.ee.ethz.ch)
+ *
+ *	This program is free software; you can redistribute it and/or modify
+ *	it under the terms of the GNU General Public License as published by
+ *	the Free Software Foundation; either version 2 of the License, or
+ *	(at your option) any later version.
+ *
+ *	This program is distributed in the hope that it will be useful,
+ *	but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *	GNU General Public License for more details.
+ *
+ *	You should have received a copy of the GNU General Public License
+ *	along with this program; if not, write to the Free Software
+ *	Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ *
+ */
+
+/*****************************************************************************/
+
+#ifndef _LINUX_EZUSB_H
+#define _LINUX_EZUSB_H
+
+#include <linux/ioctl.h>
+
+/* --------------------------------------------------------------------- */
+
+struct ezusb_ctrltransfer {
+	/* keep in sync with usb.h:devrequest */
+	unsigned char requesttype;
+	unsigned char request;
+	unsigned short value;
+	unsigned short index;
+	unsigned short length;
+	/* pointer to data */
+	unsigned dlen;
+	void *data;
+};
+
+#define EZUSB_CONTROL        _IOWR('E', 0, struct ezusb_ctrltransfer)
+
+struct ezusb_interrupttransfer {
+	unsigned int ep;
+	unsigned char data[64];
+};
+
+#define EZUSB_INTERRUPT      _IOWR('E', 1, struct ezusb_interrupttransfer)
+
+struct ezusb_bulktransfer {
+	unsigned int ep;
+	unsigned int len;
+	void *data;
+};
+
+#define EZUSB_BULK           _IOWR('E', 2, struct ezusb_bulktransfer)
+
+#define EZUSB_RESETEP        _IOR('E', 3, unsigned int)
+
+
+/* --------------------------------------------------------------------- */
+#endif /* _LINUX_EZUSB_H */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)