Changeset 6bb0f43 in mainline for uspace/drv/ohci/hc.h


Ignore:
Timestamp:
2011-04-13T10:36:09Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2759c52
Parents:
3d932af6
Message:

Move endpoint registration to hc.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/ohci/hc.h

    r3d932af6 r6bb0f43  
    7777     uintptr_t regs, size_t reg_size, bool interrupts);
    7878
    79 int hc_schedule(hc_t *instance, usb_transfer_batch_t *batch);
    80 
    81 void hc_interrupt(hc_t *instance, uint32_t status);
    82 
    8379/** Safely dispose host controller internal structures
    8480 *
     
    8682 */
    8783static inline void hc_fini(hc_t *instance) { /* TODO: implement*/ };
     84
     85int hc_add_endpoint(hc_t *instance, usb_address_t address, usb_endpoint_t ep,
     86    usb_speed_t speed, usb_transfer_type_t type, usb_direction_t direction,
     87                size_t max_packet_size, size_t size, unsigned interval);
     88
     89int hc_remove_endpoint(hc_t *instance, usb_address_t address,
     90    usb_endpoint_t endpoint, usb_direction_t direction);
     91
     92int hc_schedule(hc_t *instance, usb_transfer_batch_t *batch);
     93
     94void hc_interrupt(hc_t *instance, uint32_t status);
    8895
    8996/** Get and cast pointer to the driver data
Note: See TracChangeset for help on using the changeset viewer.