Changeset c6f82e5 in mainline for uspace/lib/usbhost/include


Ignore:
Timestamp:
2018-01-19T20:56:14Z (8 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7ec7b7e
Parents:
69b2dfee
Message:

libusbhost: do not try to handle the toggle bit in a generic way

Location:
uspace/lib/usbhost/include/usb/host
Files:
4 edited

Legend:

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

    r69b2dfee rc6f82e5  
    115115        void (*endpoint_unregister)(endpoint_t *);
    116116        void (*endpoint_destroy)(endpoint_t *);                 /**< Optional */
    117         void (*endpoint_toggle_reset)(endpoint_t *);            /**< Optional */
    118117        ssize_t (*endpoint_count_bw) (endpoint_t *, size_t);    /**< Optional */
    119118        usb_transfer_batch_t *(*batch_create)(endpoint_t *);    /**< Optional */
  • uspace/lib/usbhost/include/usb/host/endpoint.h

    r69b2dfee rc6f82e5  
    6161        /** Reserved bandwidth. */
    6262        size_t bandwidth;
    63         /** Value of the toggle bit. Untouched by the library. */
    64         unsigned toggle:1;
    6563        /** The currently active transfer batch. Write using methods, read under guard. */
    6664        usb_transfer_batch_t *active_batch;
  • uspace/lib/usbhost/include/usb/host/usb_transfer_batch.h

    r69b2dfee rc6f82e5  
    5252typedef struct bus bus_t;
    5353
    54 /** How many toggles need to be reset */
    55 typedef enum {
    56         RESET_NONE,
    57         RESET_EP,
    58         RESET_ALL
    59 } toggle_reset_mode_t;
    60 
    6154/** Structure stores additional data needed for communication with EP */
    6255typedef struct usb_transfer_batch {
     
    8174                uint64_t packed;
    8275        } setup;
    83 
    84         /** Resetting the Toggle */
    85         toggle_reset_mode_t toggle_reset_mode;
    8676
    8777        /** Place for data to send/receive */
  • uspace/lib/usbhost/include/usb/host/utility.h

    r69b2dfee rc6f82e5  
    4444#include <usb/request.h>
    4545
     46typedef void (*endpoint_reset_toggle_t)(endpoint_t *);
     47
    4648int hc_get_ep0_max_packet_size(uint16_t *, bus_t *, device_t *);
    47 toggle_reset_mode_t hc_get_request_toggle_reset_mode(const usb_device_request_setup_packet_t *request);
     49void hc_reset_toggles(const usb_transfer_batch_t *batch, endpoint_reset_toggle_t);
    4850int hc_setup_virtual_root_hub(hc_device_t *);
    4951int hc_get_device_desc(device_t *, usb_standard_device_descriptor_t *);
Note: See TracChangeset for help on using the changeset viewer.