Kernel mtx - Add mtxsleep(), interlocked tsleep w/ mutexes
[dragonfly.git] / sys / bus / usb / rio500_usb.h
blob2ba791874ddfc446d008b2a2b02c8be7c035b616
1 /* ----------------------------------------------------------------------
3 Copyright (C) 2000 Cesar Miquel (miquel@df.uba.ar)
5 Redistribution and use in source and binary forms, with or without
6 modification, are permitted under any licence of your choise which
7 meets the open source licence definiton
8 http://www.opensource.org/opd.html such as the GNU licence or the
9 BSD licence.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 General Public License or the BSD license for more details.
16 ----------------------------------------------------------------------
18 Modified for FreeBSD by Iwasa Kazmi <kzmi@ca2.so-net.ne.jp>
20 ---------------------------------------------------------------------- */
23 * $FreeBSD: src/sys/dev/usb/rio500_usb.h,v 1.1 2000/04/08 17:02:13 n_hibma Exp $
24 * $DragonFly: src/sys/bus/usb/rio500_usb.h,v 1.6 2007/11/05 13:32:27 hasso Exp $
27 #include <sys/ioccom.h>
29 struct RioCommand
31 u_int16_t length;
32 int request;
33 int requesttype;
34 int value;
35 int index;
36 void *buffer;
37 int timeout;
40 #define RIO_SEND_COMMAND _IOWR('U', 200, struct RioCommand)
41 #define RIO_RECV_COMMAND _IOWR('U', 201, struct RioCommand)
43 #define RIO_DIR_OUT 0x0
44 #define RIO_DIR_IN 0x1