Don't pretend to support !BSD systems.
This commit is contained in:
parent
5ea892ec7c
commit
f3ece13593
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=170624
@ -30,20 +30,10 @@
|
||||
|
||||
/* $FreeBSD$ */
|
||||
|
||||
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
|
||||
#include <sys/ioccom.h>
|
||||
#endif
|
||||
|
||||
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
|
||||
#define FM_SET_FREQ _IOWR('U', 200, int)
|
||||
#define FM_GET_FREQ _IOWR('U', 201, int)
|
||||
#define FM_START _IOWR('U', 202, int)
|
||||
#define FM_STOP _IOWR('U', 203, int)
|
||||
#define FM_GET_STAT _IOWR('U', 204, int)
|
||||
#else
|
||||
#define FM_SET_FREQ 0x1
|
||||
#define FM_GET_FREQ 0x2
|
||||
#define FM_START 0x3
|
||||
#define FM_STOP 0x4
|
||||
#define FM_GET_STAT 0x5
|
||||
#endif
|
||||
|
@ -22,7 +22,6 @@
|
||||
|
||||
/* $FreeBSD$ */
|
||||
|
||||
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
|
||||
#include <sys/ioccom.h>
|
||||
#ifndef USB_VENDOR_DIAMOND
|
||||
#define USB_VENDOR_DIAMOND 0x841
|
||||
@ -30,15 +29,10 @@
|
||||
#ifndef USB_PRODUCT_DIAMOND_RIO500USB
|
||||
#define USB_PRODUCT_DIAMOND_RIO500USB 0x1
|
||||
#endif
|
||||
#endif
|
||||
|
||||
struct RioCommand
|
||||
{
|
||||
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
|
||||
u_int16_t length;
|
||||
#else
|
||||
short length;
|
||||
#endif
|
||||
int request;
|
||||
int requesttype;
|
||||
int value;
|
||||
@ -47,13 +41,8 @@ struct RioCommand
|
||||
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
|
||||
|
@ -31,7 +31,6 @@
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/kernel.h>
|
||||
|
Loading…
Reference in New Issue
Block a user