mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-24 11:29:10 +00:00
Add some missing LIBUSB IOCTL conversion codes.
This commit is contained in:
parent
dde7be41df
commit
a40a377cc7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=253338
@ -3408,6 +3408,15 @@ linux_ioctl_fbsd_usb(struct thread *td, struct linux_ioctl_args *args)
|
||||
case FBSD_LUSB_SET_TEMPLATE:
|
||||
args->cmd = USB_SET_TEMPLATE;
|
||||
break;
|
||||
case FBSD_LUSB_FS_OPEN_STREAM:
|
||||
args->cmd = USB_FS_OPEN_STREAM;
|
||||
break;
|
||||
case FBSD_LUSB_GET_DEV_PORT_PATH:
|
||||
args->cmd = USB_GET_DEV_PORT_PATH;
|
||||
break;
|
||||
case FBSD_LUSB_GET_POWER_USAGE:
|
||||
args->cmd = USB_GET_POWER_USAGE;
|
||||
break;
|
||||
default:
|
||||
error = ENOIOCTL;
|
||||
}
|
||||
|
@ -744,9 +744,12 @@ int linux_ifname(struct ifnet *, char *, size_t);
|
||||
#define FBSD_LUSB_SET_IMMED 0xffe2
|
||||
#define FBSD_LUSB_SET_POWER_MODE 0xffe1
|
||||
#define FBSD_LUSB_SET_TEMPLATE 0xffe0
|
||||
#define FBSD_LUSB_FS_OPEN_STREAM 0xffdf
|
||||
#define FBSD_LUSB_GET_DEV_PORT_PATH 0xffde
|
||||
#define FBSD_LUSB_GET_POWER_USAGE 0xffdd
|
||||
|
||||
#define FBSD_LUSB_MAX 0xffff
|
||||
#define FBSD_LUSB_MIN 0xffe0
|
||||
#define FBSD_LUSB_MIN 0xffdd
|
||||
|
||||
/*
|
||||
* Pluggable ioctl handlers
|
||||
|
Loading…
Reference in New Issue
Block a user