]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/dev/usb/rio_usb.h
unfinished sblive driver, playback/mixer only for now - not enabled in
[FreeBSD/FreeBSD.git] / sys / dev / usb / rio_usb.h
1 /*  ----------------------------------------------------------------------
2
3     Copyright (C) 2000  Cesar Miquel  (miquel@df.uba.ar)
4
5     This program is free software; you can redistribute it and/or modify
6     it under the terms of the GNU General Public License as published by
7     the Free Software Foundation; either version 2 of the License, or
8     (at your option) any later version.
9
10     This program is distributed in the hope that it will be useful,
11     but WITHOUT ANY WARRANTY; without even the implied warranty of
12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13     GNU General Public License for more details.
14
15     You should have received a copy of the GNU General Public License
16     along with this program; if not, write to the Free Software
17     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18
19     ---------------------------------------------------------------------- */
20
21 /* modified for FreeBSD by Iwasa Kazmi <kzmi@ca2.so-net.ne.jp> */
22
23 /* $FreeBSD$ */
24
25 #ifdef __FreeBSD__
26 #include <sys/ioccom.h>
27 #ifndef USB_VENDOR_DIAMOND
28 #define USB_VENDOR_DIAMOND 0x841
29 #endif
30 #ifndef USB_PRODUCT_DIAMOND_RIO500USB
31 #define USB_PRODUCT_DIAMOND_RIO500USB 0x1
32 #endif
33 #endif
34
35 struct RioCommand
36 {
37 #ifdef __FreeBSD__
38   u_int16_t  length;
39 #else
40   short length;
41 #endif
42   int   request;
43   int   requesttype;
44   int   value;
45   int   index;
46   void *buffer;
47   int  timeout;
48 };
49
50 #ifdef __FreeBSD__
51 #define RIO_SEND_COMMAND        _IOWR('U', 200, struct RioCommand)
52 #define RIO_RECV_COMMAND        _IOWR('U', 201, struct RioCommand)
53 #else
54 #define RIO_SEND_COMMAND                        0x1
55 #define RIO_RECV_COMMAND                        0x2
56 #endif
57
58 #define RIO_DIR_OUT                             0x0
59 #define RIO_DIR_IN                              0x1
60
61