Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/pciintel/pci.c

    r41b56084 rbe942bc  
    4949#include <ipc/devman.h>
    5050#include <ipc/dev_iface.h>
    51 #include <ops/hw_res.h>
     51#include <resource.h>
    5252#include <device/hw_res.h>
    5353#include <ddi.h>
     
    7777}
    7878
    79 static hw_res_ops_t pciintel_child_hw_res_ops = {
     79static resource_iface_t pciintel_child_res_iface = {
    8080        &pciintel_get_child_resources,
    8181        &pciintel_enable_child_interrupt
     
    473473        hw_resource_list_t hw_resources;
    474474       
    475         rc = hw_res_get_resource_list(dev->parent_phone, &hw_resources);
     475        rc = get_hw_resources(dev->parent_phone, &hw_resources);
    476476        if (rc != EOK) {
    477477                printf(NAME ": pci_add_device failed to get hw resources for "
     
    497497                delete_pci_bus_data(bus_data);
    498498                ipc_hangup(dev->parent_phone);
    499                 hw_res_clean_resource_list(&hw_resources);
     499                clean_hw_resource_list(&hw_resources);
    500500                return EADDRNOTAVAIL;
    501501        }
     
    508508        pci_bus_scan(dev, 0);
    509509       
    510         hw_res_clean_resource_list(&hw_resources);
     510        clean_hw_resource_list(&hw_resources);
    511511       
    512512        return EOK;
     
    515515static void pciintel_init(void)
    516516{
    517         pci_child_ops.interfaces[HW_RES_DEV_IFACE] = &pciintel_child_hw_res_ops;
     517        pci_child_ops.interfaces[HW_RES_DEV_IFACE] = &pciintel_child_res_iface;
    518518}
    519519
     
    537537{
    538538        if (dev_data != NULL) {
    539                 hw_res_clean_resource_list(&dev_data->hw_resources);
     539                clean_hw_resource_list(&dev_data->hw_resources);
    540540                free(dev_data);
    541541        }
Note: See TracChangeset for help on using the changeset viewer.