Add support for the device statistics IOCTL, needed by the coming

linux_libusb upgrade.

MFC after:	3 days
Sponsored by:	Mellanox Technologies
This commit is contained in:
Hans Petter Selasky 2020-03-10 15:56:49 +00:00
parent f76e7d40b2
commit d845d3dc9a
2 changed files with 5 additions and 1 deletions

View File

@ -3488,6 +3488,9 @@ linux_ioctl_fbsd_usb(struct thread *td, struct linux_ioctl_args *args)
case FBSD_LUSB_GET_POWER_USAGE:
args->cmd = USB_GET_POWER_USAGE;
break;
case FBSD_LUSB_DEVICESTATS:
args->cmd = USB_DEVICESTATS;
break;
default:
error = ENOIOCTL;
}

View File

@ -743,9 +743,10 @@
#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_DEVICESTATS 0xffdc
#define FBSD_LUSB_MAX 0xffff
#define FBSD_LUSB_MIN 0xffdd
#define FBSD_LUSB_MIN 0xffdc
/*
* Linux btrfs clone operation