Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/src/request.c

    r3954a63b r9cf1c5a  
    4242/** Generic wrapper for SET requests using standard control request format.
    4343 *
    44  * @see usb_pipe_control_write
     44 * @see usb_endpoint_pipe_control_write
    4545 *
    4646 * @param pipe Pipe used for the communication.
     
    6060 * @retval ERANGE Data buffer too large.
    6161 */
    62 int usb_control_request_set(usb_pipe_t *pipe,
     62int usb_control_request_set(usb_endpoint_pipe_t *pipe,
    6363    usb_request_type_t request_type, usb_request_recipient_t recipient,
    6464    uint8_t request,
     
    9090        setup_packet.length = (uint16_t) data_size;
    9191
    92         int rc = usb_pipe_control_write(pipe,
     92        int rc = usb_endpoint_pipe_control_write(pipe,
    9393            &setup_packet, sizeof(setup_packet),
    9494            data, data_size);
     
    9999 /** Generic wrapper for GET requests using standard control request format.
    100100  *
    101   * @see usb_pipe_control_read
     101  * @see usb_endpoint_pipe_control_read
    102102  *
    103103  * @param pipe Pipe used for the communication.
     
    120120  * @retval ERANGE Data buffer too large.
    121121  */
    122 int usb_control_request_get(usb_pipe_t *pipe,
     122int usb_control_request_get(usb_endpoint_pipe_t *pipe,
    123123    usb_request_type_t request_type, usb_request_recipient_t recipient,
    124124    uint8_t request,
     
    150150        setup_packet.length = (uint16_t) data_size;
    151151
    152         int rc = usb_pipe_control_read(pipe,
     152        int rc = usb_endpoint_pipe_control_read(pipe,
    153153            &setup_packet, sizeof(setup_packet),
    154154            data, data_size, actual_data_size);
     
    165165 * @return Error code.
    166166 */
    167 int usb_request_get_status(usb_pipe_t *pipe,
     167int usb_request_get_status(usb_endpoint_pipe_t *pipe,
    168168    usb_request_recipient_t recipient, uint16_t index,
    169169    uint16_t *status)
     
    203203 * @return Error code.
    204204 */
    205 int usb_request_clear_feature(usb_pipe_t *pipe,
     205int usb_request_clear_feature(usb_endpoint_pipe_t *pipe,
    206206    usb_request_type_t request_type, usb_request_recipient_t recipient,
    207207    uint16_t feature_selector, uint16_t index)
     
    231231 * @return Error code.
    232232 */
    233 int usb_request_set_feature(usb_pipe_t *pipe,
     233int usb_request_set_feature(usb_endpoint_pipe_t *pipe,
    234234    usb_request_type_t request_type, usb_request_recipient_t recipient,
    235235    uint16_t feature_selector, uint16_t index)
     
    258258 * @return Error code.
    259259 */
    260 int usb_request_set_address(usb_pipe_t *pipe,
     260int usb_request_set_address(usb_endpoint_pipe_t *pipe,
    261261    usb_address_t new_address)
    262262{
     
    297297 * @return Error code.
    298298 */
    299 int usb_request_get_descriptor(usb_pipe_t *pipe,
     299int usb_request_get_descriptor(usb_endpoint_pipe_t *pipe,
    300300    usb_request_type_t request_type, usb_request_recipient_t recipient,
    301301    uint8_t descriptor_type, uint8_t descriptor_index,
     
    331331 * @return
    332332 */
    333 int usb_request_get_descriptor_alloc(usb_pipe_t * pipe,
     333int usb_request_get_descriptor_alloc(usb_endpoint_pipe_t * pipe,
    334334    usb_request_type_t request_type, usb_request_recipient_t recipient,
    335335    uint8_t descriptor_type, uint8_t descriptor_index,
     
    400400 * @return Error code.
    401401 */
    402 int usb_request_get_device_descriptor(usb_pipe_t *pipe,
     402int usb_request_get_device_descriptor(usb_endpoint_pipe_t *pipe,
    403403    usb_standard_device_descriptor_t *descriptor)
    404404{
     
    442442 * @return Error code.
    443443 */
    444 int usb_request_get_bare_configuration_descriptor(usb_pipe_t *pipe,
     444int usb_request_get_bare_configuration_descriptor(usb_endpoint_pipe_t *pipe,
    445445    int index, usb_standard_configuration_descriptor_t *descriptor)
    446446{
     
    488488 * @return Error code.
    489489 */
    490 int usb_request_get_full_configuration_descriptor(usb_pipe_t *pipe,
     490int usb_request_get_full_configuration_descriptor(usb_endpoint_pipe_t *pipe,
    491491    int index, void *descriptor, size_t descriptor_size, size_t *actual_size)
    492492{
     
    514514 */
    515515int usb_request_get_full_configuration_descriptor_alloc(
    516     usb_pipe_t *pipe, int index,
     516    usb_endpoint_pipe_t *pipe, int index,
    517517    void **descriptor_ptr, size_t *descriptor_size)
    518518{
     
    578578 * @return Error code.
    579579 */
    580 int usb_request_set_descriptor(usb_pipe_t *pipe,
     580int usb_request_set_descriptor(usb_endpoint_pipe_t *pipe,
    581581    usb_request_type_t request_type, usb_request_recipient_t recipient,
    582582    uint8_t descriptor_type, uint8_t descriptor_index,
     
    607607 * @return Error code.
    608608 */
    609 int usb_request_get_configuration(usb_pipe_t *pipe,
     609int usb_request_get_configuration(usb_endpoint_pipe_t *pipe,
    610610    uint8_t *configuration_value)
    611611{
     
    639639 * @return Error code.
    640640 */
    641 int usb_request_set_configuration(usb_pipe_t *pipe,
     641int usb_request_set_configuration(usb_endpoint_pipe_t *pipe,
    642642    uint8_t configuration_value)
    643643{
     
    658658 * @return Error code.
    659659 */
    660 int usb_request_get_interface(usb_pipe_t *pipe,
     660int usb_request_get_interface(usb_endpoint_pipe_t *pipe,
    661661    uint8_t interface_index, uint8_t *alternate_setting)
    662662{
     
    691691 * @return Error code.
    692692 */
    693 int usb_request_set_interface(usb_pipe_t *pipe,
     693int usb_request_set_interface(usb_endpoint_pipe_t *pipe,
    694694    uint8_t interface_index, uint8_t alternate_setting)
    695695{
     
    710710 * @return Error code.
    711711 */
    712 int usb_request_get_supported_languages(usb_pipe_t *pipe,
     712int usb_request_get_supported_languages(usb_endpoint_pipe_t *pipe,
    713713    l18_win_locales_t **languages_ptr, size_t *languages_count)
    714714{
     
    782782 * @return Error code.
    783783 */
    784 int usb_request_get_string(usb_pipe_t *pipe,
     784int usb_request_get_string(usb_endpoint_pipe_t *pipe,
    785785    size_t index, l18_win_locales_t lang, char **string_ptr)
    786786{
Note: See TracChangeset for help on using the changeset viewer.