summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/usbhid.h
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2011-07-04 07:37:28 +0000
committerhselasky <hselasky@FreeBSD.org>2011-07-04 07:37:28 +0000
commit95ca970257de274a90a1a867048c5ace5acf532d (patch)
treed558e6ef0fc54c1a415eeea4eaf7614924edb09a /sys/dev/usb/usbhid.h
parentffb5cf471446f18c2ed162926526b1930bfa572b (diff)
downloadFreeBSD-src-95ca970257de274a90a1a867048c5ace5acf532d.zip
FreeBSD-src-95ca970257de274a90a1a867048c5ace5acf532d.tar.gz
Make the USB keyboard driver more HID compliant.
Try to auto-detect keyboards which should use the BOOT protocol. MFC after: 2 weeks
Diffstat (limited to 'sys/dev/usb/usbhid.h')
-rw-r--r--sys/dev/usb/usbhid.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/usb/usbhid.h b/sys/dev/usb/usbhid.h
index c07454f..4816e87 100644
--- a/sys/dev/usb/usbhid.h
+++ b/sys/dev/usb/usbhid.h
@@ -233,6 +233,8 @@ int32_t hid_get_data(const uint8_t *buf, usb_size_t len,
struct hid_location *loc);
uint32_t hid_get_data_unsigned(const uint8_t *buf, usb_size_t len,
struct hid_location *loc);
+void hid_put_data_unsigned(uint8_t *buf, usb_size_t len,
+ struct hid_location *loc, unsigned int value);
int hid_is_collection(const void *desc, usb_size_t size, uint32_t usage);
struct usb_hid_descriptor *hid_get_descriptor_from_usb(
struct usb_config_descriptor *cd,
OpenPOWER on IntegriCloud