Ignore:
Timestamp:
2011-10-27T11:40:06Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7265558
Parents:
4267908
Message:

libusbhost: Store bandwidth in endpoint structure.

Remove redundant node_t tructure and use endpoint_t directly.

File:
1 edited

Legend:

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

    r4267908 r83c3123  
    3636#define LIBUSBHOST_HOST_ENDPOINT_H
    3737
    38 #include <assert.h>
    3938#include <bool.h>
    4039#include <adt/list.h>
    4140#include <fibril_synch.h>
    42 
    4341#include <usb/usb.h>
    4442
    4543typedef struct endpoint {
     44        link_t link;
    4645        usb_address_t address;
    4746        usb_endpoint_t endpoint;
     
    5049        usb_speed_t speed;
    5150        size_t max_packet_size;
     51        size_t bandwidth;
    5252        unsigned toggle:1;
    5353        fibril_mutex_t guard;
     
    6262} endpoint_t;
    6363
    64 endpoint_t * endpoint_get(usb_address_t address, usb_endpoint_t endpoint,
     64endpoint_t * endpoint_create(usb_address_t address, usb_endpoint_t endpoint,
    6565    usb_direction_t direction, usb_transfer_type_t type, usb_speed_t speed,
    66     size_t max_packet_size);
    67 
     66    size_t max_packet_size, size_t bw);
    6867void endpoint_destroy(endpoint_t *instance);
    6968
     
    7170    void *data, void (*destroy_hook)(endpoint_t *),
    7271    int (*toggle_get)(void *), void (*toggle_set)(void *, int));
    73 
    7472void endpoint_clear_hc_data(endpoint_t *instance);
    7573
    7674void endpoint_use(endpoint_t *instance);
    77 
    7875void endpoint_release(endpoint_t *instance);
    7976
    8077int endpoint_toggle_get(endpoint_t *instance);
    81 
    8278void endpoint_toggle_set(endpoint_t *instance, int toggle);
    83 
    8479void endpoint_toggle_reset_filtered(endpoint_t *instance, usb_target_t target);
    8580#endif
Note: See TracChangeset for help on using the changeset viewer.