diff options
Diffstat (limited to 'sys/dev/usb/hid.h')
-rw-r--r-- | sys/dev/usb/hid.h | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/sys/dev/usb/hid.h b/sys/dev/usb/hid.h index 928a86ce337..096a34e270f 100644 --- a/sys/dev/usb/hid.h +++ b/sys/dev/usb/hid.h @@ -1,5 +1,5 @@ -/* $OpenBSD: hid.h,v 1.5 2002/05/07 18:08:04 nate Exp $ */ -/* $NetBSD: hid.h,v 1.7 2001/12/28 17:32:36 augustss Exp $ */ +/* $OpenBSD: hid.h,v 1.6 2002/05/07 18:29:18 nate Exp $ */ +/* $NetBSD: hid.h,v 1.6 2000/06/01 14:28:57 augustss Exp $ */ /* $FreeBSD: src/sys/dev/usb/hid.h,v 1.7 1999/11/17 22:33:40 n_hibma Exp $ */ /* @@ -40,12 +40,7 @@ */ enum hid_kind { - hid_input, - hid_output, - hid_feature, - hid_collection, - hid_endcollection, - hid_none + hid_input, hid_output, hid_feature, hid_collection, hid_endcollection }; struct hid_location { @@ -86,11 +81,11 @@ struct hid_item { struct hid_item *next; }; -struct hid_data *hid_start_parse(void *d, int len, enum hid_kind kind); +struct hid_data *hid_start_parse(void *d, int len, int kindset); void hid_end_parse(struct hid_data *s); int hid_get_item(struct hid_data *s, struct hid_item *h); -int hid_report_size(void *buf, int len, enum hid_kind k, u_int8_t id); -int hid_locate(void *desc, int size, u_int32_t usage, u_int8_t id, - enum hid_kind kind, struct hid_location *loc, u_int32_t *flags); +int hid_report_size(void *buf, int len, enum hid_kind k, u_int8_t *id); +int hid_locate(void *desc, int size, u_int32_t usage, enum hid_kind kind, + struct hid_location *loc, u_int32_t *flags); u_long hid_get_data(u_char *buf, struct hid_location *loc); -int hid_is_collection(void *desc, int size, u_int8_t id, u_int32_t usage); +int hid_is_collection(void *desc, int size, u_int32_t usage); |