diff options
author | Andrew Thompson <thompsa@FreeBSD.org> | 2009-05-29 18:46:57 +0000 |
---|---|---|
committer | Andrew Thompson <thompsa@FreeBSD.org> | 2009-05-29 18:46:57 +0000 |
commit | e0a69b51ac09dc0376611274903ba683e2d1ace7 (patch) | |
tree | 5ff9fef81906105040348e5e28fafc3efac89f62 /sys/dev/usb/usb_hid.c | |
parent | 623469c996b7c4bfdb768b72564d8e3d6ff21396 (diff) | |
download | src-e0a69b51ac09dc0376611274903ba683e2d1ace7.tar.gz src-e0a69b51ac09dc0376611274903ba683e2d1ace7.zip |
s/usb2_/usb_/ on all typedefs for the USB stack.
Notes
Notes:
svn path=/head/; revision=193045
Diffstat (limited to 'sys/dev/usb/usb_hid.c')
-rw-r--r-- | sys/dev/usb/usb_hid.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/dev/usb/usb_hid.c b/sys/dev/usb/usb_hid.c index e24df1c5d3df..99571365b9b0 100644 --- a/sys/dev/usb/usb_hid.c +++ b/sys/dev/usb/usb_hid.c @@ -105,7 +105,7 @@ hid_clear_local(struct hid_item *c) * hid_start_parse *------------------------------------------------------------------------*/ struct hid_data * -hid_start_parse(const void *d, usb2_size_t len, int kindset) +hid_start_parse(const void *d, size_t len, int kindset) { struct hid_data *s; @@ -491,7 +491,7 @@ hid_get_item(struct hid_data *s, struct hid_item *h) * hid_report_size *------------------------------------------------------------------------*/ int -hid_report_size(const void *buf, usb2_size_t len, enum hid_kind k, uint8_t *id) +hid_report_size(const void *buf, size_t len, enum hid_kind k, uint8_t *id) { struct hid_data *d; struct hid_item h; @@ -544,7 +544,7 @@ hid_report_size(const void *buf, usb2_size_t len, enum hid_kind k, uint8_t *id) * hid_locate *------------------------------------------------------------------------*/ int -hid_locate(const void *desc, usb2_size_t size, uint32_t u, enum hid_kind k, +hid_locate(const void *desc, size_t size, uint32_t u, enum hid_kind k, uint8_t index, struct hid_location *loc, uint32_t *flags, uint8_t *id) { struct hid_data *d; @@ -578,7 +578,7 @@ hid_locate(const void *desc, usb2_size_t size, uint32_t u, enum hid_kind k, * hid_get_data *------------------------------------------------------------------------*/ uint32_t -hid_get_data(const uint8_t *buf, usb2_size_t len, struct hid_location *loc) +hid_get_data(const uint8_t *buf, size_t len, struct hid_location *loc) { uint32_t hpos = loc->pos; uint32_t hsize = loc->size; @@ -621,7 +621,7 @@ hid_get_data(const uint8_t *buf, usb2_size_t len, struct hid_location *loc) * hid_is_collection *------------------------------------------------------------------------*/ int -hid_is_collection(const void *desc, usb2_size_t size, uint32_t usage) +hid_is_collection(const void *desc, size_t size, uint32_t usage) { struct hid_data *hd; struct hid_item hi; @@ -681,14 +681,14 @@ hid_get_descriptor_from_usb(struct usb_config_descriptor *cd, * NULL: Failure. * Else: Success. The pointer should eventually be passed to free(). *------------------------------------------------------------------------*/ -usb2_error_t +usb_error_t usb2_req_get_hid_desc(struct usb_device *udev, struct mtx *mtx, void **descp, uint16_t *sizep, - usb2_malloc_type mem, uint8_t iface_index) + struct malloc_type *mem, uint8_t iface_index) { struct usb_interface *iface = usb2_get_iface(udev, iface_index); struct usb_hid_descriptor *hid; - usb2_error_t err; + usb_error_t err; if ((iface == NULL) || (iface->idesc == NULL)) { return (USB_ERR_INVAL); |