Import 2.3.11pre5
[davej-history.git] / drivers / usb / ezusb.h
blob8ddaad1272b00c8d436bea591304d07e7d776fdd
1 /*****************************************************************************/
3 /*
4 * ezusb.h -- Firmware download miscdevice for Anchorchips EZUSB microcontrollers.
6 * Copyright (C) 1999
7 * Thomas Sailer (sailer@ife.ee.ethz.ch)
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
25 /*****************************************************************************/
27 #ifndef _LINUX_EZUSB_H
28 #define _LINUX_EZUSB_H
30 #include <linux/ioctl.h>
32 /* --------------------------------------------------------------------- */
34 struct ezusb_ctrltransfer {
35 /* keep in sync with usb.h:devrequest */
36 unsigned char requesttype;
37 unsigned char request;
38 unsigned short value;
39 unsigned short index;
40 unsigned short length;
41 /* pointer to data */
42 unsigned dlen;
43 void *data;
46 #define EZUSB_CONTROL _IOWR('E', 0, struct ezusb_ctrltransfer)
48 struct ezusb_interrupttransfer {
49 unsigned int ep;
50 unsigned char data[64];
53 #define EZUSB_INTERRUPT _IOWR('E', 1, struct ezusb_interrupttransfer)
55 struct ezusb_bulktransfer {
56 unsigned int ep;
57 unsigned int len;
58 void *data;
61 #define EZUSB_BULK _IOWR('E', 2, struct ezusb_bulktransfer)
63 #define EZUSB_RESETEP _IOR('E', 3, unsigned int)
66 /* --------------------------------------------------------------------- */
67 #endif /* _LINUX_EZUSB_H */