usb_request.h (233771) | usb_request.h (250207) |
---|---|
1/* $FreeBSD: head/sys/dev/usb/usb_request.h 233771 2012-04-02 07:51:30Z hselasky $ */ | 1/* $FreeBSD: head/sys/dev/usb/usb_request.h 250207 2013-05-03 11:10:04Z hselasky $ */ |
2/*- 3 * Copyright (c) 2008 Hans Petter Selasky. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. --- 29 unchanged lines hidden (view full) --- 39usb_error_t usbd_req_get_config(struct usb_device *udev, struct mtx *mtx, 40 uint8_t *pconf); 41usb_error_t usbd_req_get_descriptor_ptr(struct usb_device *udev, 42 struct usb_config_descriptor **ppcd, uint16_t wValue); 43usb_error_t usbd_req_get_config_desc(struct usb_device *udev, struct mtx *mtx, 44 struct usb_config_descriptor *d, uint8_t conf_index); 45usb_error_t usbd_req_get_config_desc_full(struct usb_device *udev, 46 struct mtx *mtx, struct usb_config_descriptor **ppcd, | 2/*- 3 * Copyright (c) 2008 Hans Petter Selasky. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. --- 29 unchanged lines hidden (view full) --- 39usb_error_t usbd_req_get_config(struct usb_device *udev, struct mtx *mtx, 40 uint8_t *pconf); 41usb_error_t usbd_req_get_descriptor_ptr(struct usb_device *udev, 42 struct usb_config_descriptor **ppcd, uint16_t wValue); 43usb_error_t usbd_req_get_config_desc(struct usb_device *udev, struct mtx *mtx, 44 struct usb_config_descriptor *d, uint8_t conf_index); 45usb_error_t usbd_req_get_config_desc_full(struct usb_device *udev, 46 struct mtx *mtx, struct usb_config_descriptor **ppcd, |
47 struct malloc_type *mtype, uint8_t conf_index); | 47 uint8_t conf_index); |
48usb_error_t usbd_req_get_desc(struct usb_device *udev, struct mtx *mtx, 49 uint16_t *actlen, void *desc, uint16_t min_len, 50 uint16_t max_len, uint16_t id, uint8_t type, 51 uint8_t index, uint8_t retries); 52usb_error_t usbd_req_get_device_desc(struct usb_device *udev, struct mtx *mtx, 53 struct usb_device_descriptor *d); 54usb_error_t usbd_req_get_device_status(struct usb_device *udev, 55 struct mtx *mtx, struct usb_status *st); --- 33 unchanged lines hidden (view full) --- 89 uint8_t port); 90usb_error_t usbd_req_clear_tt_buffer(struct usb_device *udev, struct mtx *mtx, 91 uint8_t port, uint8_t addr, uint8_t type, uint8_t endpoint); 92usb_error_t usbd_req_set_port_link_state(struct usb_device *udev, 93 struct mtx *mtx, uint8_t port, uint8_t link_state); 94usb_error_t usbd_req_set_lpm_info(struct usb_device *udev, struct mtx *mtx, 95 uint8_t port, uint8_t besl, uint8_t addr, uint8_t rwe); 96 | 48usb_error_t usbd_req_get_desc(struct usb_device *udev, struct mtx *mtx, 49 uint16_t *actlen, void *desc, uint16_t min_len, 50 uint16_t max_len, uint16_t id, uint8_t type, 51 uint8_t index, uint8_t retries); 52usb_error_t usbd_req_get_device_desc(struct usb_device *udev, struct mtx *mtx, 53 struct usb_device_descriptor *d); 54usb_error_t usbd_req_get_device_status(struct usb_device *udev, 55 struct mtx *mtx, struct usb_status *st); --- 33 unchanged lines hidden (view full) --- 89 uint8_t port); 90usb_error_t usbd_req_clear_tt_buffer(struct usb_device *udev, struct mtx *mtx, 91 uint8_t port, uint8_t addr, uint8_t type, uint8_t endpoint); 92usb_error_t usbd_req_set_port_link_state(struct usb_device *udev, 93 struct mtx *mtx, uint8_t port, uint8_t link_state); 94usb_error_t usbd_req_set_lpm_info(struct usb_device *udev, struct mtx *mtx, 95 uint8_t port, uint8_t besl, uint8_t addr, uint8_t rwe); 96 |
97void * usbd_alloc_config_desc(struct usb_device *, uint32_t); 98void usbd_free_config_desc(struct usb_device *, void *); 99 |
|
97#endif /* _USB_REQUEST_H_ */ | 100#endif /* _USB_REQUEST_H_ */ |