History log of /xsrc/external/mit/libpciaccess/dist/src/netbsd_pci.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# a01999d7 12-Nov-2022 mrg <mrg@NetBSD.org>

merge libpciaccess 0.17.

# f8d5af14 14-Jan-2022 macallan <macallan@NetBSD.org>

add flag to disable blindly enabling memory and IO access on everything we
find

# 5cfc5640 09-Oct-2020 jmcneill <jmcneill@NetBSD.org>

Oops, avoid shadow declaration (fixes pci_system_netbsd_count_buses)

# 56db2c9d 08-Oct-2020 jmcneill <jmcneill@NetBSD.org>

Fix crash when more than 32 pci(4) devices are attached.

# 3adb3582 26-Oct-2018 maya <maya@NetBSD.org>

If O_RDWR fails, try O_RDONLY.

Lets me run unprivileged X.

# 7deda49c 11-Mar-2018 mrg <mrg@NetBSD.org>

merge libpciaccess 0.14.

# b6fc90d8 24-Sep-2016 mrg <mrg@NetBSD.org>

use PCI_IOC_DRVNAMEONBUS if it exists.

# 14e6f28e 19-Jul-2015 mrg <mrg@NetBSD.org>

merge libpciaccess 0.13.4.

# 73ade301 25-Jul-2014 mrg <mrg@NetBSD.org>

implement the kernel_has_driver() method. this has the benefit of
stopping the "vesa" driver from loading on hardware that has been
claimed by a kernel driver and thus shouldn't be using "vesa".

# 9266c31d 17-Mar-2014 mrg <mrg@NetBSD.org>

merge libpciaccess 0.13.2. there are now no local changes! thanks wiz.

# 4b4d14a9 12-Jun-2013 wiz <wiz@NetBSD.org>

Remove trailing whitespace (reduce diff to upstream).

# f6db1a1a 03-Jun-2013 mrg <mrg@NetBSD.org>

support map/unmap_legacy() calls. copies the openbsd-style.

this fixes xf86-video-vesa, which was using this call and getting
zero back from the default callback.

# 2e46f441 01-Jun-2013 mrg <mrg@NetBSD.org>

merge libpciaccess 0.13.1

# 6209fe3a 22-Jan-2011 cegger <cegger@NetBSD.org>

Implement pci_device_is_boot_vga() for NetBSD using new WSDISPLAYIO_GET_BUSID ioctl.
This lets Xorg start on machines with more than one PCI display device
instead of exiting with 'Primary device is not PCI'.

First discussed with macallan@ then public on tech-kern@ and tech-x11@.

# a5d2dc35 12-Jan-2011 jmcneill <jmcneill@NetBSD.org>

Fix compilation with HAVE_MTRR

# 74c741d0 18-Nov-2010 macallan <macallan@NetBSD.org>

when trying to map a ROM go through the appropriate /dev/pci* instance
instead of opening /dev/mem
With this Xorg should be able to read graphics card ROMs on all ports.

# 37a6a21e 12-Jan-2010 mrg <mrg@NetBSD.org>

in pci_device_netbsd_probe() probe the expansion ROM and size.
if it's there, set priv->rom_base and device->rom_size.

originally from mhitch, and it's basically the same code as present in
both freebsd_pci.c and openbsd_pci.c.

add a comment about needing to avoid the default bios mapping if this
card is not the console.

mmap() with MAP_SHARED, since the kernel forces this anyway, and it is
again the same in both freebsd_pci.c and openbsd_pci.c.

# 6c7645b9 23-Dec-2009 mrg <mrg@NetBSD.org>

if a VGA device isn't enabled for io/mem/bus-master, do so here.
xorg-server 1.4.x and earlier would do this for us.

partly fixes dual-head support for various systems.

idea from mhitch.

# 8ce851d2 09-Jul-2009 macallan <macallan@NetBSD.org>

teack libpciaccess how to discover and map PCI devices on machines with
more than one host bridge. While there get rid of some local (re)defines
if PCI-related constants.
With this Xorg should be able to use any PCI graphics device, no matter
if it's console or not.
TODO:
- cleanup
- deal with IO spaces
- fix Xorg -configure

# 9e884b7e 03-Jul-2009 christos <christos@NetBSD.org>

- add a function to read the VGA ROM. Makes the intel driver work again.
- pass lint

# 22df1cdf 10-Jun-2009 mrg <mrg@NetBSD.org>

apply pkgsrc patch-ac to make this work.

# 4f5e7dd7 10-Jun-2009 mrg <mrg@NetBSD.org>

initial import of libpciaccess-0.10.6