Changes in uspace/drv/pciintel/pci.c [41b56084:be942bc] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/pciintel/pci.c
r41b56084 rbe942bc 49 49 #include <ipc/devman.h> 50 50 #include <ipc/dev_iface.h> 51 #include < ops/hw_res.h>51 #include <resource.h> 52 52 #include <device/hw_res.h> 53 53 #include <ddi.h> … … 77 77 } 78 78 79 static hw_res_ops_t pciintel_child_hw_res_ops= {79 static resource_iface_t pciintel_child_res_iface = { 80 80 &pciintel_get_child_resources, 81 81 &pciintel_enable_child_interrupt … … 473 473 hw_resource_list_t hw_resources; 474 474 475 rc = hw_res_get_resource_list(dev->parent_phone, &hw_resources);475 rc = get_hw_resources(dev->parent_phone, &hw_resources); 476 476 if (rc != EOK) { 477 477 printf(NAME ": pci_add_device failed to get hw resources for " … … 497 497 delete_pci_bus_data(bus_data); 498 498 ipc_hangup(dev->parent_phone); 499 hw_res_clean_resource_list(&hw_resources);499 clean_hw_resource_list(&hw_resources); 500 500 return EADDRNOTAVAIL; 501 501 } … … 508 508 pci_bus_scan(dev, 0); 509 509 510 hw_res_clean_resource_list(&hw_resources);510 clean_hw_resource_list(&hw_resources); 511 511 512 512 return EOK; … … 515 515 static void pciintel_init(void) 516 516 { 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; 518 518 } 519 519 … … 537 537 { 538 538 if (dev_data != NULL) { 539 hw_res_clean_resource_list(&dev_data->hw_resources);539 clean_hw_resource_list(&dev_data->hw_resources); 540 540 free(dev_data); 541 541 }
Note:
See TracChangeset
for help on using the changeset viewer.