Changeset 3afb758 in mainline for uspace/drv/bus/usb/uhci/hc.h


Ignore:
Timestamp:
2011-08-24T15:23:46Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1a02517
Parents:
5fe0a69
Message:

UHCI: Remove old code

Add support for hcd_t destruction.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/uhci/hc.h

    r5fe0a69 r3afb758  
    3939#include <ddi.h>
    4040
    41 #include <usb/host/device_keeper.h>
    42 #include <usb/host/usb_endpoint_manager.h>
    4341#include <usb/host/batch.h>
    4442#include <usb/host/hcd.h>
     
    9593/** Main UHCI driver structure */
    9694typedef struct hc {
     95        /** Generic HCD driver structure */
    9796        hcd_t generic;
    98         /** USB bus driver, devices and addresses */
    99         usb_device_keeper_t manager;
    100         /** USB bus driver, endpoints */
    101         usb_endpoint_manager_t ep_manager;
    10297
    10398        /** Addresses of I/O registers */
     
    126121        unsigned hw_failures;
    127122} hc_t;
     123
    128124size_t hc_irq_cmd_count(void);
    129125int hc_get_irq_commands(
    130126    irq_cmd_t cmds[], size_t cmd_size, uintptr_t regs, size_t reg_size);
     127void hc_interrupt(hc_t *instance, uint16_t status);
    131128int hc_init(hc_t *instance, void *regs, size_t reg_size, bool interupts);
    132 int hc_schedule(hc_t *instance, usb_transfer_batch_t *batch);
    133 void hc_interrupt(hc_t *instance, uint16_t status);
    134129
    135130/** Safely dispose host controller internal structures
     
    137132 * @param[in] instance Host controller structure to use.
    138133 */
    139 static inline void hc_fini(hc_t *instance) { /* TODO: implement*/ };
    140 
    141 /** Get and cast pointer to the driver data
    142  *
    143  * @param[in] fun DDF function pointer
    144  * @return cast pointer to driver_data
    145  */
    146 static inline hc_t * fun_to_hc(ddf_fun_t *fun)
    147 {
    148         assert(fun);
    149         return fun->driver_data;
    150 }
     134static inline void hc_fini(hc_t *instance) {} /* TODO: implement*/
    151135#endif
    152136/**
Note: See TracChangeset for help on using the changeset viewer.