Changes in uspace/drv/bus/pci/pciintel/pci.c [2df6f6fe:54de4836] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/pci/pciintel/pci.c
r2df6f6fe r54de4836 92 92 static bool pciintel_enable_interrupt(ddf_fun_t *fnode) 93 93 { 94 /* This is an old ugly way */94 /* This is an old ugly way, copied from ne2000 driver */ 95 95 assert(fnode); 96 96 pci_fun_t *dev_data = (pci_fun_t *) fnode->driver_data; … … 187 187 188 188 static hw_res_ops_t pciintel_hw_res_ops = { 189 .get_resource_list =&pciintel_get_resources,190 .enable_interrupt = &pciintel_enable_interrupt,189 &pciintel_get_resources, 190 &pciintel_enable_interrupt 191 191 }; 192 192 … … 205 205 }; 206 206 207 static int pci_ dev_add(ddf_dev_t *);207 static int pci_add_device(ddf_dev_t *); 208 208 static int pci_fun_online(ddf_fun_t *); 209 209 static int pci_fun_offline(ddf_fun_t *); … … 211 211 /** PCI bus driver standard operations */ 212 212 static driver_ops_t pci_ops = { 213 . dev_add = &pci_dev_add,213 .add_device = &pci_add_device, 214 214 .fun_online = &pci_fun_online, 215 215 .fun_offline = &pci_fun_offline, … … 610 610 } 611 611 612 static int pci_ dev_add(ddf_dev_t *dnode)612 static int pci_add_device(ddf_dev_t *dnode) 613 613 { 614 614 pci_bus_t *bus = NULL; … … 617 617 int rc; 618 618 619 ddf_msg(LVL_DEBUG, "pci_ dev_add");619 ddf_msg(LVL_DEBUG, "pci_add_device"); 620 620 dnode->parent_sess = NULL; 621 621 622 622 bus = ddf_dev_data_alloc(dnode, sizeof(pci_bus_t)); 623 623 if (bus == NULL) { 624 ddf_msg(LVL_ERROR, "pci_ dev_addallocation failed.");624 ddf_msg(LVL_ERROR, "pci_add_device allocation failed."); 625 625 rc = ENOMEM; 626 626 goto fail; … … 634 634 dnode->handle, IPC_FLAG_BLOCKING); 635 635 if (!dnode->parent_sess) { 636 ddf_msg(LVL_ERROR, "pci_ dev_addfailed to connect to the "636 ddf_msg(LVL_ERROR, "pci_add_device failed to connect to the " 637 637 "parent driver."); 638 638 rc = ENOENT; … … 644 644 rc = hw_res_get_resource_list(dnode->parent_sess, &hw_resources); 645 645 if (rc != EOK) { 646 ddf_msg(LVL_ERROR, "pci_ dev_addfailed to get hw resources "646 ddf_msg(LVL_ERROR, "pci_add_device failed to get hw resources " 647 647 "for the device."); 648 648 goto fail;
Note:
See TracChangeset
for help on using the changeset viewer.