mirror of
https://git.freebsd.org/ports.git
synced 2025-06-12 08:10:31 -04:00
Update devel/libpciaccess to 0.16. All local patches have been included in this version, so delete those files. Add a patch to fix a regression when using certain video drivers, xf86-video-mga, xf86-video-nv and xf86-video-vesa, at least, have been reported to have issues with 0.14. PR: 239065 (tracking the regression) Reported by: george@m5p.com, several others MFC after: 2019Q3 (fixes regression in 0.14) Sponsored by: B3 Init Obtained from: Graphics Team dev repo
36 lines
1.1 KiB
C
36 lines
1.1 KiB
C
--- src/freebsd_pci.c.orig 2019-07-17 16:25:27 UTC
|
|
+++ src/freebsd_pci.c
|
|
@@ -421,24 +421,6 @@ pci_system_freebsd_destroy( void )
|
|
freebsd_pci_sys = NULL;
|
|
}
|
|
|
|
-static int
|
|
-pci_device_freebsd_has_kernel_driver( struct pci_device *dev )
|
|
-{
|
|
- struct pci_io io;
|
|
-
|
|
- io.pi_sel.pc_domain = dev->domain;
|
|
- io.pi_sel.pc_bus = dev->bus;
|
|
- io.pi_sel.pc_dev = dev->dev;
|
|
- io.pi_sel.pc_func = dev->func;
|
|
-
|
|
- if ( ioctl( freebsd_pci_sys->pcidev, PCIOCATTACHED, &io ) < 0 ) {
|
|
- return 0;
|
|
- }
|
|
-
|
|
- /* if io.pi_data is 0, no driver is attached */
|
|
- return io.pi_data == 0 ? 0 : 1;
|
|
-}
|
|
-
|
|
static struct pci_io_handle *
|
|
pci_device_freebsd_open_legacy_io( struct pci_io_handle *ret,
|
|
struct pci_device *dev, pciaddr_t base,
|
|
@@ -614,7 +596,7 @@ static const struct pci_system_methods freebsd_pci_met
|
|
.fill_capabilities = pci_fill_capabilities_generic,
|
|
.enable = NULL,
|
|
.boot_vga = NULL,
|
|
- .has_kernel_driver = pci_device_freebsd_has_kernel_driver,
|
|
+ .has_kernel_driver = NULL,
|
|
|
|
.open_device_io = pci_device_freebsd_open_io,
|
|
.open_legacy_io = pci_device_freebsd_open_legacy_io,
|