Changeset 19a1800 in mainline for uspace/lib/usb/include/usb/request.h
- Timestamp:
- 2011-03-01T22:20:56Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e24e7b1
- Parents:
- 976f546 (diff), ac8285d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/include/usb/request.h
r976f546 r19a1800 1 1 /* 2 * Copyright (c) 201 0Vojtech Horky2 * Copyright (c) 2011 Vojtech Horky 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 29 /** @addtogroup libusb usb29 /** @addtogroup libusb 30 30 * @{ 31 31 */ 32 32 /** @file 33 * @brief Standard USB devicerequests.33 * Standard USB requests. 34 34 */ 35 #ifndef LIBUSB_ DEVREQ_H_36 #define LIBUSB_ DEVREQ_H_35 #ifndef LIBUSB_REQUEST_H_ 36 #define LIBUSB_REQUEST_H_ 37 37 38 #include < ipc/ipc.h>39 #include < async.h>38 #include <sys/types.h> 39 #include <l18n/langs.h> 40 40 #include <usb/usb.h> 41 #include <usb/pipes.h> 41 42 #include <usb/descriptor.h> 42 43 … … 70 71 /** Main parameter to the request. */ 71 72 union { 73 uint16_t value; 72 74 /* FIXME: add #ifdefs according to host endianess */ 73 75 struct { … … 75 77 uint8_t value_high; 76 78 }; 77 uint16_t value;78 79 }; 79 80 /** Auxiliary parameter to the request. … … 85 86 } __attribute__ ((packed)) usb_device_request_setup_packet_t; 86 87 88 int usb_control_request_set(usb_endpoint_pipe_t *, 89 usb_request_type_t, usb_request_recipient_t, uint8_t, 90 uint16_t, uint16_t, void *, size_t); 87 91 88 int usb_drv_req_get_status(int, usb_address_t, usb_request_recipient_t, 89 uint16_t, uint16_t *); 90 int usb_drv_req_clear_feature(int, usb_address_t, usb_request_recipient_t, 91 uint16_t, uint16_t); 92 int usb_drv_req_set_feature(int, usb_address_t, usb_request_recipient_t, 93 uint16_t, uint16_t); 94 int usb_drv_req_set_address(int, usb_address_t, usb_address_t); 95 int usb_drv_req_get_descriptor(int, usb_address_t, usb_request_type_t, 96 uint8_t, uint8_t, uint16_t, void *, size_t, size_t *); 97 int usb_drv_req_get_device_descriptor(int, usb_address_t, 92 int usb_control_request_get(usb_endpoint_pipe_t *, 93 usb_request_type_t, usb_request_recipient_t, uint8_t, 94 uint16_t, uint16_t, void *, size_t, size_t *); 95 96 int usb_request_set_address(usb_endpoint_pipe_t *, usb_address_t); 97 int usb_request_get_descriptor(usb_endpoint_pipe_t *, usb_request_type_t, 98 usb_request_recipient_t, uint8_t, uint8_t, uint16_t, void *, size_t, 99 size_t *); 100 int usb_request_get_descriptor_alloc(usb_endpoint_pipe_t *, usb_request_type_t, 101 usb_request_recipient_t, uint8_t, uint8_t, uint16_t, void **, size_t *); 102 int usb_request_get_device_descriptor(usb_endpoint_pipe_t *, 98 103 usb_standard_device_descriptor_t *); 99 int usb_ drv_req_get_bare_configuration_descriptor(int, usb_address_t, int,104 int usb_request_get_bare_configuration_descriptor(usb_endpoint_pipe_t *, int, 100 105 usb_standard_configuration_descriptor_t *); 101 int usb_ drv_req_get_full_configuration_descriptor(int, usb_address_t, int,106 int usb_request_get_full_configuration_descriptor(usb_endpoint_pipe_t *, int, 102 107 void *, size_t, size_t *); 103 int usb_ drv_req_set_descriptor(int, usb_address_t, uint8_t, uint8_t, uint16_t,104 void *, size_t); 105 int usb_ drv_req_get_configuration(int, usb_address_t, uint8_t *);106 int usb_drv_req_set_configuration(int, usb_address_t, uint8_t);107 int usb_ drv_req_get_interface(int, usb_address_t, uint16_t, uint8_t *);108 int usb_drv_req_set_interface(int, usb_address_t, uint16_t, uint8_t);108 int usb_request_set_configuration(usb_endpoint_pipe_t *, uint8_t); 109 110 int usb_request_get_supported_languages(usb_endpoint_pipe_t *, 111 l18_win_locales_t **, size_t *); 112 int usb_request_get_string(usb_endpoint_pipe_t *, size_t, l18_win_locales_t, 113 char **); 109 114 110 115 #endif
Note:
See TracChangeset
for help on using the changeset viewer.