Ignore:
File:
1 edited

Legend:

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

    r848e880f r587478b  
    6363#define NAME "pciintel"
    6464
    65 #define CONF_ADDR_ENABLE        (1 << 31)
     65#define CONF_ADDR_ENABLE        (((unsigned)1) << 31)
    6666#define CONF_ADDR(bus, dev, fn, reg) \
    6767        ((bus << 16) | (dev << 11) | (fn << 8) | (reg & ~3))
     
    738738
    739739                if (pio_enable_resource(&bus->pio_win,
    740                     &hw_resources.resources[0], (void **) &bus->conf_space,
    741                     NULL, NULL)) {
     740                    &hw_resources.resources[0],
     741                    (void **) &bus->conf_space)) {
    742742                        ddf_msg(LVL_ERROR,
    743743                            "Failed to map configuration space.");
     
    759759
    760760                if (pio_enable_resource(&bus->pio_win,
    761                     &hw_resources.resources[0], (void **) &bus->conf_addr_reg,
    762                     NULL, NULL)) {
     761                    &hw_resources.resources[0],
     762                    (void **) &bus->conf_addr_reg)) {
    763763                        ddf_msg(LVL_ERROR,
    764764                            "Failed to enable configuration ports.");
     
    767767                }
    768768                if (pio_enable_resource(&bus->pio_win,
    769                     &hw_resources.resources[1], (void **) &bus->conf_data_reg,
    770                     NULL, NULL)) {
     769                    &hw_resources.resources[1],
     770                    (void **) &bus->conf_data_reg)) {
    771771                        ddf_msg(LVL_ERROR,
    772772                            "Failed to enable configuration ports.");
Note: See TracChangeset for help on using the changeset viewer.