xref: /freebsd/sys/dev/usb/storage/rio500_usb.h (revision a03411e84728e9b267056fd31c7d1d9d1dc1b01e)
1 /*-
2     ----------------------------------------------------------------------
3 
4     Copyright (C) 2000  Cesar Miquel  (miquel@df.uba.ar)
5 
6     Redistribution and use in source and binary forms, with or without
7     modification, are permitted under any licence of your choise which
8     meets the open source licence definition
9     http://www.opensource.org/opd.html such as the GNU licence or the
10     BSD licence.
11 
12     This program is distributed in the hope that it will be useful,
13     but WITHOUT ANY WARRANTY; without even the implied warranty of
14     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15     General Public License or the BSD license for more details.
16 
17     ----------------------------------------------------------------------
18 
19     Modified for FreeBSD by Iwasa Kazmi <kzmi@ca2.so-net.ne.jp>
20 
21     ---------------------------------------------------------------------- */
22 
23 
24 #include <sys/ioccom.h>
25 #ifndef USB_VENDOR_DIAMOND
26 #define USB_VENDOR_DIAMOND 0x841
27 #endif
28 #ifndef USB_PRODUCT_DIAMOND_RIO500USB
29 #define USB_PRODUCT_DIAMOND_RIO500USB 0x1
30 #endif
31 
32 struct RioCommand
33 {
34   uint16_t  length;
35   int   request;
36   int   requesttype;
37   int   value;
38   int   index;
39   void *buffer;
40   int  timeout;
41 };
42 
43 #define RIO_SEND_COMMAND	_IOWR('U', 200, struct RioCommand)
44 #define RIO_RECV_COMMAND	_IOWR('U', 201, struct RioCommand)
45 
46 #define RIO_DIR_OUT               	        0x0
47 #define RIO_DIR_IN				0x1
48