Changeset 8dc762e0 in mainline for uspace/lib/usb/include


Ignore:
Timestamp:
2011-04-06T21:12:41Z (14 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f567bcf
Parents:
1e70157
Message:

Move endpoint_t to libusb

Location:
uspace/lib/usb/include/usb/host
Files:
1 edited
1 moved

Legend:

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

    r1e70157 r8dc762e0  
    2727 */
    2828
    29 /** @addtogroup drvusbuhcihc
     29/** @addtogroup libusb
    3030 * @{
    3131 */
    3232/** @file
    33  * @brief UHCI host controller driver structure
     33 *
    3434 */
    35 #ifndef DRV_UHCI_UHCI_ENDPOINT_H
    36 #define DRV_UHCI_UHCI_ENDPOINT_H
     35#ifndef LIBUSB_HOST_ENDPOINT_H
     36#define LIBUSB_HOST_ENDPOINT_H
    3737
    3838#include <assert.h>
     
    4040#include <adt/list.h>
    4141#include <usb/usb.h>
    42 
    43 #include "hw_struct/queue_head.h"
    4442
    4543typedef struct endpoint {
     
    5048        bool active;
    5149        int toggle:1;
    52         qh_t *qh;
    5350} endpoint_t;
    5451
     
    5653    usb_speed_t speed, size_t max_packet_size);
    5754
    58 void endpoint_destroy(void *ep);
     55void endpoint_destroy(endpoint_t *instance);
    5956
    6057void endpoint_toggle_reset(link_t *ep);
  • uspace/lib/usb/include/usb/host/usb_endpoint_manager.h

    r1e70157 r8dc762e0  
    4343#include <fibril_synch.h>
    4444#include <usb/usb.h>
     45#include <usb/host/endpoint.h>
    4546
    4647#define BANDWIDTH_TOTAL_USB11 12000000
     
    6364
    6465int usb_endpoint_manager_register_ep(usb_endpoint_manager_t *instance,
    65     usb_address_t address, usb_endpoint_t ep, usb_direction_t direction,
    66     void *data, void (*data_remove_callback)(void* data), size_t bw);
     66    usb_address_t address, usb_endpoint_t endpoint, usb_direction_t direction,
     67    endpoint_t *ep, size_t data_size);
    6768
    6869int usb_endpoint_manager_register_ep_wait(usb_endpoint_manager_t *instance,
     
    7475    usb_address_t address, usb_endpoint_t ep, usb_direction_t direction);
    7576
    76 void * usb_endpoint_manager_get_ep_data(usb_endpoint_manager_t *instance,
     77endpoint_t * usb_endpoint_manager_get_ep(usb_endpoint_manager_t *instance,
    7778    usb_address_t address, usb_endpoint_t ep, usb_direction_t direction,
    7879    size_t *bw);
Note: See TracChangeset for help on using the changeset viewer.