Changeset 944f8fdd in mainline for uspace/lib/usbhost/include


Ignore:
Timestamp:
2018-01-19T17:38:22Z (8 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2833bb4
Parents:
861b5d6
git-author:
Ondřej Hlavatý <aearsis@…> (2018-01-19 17:06:40)
git-committer:
Ondřej Hlavatý <aearsis@…> (2018-01-19 17:38:22)
Message:

libusbhost: move utility functions to new header utility.h

Location:
uspace/lib/usbhost/include/usb/host
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhost/include/usb/host/ddf_helpers.h

    r861b5d6 r944f8fdd  
    4848void hcd_ddf_clean_hc(hc_device_t *);
    4949
    50 int hcd_setup_virtual_root_hub(hc_device_t *);
    5150
    5251device_t *hcd_ddf_fun_create(hc_device_t *, usb_speed_t);
    5352void hcd_ddf_fun_destroy(device_t *);
    5453
    55 int hcd_get_device_desc(device_t *, usb_standard_device_descriptor_t *);
    56 int hcd_setup_match_ids(device_t *, usb_standard_device_descriptor_t *);
    57 int hcd_device_explore(device_t *);
     54int hcd_ddf_setup_match_ids(device_t *, usb_standard_device_descriptor_t *);
    5855
    5956int hcd_ddf_enable_interrupt(hc_device_t *hcd, int);
  • uspace/lib/usbhost/include/usb/host/hcd.h

    r861b5d6 r944f8fdd  
    110110int hc_driver_main(const hc_driver_t *);
    111111
    112 /* TODO: These are a kind of utility functions, they should probably go
    113  * somewhere else.
    114  */
    115 extern int hcd_get_ep0_max_packet_size(uint16_t *, bus_t *, device_t *);
    116 
    117 /** How many toggles need to be reset */
    118 typedef enum {
    119         RESET_NONE,
    120         RESET_EP,
    121         RESET_ALL
    122 } toggle_reset_mode_t;
    123 
    124 extern toggle_reset_mode_t hcd_get_request_toggle_reset_mode(
    125     const usb_device_request_setup_packet_t *request);
    126 
    127112#endif
    128113
  • uspace/lib/usbhost/include/usb/host/usb_transfer_batch.h

    r861b5d6 r944f8fdd  
    5151typedef struct endpoint endpoint_t;
    5252typedef struct bus bus_t;
     53
     54/** How many toggles need to be reset */
     55typedef enum {
     56        RESET_NONE,
     57        RESET_EP,
     58        RESET_ALL
     59} toggle_reset_mode_t;
    5360
    5461/** Structure stores additional data needed for communication with EP */
Note: See TracChangeset for help on using the changeset viewer.