2 ----------------------------------------------------------------------
4 Copyright (C) 2000 Cesar Miquel (miquel@df.uba.ar)
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 definiton
9 http://www.opensource.org/opd.html such as the GNU licence or the
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.
17 ----------------------------------------------------------------------
19 Modified for FreeBSD by Iwasa Kazmi <kzmi@ca2.so-net.ne.jp>
21 ---------------------------------------------------------------------- */
25 #if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
26 #include <sys/ioccom.h>
27 #ifndef USB_VENDOR_DIAMOND
28 #define USB_VENDOR_DIAMOND 0x841
30 #ifndef USB_PRODUCT_DIAMOND_RIO500USB
31 #define USB_PRODUCT_DIAMOND_RIO500USB 0x1
37 #if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
50 #if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
51 #define RIO_SEND_COMMAND _IOWR('U', 200, struct RioCommand)
52 #define RIO_RECV_COMMAND _IOWR('U', 201, struct RioCommand)
54 #define RIO_SEND_COMMAND 0x1
55 #define RIO_RECV_COMMAND 0x2
58 #define RIO_DIR_OUT 0x0
59 #define RIO_DIR_IN 0x1