Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified uspace/drv/bus/usb/ohci/ohci.c

    r6561a8e r44c1a48  
    4242
    4343#include "ohci.h"
    44 #include "pci.h"
     44#include "res.h"
    4545#include "hc.h"
    4646
     
    7575        hc_interrupt(&ohci->hc, status);
    7676}
    77 
     77/*----------------------------------------------------------------------------*/
    7878/** Get USB address assigned to root hub.
    7979 *
     
    9292        return EOK;
    9393}
    94 
     94/*----------------------------------------------------------------------------*/
    9595/** Gets handle of the respective hc (this device, hc function).
    9696 *
     
    110110        return EOK;
    111111}
    112 
     112/*----------------------------------------------------------------------------*/
    113113/** Root hub USB interface */
    114114static usb_iface_t usb_iface = {
     
    116116        .get_my_address = rh_get_my_address,
    117117};
    118 
     118/*----------------------------------------------------------------------------*/
    119119/** Standard USB HC options (HC interface) */
    120120static ddf_dev_ops_t hc_ops = {
    121121        .interfaces[USBHC_DEV_IFACE] = &hcd_iface,
    122122};
    123 
     123/*----------------------------------------------------------------------------*/
    124124/** Standard USB RH options (RH interface) */
    125125static ddf_dev_ops_t rh_ops = {
    126126        .interfaces[USB_DEV_IFACE] = &usb_iface,
    127127};
    128 
     128/*----------------------------------------------------------------------------*/
    129129/** Initialize hc and rh ddf structures and their respective drivers.
    130130 *
     
    180180        int irq = 0;
    181181
    182         ret = pci_get_my_registers(device, &reg_base, &reg_size, &irq);
     182        ret = get_my_registers(device, &reg_base, &reg_size, &irq);
    183183        CHECK_RET_DEST_FREE_RETURN(ret,
    184184            "Failed to get register memory addresses for %" PRIun ": %s.\n",
     
    211211        /* Try to enable interrupts */
    212212        bool interrupts = false;
    213         ret = pci_enable_interrupts(device);
     213        ret = enable_interrupts(device);
    214214        if (ret != EOK) {
    215215                usb_log_warning("Failed to enable interrupts: %s."
Note: See TracChangeset for help on using the changeset viewer.