Changeset b3c39690 in mainline for uspace/drv/nic/ar9271/ath_usb.h


Ignore:
Timestamp:
2018-01-21T23:19:20Z (7 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
db51a6a6
Parents:
09187c6e
git-author:
Ondřej Hlavatý <aearsis@…> (2018-01-21 23:19:14)
git-committer:
Ondřej Hlavatý <aearsis@…> (2018-01-21 23:19:20)
Message:

usb: remove misleading usb_device_get_mapped_ep

Even though this method may seem very convenient to use, it's actually
wrong. The devices are usually not required to have strict endpoint
numbers. That's why the mapping mechanism exists. Therefore, it's just
not possible to rely on fixed endpoint mapping.

There could be similar method, that would take the transfer type and
direction, but it's much better to ask for the complete mapping then.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/nic/ar9271/ath_usb.h

    r09187c6e rb3c39690  
    4545typedef struct {
    4646        /** USB pipes indexes */
    47         int input_ctrl_pipe_number;
    48         int output_ctrl_pipe_number;
    49         int input_data_pipe_number;
    50         int output_data_pipe_number;
     47        usb_pipe_t *input_ctrl_pipe;
     48        usb_pipe_t *output_ctrl_pipe;
     49        usb_pipe_t *input_data_pipe;
     50        usb_pipe_t *output_data_pipe;
    5151       
    5252        /** Pointer to connected USB device. */
     
    5959} ath_usb_data_header_t;
    6060
    61 extern int ath_usb_init(ath_t *, usb_device_t *);
     61extern int ath_usb_init(ath_t *, usb_device_t *, const usb_endpoint_description_t **endpoints);
    6262
    6363#endif  /* ATHEROS_ATH_USB_H */
Note: See TracChangeset for help on using the changeset viewer.