Changeset 1e70157 in mainline for uspace/drv/uhci-hcd/endpoint.h


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

Header fixes, add qh to endpoint structure, add endpoint toggle reset

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci-hcd/endpoint.h

    rfb8927d r1e70157  
    4141#include <usb/usb.h>
    4242
     43#include "hw_struct/queue_head.h"
     44
    4345typedef struct endpoint {
    4446        link_t same_device_eps;
     
    4850        bool active;
    4951        int toggle:1;
     52        qh_t *qh;
    5053} endpoint_t;
    5154
    52 void endpoint_init(endpoint_t *instance, usb_transfer_type_t transfer_type,
     55int endpoint_init(endpoint_t *instance, usb_transfer_type_t transfer_type,
    5356    usb_speed_t speed, size_t max_packet_size);
    5457
    55 void endpoint_destroy(void *instance);
     58void endpoint_destroy(void *ep);
     59
     60void endpoint_toggle_reset(link_t *ep);
    5661
    5762#endif
Note: See TracChangeset for help on using the changeset viewer.