Changeset f567bcf in mainline for uspace/lib/usb/include


Ignore:
Timestamp:
2011-04-06T22:02:17Z (14 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4ca18ae
Parents:
8dc762e0
Message:

Switch to new endpoint toggle control.

Location:
uspace/lib/usb/include/usb/host
Files:
3 edited

Legend:

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

    r8dc762e0 rf567bcf  
    3939#include <usbhc_iface.h>
    4040#include <usb/usb.h>
     41#include <usb/host/endpoint.h>
    4142
    4243typedef struct usb_transfer_batch usb_transfer_batch_t;
     
    6061        ddf_fun_t *fun;
    6162        void *arg;
     63        endpoint_t *ep;
    6264        void *private_data;
    6365};
     
    7880    void *arg,
    7981    ddf_fun_t *fun,
     82                endpoint_t *ep,
    8083    void *private_data
    8184);
  • uspace/lib/usb/include/usb/host/device_keeper.h

    r8dc762e0 rf567bcf  
    4545#include <fibril_synch.h>
    4646#include <usb/usb.h>
     47#include <usb/host/endpoint.h>
    4748
    4849/** Number of USB address for array dimensions. */
     
    7273
    7374void usb_device_keeper_add_ep(
    74     usb_device_keeper_t *instance, usb_address_t address, link_t *ep);
     75    usb_device_keeper_t *instance, usb_address_t address, endpoint_t *ep);
    7576
    7677void usb_device_keeper_reserve_default_address(
     
    8283    usb_target_t target,
    8384    const uint8_t *setup_data);
    84 
     85/*
    8586int usb_device_keeper_get_toggle(usb_device_keeper_t *instance,
    8687    usb_target_t target, usb_direction_t direction);
     
    8889int usb_device_keeper_set_toggle(usb_device_keeper_t *instance,
    8990    usb_target_t target, usb_direction_t direction, bool toggle);
    90 
     91*/
    9192usb_address_t device_keeper_get_free_address(usb_device_keeper_t *instance,
    9293    usb_speed_t speed);
  • uspace/lib/usb/include/usb/host/endpoint.h

    r8dc762e0 rf567bcf  
    4747        size_t max_packet_size;
    4848        bool active;
    49         int toggle:1;
     49        unsigned toggle:1;
    5050} endpoint_t;
    5151
     
    5555void endpoint_destroy(endpoint_t *instance);
    5656
     57int endpoint_toggle_get(endpoint_t *instance);
     58
     59void endpoint_toggle_set(endpoint_t *instance, int toggle);
     60
    5761void endpoint_toggle_reset(link_t *ep);
     62
    5863
    5964#endif
Note: See TracChangeset for help on using the changeset viewer.