Changeset 973ef9fc in mainline for uspace/drv/pciintel/pci.c


Ignore:
Timestamp:
2010-12-25T21:20:28Z (13 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
631ee0c
Parents:
1bfd3d3 (diff), 09178b7f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 edited

Legend:

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

    r1bfd3d3 r973ef9fc  
    323323        if (range_addr != 0) {
    324324                printf(NAME ": device %s : ", dev->name);
    325                 printf("address = %x", range_addr);
    326                 printf(", size = %x\n", range_size);
     325                printf("address = %" PRIx64, range_addr);
     326                printf(", size = %x\n", (unsigned int) range_size);
    327327        }
    328328       
     
    452452static int pci_add_device(device_t *dev)
    453453{
     454        int rc;
     455
    454456        printf(NAME ": pci_add_device\n");
    455457       
     
    466468                    "parent's driver.\n");
    467469                delete_pci_bus_data(bus_data);
    468                 return EPARTY;  /* FIXME: use another EC */
     470                return dev->parent_phone;
    469471        }
    470472       
    471473        hw_resource_list_t hw_resources;
    472474       
    473         if (!get_hw_resources(dev->parent_phone, &hw_resources)) {
     475        rc = get_hw_resources(dev->parent_phone, &hw_resources);
     476        if (rc != EOK) {
    474477                printf(NAME ": pci_add_device failed to get hw resources for "
    475478                    "the device.\n");
    476479                delete_pci_bus_data(bus_data);
    477480                ipc_hangup(dev->parent_phone);
    478                 return EPARTY;  /* FIXME: use another EC */
     481                return rc;
    479482        }       
    480483       
    481         printf(NAME ": conf_addr = %x.\n",
     484        printf(NAME ": conf_addr = %" PRIx64 ".\n",
    482485            hw_resources.resources[0].res.io_range.address);
    483486       
     
    489492            (uint32_t) hw_resources.resources[0].res.io_range.address;
    490493       
    491         if (pio_enable((void *)bus_data->conf_io_addr, 8,
     494        if (pio_enable((void *)(uintptr_t)bus_data->conf_io_addr, 8,
    492495            &bus_data->conf_addr_port)) {
    493496                printf(NAME ": failed to enable configuration ports.\n");
Note: See TracChangeset for help on using the changeset viewer.