diff options
author | Vladimir Kondratyev <wulf@FreeBSD.org> | 2020-10-05 09:38:11 +0000 |
---|---|---|
committer | Vladimir Kondratyev <wulf@FreeBSD.org> | 2021-01-07 23:18:42 +0000 |
commit | 197587867321ebde6c32228eac85c98ad19da95d (patch) | |
tree | 4abe0fb0ff745fe7fea3083cdd8c6972712c1539 /sys/powerpc | |
parent | 67de2db2623a10dc4edec1642b2f8685d5587d7f (diff) | |
download | src-197587867321ebde6c32228eac85c98ad19da95d.tar.gz src-197587867321ebde6c32228eac85c98ad19da95d.zip |
hid: Import functions and constants required by new subsystem
This does an import of quirk stubs, debugging macros from USB code and
numerous usage constants used by dependent drivers.
Besides, this change renames some functions to get a better matching
with userland library and NetBSD/OpenBSD HID code. Namely:
- Old hid_report_size() renamed to hid_report_size_max()
- New hid_report_size() calculates size of given report rather than
maximum size of all reports.
- hid_get_data_unsigned() renamed to hid_get_udata()
- hid_put_data_unsigned() renamed to hid_put_udata()
Compat shim functions are provided in usbhid.h to make possible compile
of legacy code unmodified after this change.
Reviewed by: manu, hselasky
Differential revision: https://reviews.freebsd.org/D27887
Diffstat (limited to 'sys/powerpc')
-rw-r--r-- | sys/powerpc/conf/GENERIC | 1 | ||||
-rw-r--r-- | sys/powerpc/conf/GENERIC64 | 1 | ||||
-rw-r--r-- | sys/powerpc/conf/GENERIC64LE | 1 | ||||
-rw-r--r-- | sys/powerpc/conf/MPC85XX | 1 | ||||
-rw-r--r-- | sys/powerpc/conf/MPC85XXSPE | 1 | ||||
-rw-r--r-- | sys/powerpc/conf/QORIQ64 | 1 |
6 files changed, 6 insertions, 0 deletions
diff --git a/sys/powerpc/conf/GENERIC b/sys/powerpc/conf/GENERIC index d59d3a93f03e..dc3484d7f614 100644 --- a/sys/powerpc/conf/GENERIC +++ b/sys/powerpc/conf/GENERIC @@ -241,4 +241,5 @@ device virtio_scsi # VirtIO SCSI device device virtio_balloon # VirtIO Memory Balloon device # HID support +options HID_DEBUG # enable debug msgs device hid # Generic HID support diff --git a/sys/powerpc/conf/GENERIC64 b/sys/powerpc/conf/GENERIC64 index 61bad50b7388..16a33160aa34 100644 --- a/sys/powerpc/conf/GENERIC64 +++ b/sys/powerpc/conf/GENERIC64 @@ -271,4 +271,5 @@ device virtio_scsi # VirtIO SCSI device device virtio_balloon # VirtIO Memory Balloon device # HID support +options HID_DEBUG # enable debug msgs device hid # Generic HID support diff --git a/sys/powerpc/conf/GENERIC64LE b/sys/powerpc/conf/GENERIC64LE index ad41c756d207..bafa8df52f4e 100644 --- a/sys/powerpc/conf/GENERIC64LE +++ b/sys/powerpc/conf/GENERIC64LE @@ -252,4 +252,5 @@ device virtio_scsi # VirtIO SCSI device device virtio_balloon # VirtIO Memory Balloon device # HID support +options HID_DEBUG # enable debug msgs device hid # Generic HID support diff --git a/sys/powerpc/conf/MPC85XX b/sys/powerpc/conf/MPC85XX index 03fecead1448..f68f3e6f5f75 100644 --- a/sys/powerpc/conf/MPC85XX +++ b/sys/powerpc/conf/MPC85XX @@ -119,4 +119,5 @@ device vt device fbd # HID support +options HID_DEBUG # enable debug msgs device hid # Generic HID support diff --git a/sys/powerpc/conf/MPC85XXSPE b/sys/powerpc/conf/MPC85XXSPE index 281c24b96adf..553a616bb707 100644 --- a/sys/powerpc/conf/MPC85XXSPE +++ b/sys/powerpc/conf/MPC85XXSPE @@ -120,4 +120,5 @@ device vt device fbd # HID support +options HID_DEBUG # enable debug msgs device hid # Generic HID support diff --git a/sys/powerpc/conf/QORIQ64 b/sys/powerpc/conf/QORIQ64 index 6ee2af259c0d..4131ed5935b5 100644 --- a/sys/powerpc/conf/QORIQ64 +++ b/sys/powerpc/conf/QORIQ64 @@ -122,4 +122,5 @@ device ukbd device ums # HID support +options HID_DEBUG # enable debug msgs device hid # Generic HID support |