Changeset bab71635 in mainline for uspace/drv/ohci/hc.h


Ignore:
Timestamp:
2011-03-21T11:13:26Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b0beee82
Parents:
c15070c
Message:

Renames, remove ohci prefix

File:
1 moved

Legend:

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

    rc15070c rbab71635  
    2626 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    2727 */
    28 
    29 /** @addtogroup drvusbohcihc
     28/** @addtogroup drvusbohci
    3029 * @{
    3130 */
     
    3332 * @brief OHCI host controller driver structure
    3433 */
    35 #ifndef DRV_OHCI_OHCI_HC_H
    36 #define DRV_OHCI_OHCI_HC_H
     34#ifndef DRV_OHCI_HC_H
     35#define DRV_OHCI_HC_H
    3736
    3837#include <fibril.h>
     
    4241
    4342#include <usb/usb.h>
     43#include <usb/host/device_keeper.h>
    4444#include <usbhc_iface.h>
    4545
    4646#include "batch.h"
    4747#include "ohci_regs.h"
    48 #include "ohci_rh.h"
     48#include "root_hub.h"
    4949
    50 typedef struct ohci_hc {
     50typedef struct hc {
    5151        ohci_regs_t *registers;
    5252        usb_address_t rh_address;
    5353        ohci_rh_t rh;
    5454        ddf_fun_t *ddf_instance;
    55 } ohci_hc_t;
     55        device_keeper_t manager;
     56} hc_t;
    5657
    57 int ohci_hc_init(ohci_hc_t *instance, ddf_fun_t *fun,
     58int hc_init(hc_t *instance, ddf_fun_t *fun,
    5859     uintptr_t regs, size_t reg_size, bool interrupts);
    5960
    60 int ohci_hc_schedule(ohci_hc_t *instance, batch_t *batch);
     61int hc_schedule(hc_t *instance, batch_t *batch);
    6162
    62 void ohci_hc_interrupt(ohci_hc_t *instance, uint16_t status);
     63void hc_interrupt(hc_t *instance, uint16_t status);
    6364
    6465/** Safely dispose host controller internal structures
     
    6667 * @param[in] instance Host controller structure to use.
    6768 */
    68 static inline void ohci_hc_fini(ohci_hc_t *instance) { /* TODO: implement*/ };
     69static inline void hc_fini(hc_t *instance) { /* TODO: implement*/ };
    6970
    7071/** Get and cast pointer to the driver data
     
    7374 * @return cast pointer to driver_data
    7475 */
    75 static inline ohci_hc_t * fun_to_ohci_hc(ddf_fun_t *fun)
    76         { return (ohci_hc_t*)fun->driver_data; }
     76static inline hc_t * fun_to_hc(ddf_fun_t *fun)
     77        { return (hc_t*)fun->driver_data; }
    7778#endif
    7879/**
Note: See TracChangeset for help on using the changeset viewer.