File: rio_usb.h

package info (click to toggle)
rioutil 1.4.4-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,980 kB
  • ctags: 777
  • sloc: sh: 11,429; ansic: 5,834; makefile: 112
file content (68 lines) | stat: -rw-r--r-- 2,098 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/*  ----------------------------------------------------------------------

    Copyright (C) 2000  Cesar Miquel  (miquel@df.uba.ar)

    Header for rio kernel driver.

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

    ---------------------------------------------------------------------- */
#if !defined (_RIO_USB_H)
#define _RIO_USB_H

#include <sys/types.h>

/* second generation players (199?) */
#define VENDOR_DIAMOND00  0x0841
#define PRODUCT_RIO500    0x0001

#define VENDOR_DIAMOND01  0x045a

/* third generation players (1999 ?) */
#define PRODUCT_RIO600    0x5001
#define PRODUCT_RIO800    0x5002
#define PRODUCT_PSAPLAY   0x5003

/* fouth generation players (2002) */
#define PRODUCT_RIOS10    0x5005
#define PRODUCT_RIOS50    0x5006
#define PRODUCT_RIOS35    0x5007
#define PRODUCT_RIO900    0x5008
#define PRODUCT_RIOS30    0x5009

#define PRODUCT_RIORIOT   0x5202

struct RioCommand {
	u_int16_t length;
	int request;
	int requesttype;
	int value;
	int index;
	void *buffer;
	int timeout;
};

#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
#define RIO_SEND_COMMAND       _IOWR('U', 200, struct RioCommand)
#define RIO_RECV_COMMAND       _IOWR('U', 201, struct RioCommand)
#else
#define RIO_SEND_COMMAND                       0x1
#define RIO_RECV_COMMAND                       0x2
#endif

#define RIO_DIR_OUT                            0x0
#define RIO_DIR_IN                             0x1

#endif