1139749Simp/*- 2139749Simp ---------------------------------------------------------------------- 359095Sn_hibma 459095Sn_hibma Copyright (C) 2000 Cesar Miquel (miquel@df.uba.ar) 559095Sn_hibma 659095Sn_hibma Redistribution and use in source and binary forms, with or without 759095Sn_hibma modification, are permitted under any licence of your choise which 859095Sn_hibma meets the open source licence definiton 959095Sn_hibma http://www.opensource.org/opd.html such as the GNU licence or the 1059095Sn_hibma BSD licence. 1159095Sn_hibma 1259095Sn_hibma This program is distributed in the hope that it will be useful, 1359095Sn_hibma but WITHOUT ANY WARRANTY; without even the implied warranty of 1459095Sn_hibma MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1559095Sn_hibma General Public License or the BSD license for more details. 1659095Sn_hibma 1759095Sn_hibma ---------------------------------------------------------------------- 1859095Sn_hibma 1959095Sn_hibma Modified for FreeBSD by Iwasa Kazmi <kzmi@ca2.so-net.ne.jp> 2059095Sn_hibma 2159095Sn_hibma ---------------------------------------------------------------------- */ 2259095Sn_hibma 2359095Sn_hibma/* $FreeBSD$ */ 2459095Sn_hibma 2559095Sn_hibma#include <sys/ioccom.h> 2659095Sn_hibma#ifndef USB_VENDOR_DIAMOND 2759095Sn_hibma#define USB_VENDOR_DIAMOND 0x841 2859095Sn_hibma#endif 2959095Sn_hibma#ifndef USB_PRODUCT_DIAMOND_RIO500USB 3059095Sn_hibma#define USB_PRODUCT_DIAMOND_RIO500USB 0x1 3159095Sn_hibma#endif 3259095Sn_hibma 3359095Sn_hibmastruct RioCommand 3459095Sn_hibma{ 35185087Salfred uint16_t length; 3659095Sn_hibma int request; 3759095Sn_hibma int requesttype; 3859095Sn_hibma int value; 3959095Sn_hibma int index; 4059095Sn_hibma void *buffer; 4159095Sn_hibma int timeout; 4259095Sn_hibma}; 4359095Sn_hibma 4459095Sn_hibma#define RIO_SEND_COMMAND _IOWR('U', 200, struct RioCommand) 4559095Sn_hibma#define RIO_RECV_COMMAND _IOWR('U', 201, struct RioCommand) 4659095Sn_hibma 4759095Sn_hibma#define RIO_DIR_OUT 0x0 4859095Sn_hibma#define RIO_DIR_IN 0x1 49