Changeset bab71635 in mainline for uspace/drv/ohci/main.c


Ignore:
Timestamp:
2011-03-21T11:13:26Z (14 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 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/ohci/main.c

    rc15070c rbab71635  
    4545#include "pci.h"
    4646#include "iface.h"
    47 #include "ohci_hc.h"
     47#include "hc.h"
    4848
    4949static int ohci_add_device(ddf_dev_t *device);
     
    5858{
    5959        assert(dev);
    60         ohci_hc_t *hc = (ohci_hc_t*)dev->driver_data;
     60        hc_t *hc = (hc_t*)dev->driver_data;
    6161        assert(hc);
    62         ohci_hc_interrupt(hc, 0);
     62        hc_interrupt(hc, 0);
    6363}
    6464/*----------------------------------------------------------------------------*/
     
    7272};
    7373static ddf_dev_ops_t hc_ops = {
    74         .interfaces[USBHC_DEV_IFACE] = &ohci_hc_iface,
     74        .interfaces[USBHC_DEV_IFACE] = &hc_iface,
    7575};
    7676
     
    105105            "Failed(%d) disable legacy USB: %s.\n", ret, str_error(ret));
    106106
    107         ohci_hc_t *hcd = malloc(sizeof(ohci_hc_t));
     107        hc_t *hcd = malloc(sizeof(hc_t));
    108108        if (hcd == NULL) {
    109109                usb_log_error("Failed to allocate OHCI driver.\n");
     
    129129        }
    130130
    131         ret = ohci_hc_init(hcd, hc_fun, mem_reg_base, mem_reg_size, interrupts);
     131        ret = hc_init(hcd, hc_fun, mem_reg_base, mem_reg_size, interrupts);
    132132        if (ret != EOK) {
    133133                usb_log_error("Failed to initialize OHCI driver.\n");
Note: See TracChangeset for help on using the changeset viewer.