Changeset 9e470c0 in mainline for uspace/drv/bus/pci/pciintel/pci.c


Ignore:
Timestamp:
2013-09-12T11:16:00Z (12 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
eeb5cc2
Parents:
ff97957
Message:

Add IO_RANGE and MEM_RANGE members to distinguish whether the range is
parent-relative or absolute. pio_read/write_n(), pio_enable() and
IRQ pseudocode need to be passed absolute values.

File:
1 edited

Legend:

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

    rff97957 r9e470c0  
    449449                hw_resources[count].res.io_range.address = range_addr;
    450450                hw_resources[count].res.io_range.size = range_size;
     451                hw_resources[count].res.io_range.relative = true;
    451452                hw_resources[count].res.io_range.endianness = LITTLE_ENDIAN;
    452453        } else {
     
    454455                hw_resources[count].res.mem_range.address = range_addr;
    455456                hw_resources[count].res.mem_range.size = range_size;
     457                hw_resources[count].res.mem_range.relative = false;
    456458                hw_resources[count].res.mem_range.endianness = LITTLE_ENDIAN;
    457459        }
Note: See TracChangeset for help on using the changeset viewer.