Changes in uspace/drv/pciintel/pci.c [be942bc:d93aafed] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/pciintel/pci.c
rbe942bc rd93aafed 323 323 if (range_addr != 0) { 324 324 printf(NAME ": device %s : ", dev->name); 325 printf("address = % " PRIx64, range_addr);326 printf(", size = %x\n", (unsigned int)range_size);325 printf("address = %x", range_addr); 326 printf(", size = %x\n", range_size); 327 327 } 328 328 … … 452 452 static int pci_add_device(device_t *dev) 453 453 { 454 int rc;455 456 454 printf(NAME ": pci_add_device\n"); 457 455 … … 468 466 "parent's driver.\n"); 469 467 delete_pci_bus_data(bus_data); 470 return dev->parent_phone;468 return EPARTY; /* FIXME: use another EC */ 471 469 } 472 470 473 471 hw_resource_list_t hw_resources; 474 472 475 rc = get_hw_resources(dev->parent_phone, &hw_resources); 476 if (rc != EOK) { 473 if (!get_hw_resources(dev->parent_phone, &hw_resources)) { 477 474 printf(NAME ": pci_add_device failed to get hw resources for " 478 475 "the device.\n"); 479 476 delete_pci_bus_data(bus_data); 480 477 ipc_hangup(dev->parent_phone); 481 return rc;478 return EPARTY; /* FIXME: use another EC */ 482 479 } 483 480 484 printf(NAME ": conf_addr = % " PRIx64 ".\n",481 printf(NAME ": conf_addr = %x.\n", 485 482 hw_resources.resources[0].res.io_range.address); 486 483 … … 492 489 (uint32_t) hw_resources.resources[0].res.io_range.address; 493 490 494 if (pio_enable((void *) (uintptr_t)bus_data->conf_io_addr, 8,491 if (pio_enable((void *)bus_data->conf_io_addr, 8, 495 492 &bus_data->conf_addr_port)) { 496 493 printf(NAME ": failed to enable configuration ports.\n");
Note:
See TracChangeset
for help on using the changeset viewer.