summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/usbhid.h
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2010-05-12 22:50:23 +0000
committerthompsa <thompsa@FreeBSD.org>2010-05-12 22:50:23 +0000
commitf7f314b3e7a78435075395909cd58f38173acbcf (patch)
tree82be5c95a113342f861e9926b764dba4eb8684dd /sys/dev/usb/usbhid.h
parentf006c8aa860974e9c60cdb22c1d2c04dbc6d63f5 (diff)
downloadFreeBSD-src-f7f314b3e7a78435075395909cd58f38173acbcf.zip
FreeBSD-src-f7f314b3e7a78435075395909cd58f38173acbcf.tar.gz
Support getting signed and unsigned HID data.
Submitted by: Alex Deiter Reviewed by: Hans Petter Selaksy
Diffstat (limited to 'sys/dev/usb/usbhid.h')
-rw-r--r--sys/dev/usb/usbhid.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/usb/usbhid.h b/sys/dev/usb/usbhid.h
index 885a9b0..c07454f 100644
--- a/sys/dev/usb/usbhid.h
+++ b/sys/dev/usb/usbhid.h
@@ -229,7 +229,9 @@ int hid_report_size(const void *buf, usb_size_t len, enum hid_kind k,
int hid_locate(const void *desc, usb_size_t size, uint32_t usage,
enum hid_kind kind, uint8_t index, struct hid_location *loc,
uint32_t *flags, uint8_t *id);
-uint32_t hid_get_data(const uint8_t *buf, usb_size_t len,
+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);
int hid_is_collection(const void *desc, usb_size_t size, uint32_t usage);
struct usb_hid_descriptor *hid_get_descriptor_from_usb(
OpenPOWER on IntegriCloud