Age | Commit message (Collapse) | Author | Files | Lines |
|
On kernels which have ROM files, the boot VGA rom file
will contain the 0xc0000 file anyways. If another card
is missing a rom file there is no need for this.
This is fallback is disabled by default, on the premise
that distro shipping this new a pciaccess will be running
on kernels with working rom support which is been upstream
for a long time
|
|
|
|
|
|
When the linux kernel exposes this information, we can use this interface
in the X server to detect whether the kernel believes the device we
are looking at is the boot VGA device.
Signed-off-by: Dave Airlie <airlied@redhat.com>
|
|
|
|
Starting with version 2.6.26, Linux will support resourceN_wc files which
export write combining mappings of PCI resource ranges, so support them if
present in libpciaccess.
|
|
|
|
|
|
|
|
|
|
When mmaping the PCI device, the kernel turns on the write-through and
cache-disable bits in the allocated PTEs. This disables write-combining mode
and dramatically reduces write bandwidth to the frame buffer. While that
should be fixed in the kernel, we'll kludge around it here by using mprotect
to rewrite the PTEs and get those bits turned off.
|
|
|
|
|
|
MTRR regions aren't needed for uncached mappings, so don't add them. Also,
when unmapping memory, remove the MTRR entry.
|
|
Added new functions pci_device_map_range and pci_device_unmap_range to
handle mapping of PCI device BARs. These new interfaces allow the
possiblity of MTRRs on platforms that support them.
These additional APIs necessitated changing some internal interfaces. The
code for FreeBSD and Solaris has been updated but has not been compiled or
tested.
Old interfaces are marked deprecated and will eventually be removed.
|
|
|
|
|
|
|
|
commit. REALLY add support for querying bridge information. Bump to
version 0.5.0.
|
|
|
|
|
|
Add multiple-inclusion protection.
Add new function to write masked bits to PCI config space. This mirrors
functionality currently available in X.org that is slated to be
removed.
Gut old regex based search mechanism with a new mechanism that is modeled
after the Linux kernel. In addition to searching for devices by device
/ vendor ID, it is possible to search for devices by their domain / bus
/ slot / function.
Fix serious bus in the reading of ROMs and in the unmapping of regions. The
main point is that the map routine depens on the pci_mem_region::memory
pointer being non-NULL only when the region is mapped. Therefore, the
unmap routine should set it to NULL after unmapping.
Update to use new search API.
|
|
|