- 07 Apr, 2022 1 commit
-
-
Alan Coopersmith authored
Matches what we already do in meson.build Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- 06 Apr, 2022 1 commit
-
-
Alan Coopersmith authored
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- 03 Apr, 2022 1 commit
-
-
Chester-Gillon authored
Correct setting of the is_64 and is_prefetchable pci_device fields in pci_device_linux_sysfs_probe(). The pci_device struct defines is_64 and is_prefetchable as single bits, but the previous code was attempting to store the result of a bit-masked field in a single bit which always resulted in is_64 and is_prefetchable being zero regardless of the actual capabilities of the PCI device. Fixes: #15 Signed-off-by:
Chester Gillon <chester.gillon@metronet.co.uk>
-
- 02 Apr, 2022 4 commits
-
-
Alan Coopersmith authored
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
Alan Coopersmith authored
But don't install it by default, since neither meson nor autotools installs the scanpci program by default Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
Alan Coopersmith authored
Found by using: codespell --builtin clear,rare,usage,informal,code,names Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
Alan Coopersmith authored
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- 13 Mar, 2022 1 commit
-
-
This allows non-root programs to to rely on /servers/bus/pci Message-Id: <20220312182804.9318-2-jlledom@mailfence.com> Reviewed-by:
Samuel Thibault <samuel.thibault@ens-lyon.org>
-
- 15 Feb, 2022 1 commit
-
-
This allows the fallback mechanism in the hurd create method to be used in the map range method by reusing the mach port that corresponds to the root of the pci filesystem. Message-Id: <20220215064411.68671-1-damien@zamaudio.com> Reviewed-by:
Samuel Thibault <samuel.thibault@ens-lyon.org>
-
- 09 Jan, 2022 1 commit
-
-
Samuel Thibault authored
3e0d1cde ("hurd: Implement device memory mapping") was making root-running processes insist on using the pci device, and never try the fs-provided translator. This reverts back to trying the pci device first, but completely, and then revert to the fs-provided translator.
-
- 08 Jan, 2022 1 commit
-
-
* src/hurd_pci.c: * Implement device memory mapping functions * pci_device_hurd_map_range * pci_device_hurd_unmap_range * pci_device_hurd_map_legacy * pci_device_hurd_unmap_legacy * src/x86_pci.h: * Remove unused declarations * pci_device_x86_map_range() * pci_device_x86_unmap_range() * pci_device_x86_map_legacy() * pci_device_x86_unmap_legacy() * src/x86_pci.c: * Fix port leaks * Make mapping function static again * map_dev_mem(): use device_map() support for offsets Message-Id: <20220105120802.14008-2-jlledom@mailfence.com> Reviewed-by:
Samuel Thibault <samuel.thibault@ens-lyon.org>
-
- 13 Apr, 2021 1 commit
-
-
Damien Zammit authored
-
- 05 Apr, 2021 1 commit
-
-
Reviewed-by:
Samuel Thibault <samuel.thibault@ens-lyon.org>
-
- 02 Dec, 2020 1 commit
-
-
Signed-off-by:
Petr Ovtchenkov <ptr@void-ptr.info> Reviewed-by:
Dylan Baker <dylan@pnwbakers.com>
-
- 02 Nov, 2020 2 commits
-
-
Dylan Baker authored
Reviewed-by:
Eric Anholt <eric@anholt.net>
-
Dylan Baker authored
I believe this is correct and complete, but I could have missed something on non-linux OSes. Reviewed-by:
Eric Anholt <eric@anholt.net>
-
- 09 Sep, 2020 3 commits
-
-
Samuel Thibault authored
device_map needs to create a big-enough object so it can then be mapped. Signed-off-by:
Samuel Thibault <samuel.thibault@ens-lyon.org>
-
Samuel Thibault authored
Signed-off-by:
Samuel Thibault <samuel.thibault@ens-lyon.org>
-
Samuel Thibault authored
Signed-off-by:
Samuel Thibault <samuel.thibault@ens-lyon.org>
-
- 27 Aug, 2020 4 commits
-
-
Damien Zammit authored
-
Damien Zammit authored
-
Damien Zammit authored
-
Damien Zammit authored
-
- 23 Aug, 2020 1 commit
-
-
Add Libs.Private in pciaccess.pc.in so applications that wants to link statically with pciaccess will know that they have to link with its dependencies such as -lz Signed-off-by:
Fabrice Fontaine <fontaine.fabrice@gmail.com>
-
- 27 Dec, 2019 1 commit
-
-
Joan Lledó authored
-
- 17 Jul, 2019 1 commit
-
-
Adam Jackson authored
-
- 12 Jul, 2019 1 commit
-
-
Damien Zammit authored
-
- 11 Jul, 2019 6 commits
-
-
Adam Jackson authored
It no longer exists in newer glibc, and didn't work like you'd have hoped on anything but strongarm anyway.
-
Adam Jackson authored
-
Fixes: xorg/lib/libpciaccess#9
-
Switch over to the new recursive scan bus routine for x86 Signed-off-by:
Damien Zammit <damien@zamaudio.com>
-
Also add a recursive scan-bus routine that uses the new probe cmds. Signed-off-by:
Damien Zammit <damien@zamaudio.com>
-
This new module uses Hurd's RPCs for accessing the PCI configuration space. Direct access as in {read_write}_{8,16,32} functions is done by the old x86 module. Some x86 function prototypes are now declared in a new header for the Hurd module to use them, in order to duplicate as little code as possible. Author: Joan Lledó <joanlluislledo@gmail.com> Also-by:
Damien Zammit <damien@zamaudio.com> Signed-off-by:
Damien Zammit <damien@zamaudio.com>
-
- 10 Jul, 2019 7 commits
-
-
Niclas Zeising authored
Remove the old probe method. The PCIOCGETBAR ioctl has been in FreeBSD since 8.0 release, if not earlier. Remove the old way of doing it. This is done using unifdef -DPCIOCGETBAR and cleaning up whitespace. Signed-off-by:
Niclas Zeising <zeising@daemonic.se>
-
Niclas Zeising authored
Format freebsd_pci_methods a bit, adding some whitespace and assigning NULL to methods not implemented. This makes it easier to see the names of various methods, as well as which methods are not implemented. Idea from src/linux_sysfs.c Signed-off-by:
Niclas Zeising <zeising@daemonic.se>
-
Niclas Zeising authored
Add a has_kernel_driver function to the FreeBSD libpciaccess functions. This uses the PCIOCATTACHED ioctl to check if a driver is attached to a specific PCI device. Idea taken from the FreeBSD system utility pciconf. Signed-off-by:
Niclas Zeising <zeising@daemonic.se>
-
Niclas Zeising authored
Remove unused variable, it's written to, but never used. Signed-off-by:
Niclas Zeising <zeising@daemonic.se>
-
Niclas Zeising authored
Make the FreeBSD libpciaccess routines work on FreeBSD. The FreeBSD sparc64 architecture needs special treatment, similar to the PCI_MAGIC_IO_RANGE code. However, PCI_MAGIC_IO_RANGE has been gone for some time. Give this a chance to work on sparc64 anyway. This code has been in the FreeBSD ports tree for some time.
-
Niclas Zeising authored
Update FreeBSD legacy I/O routines for new architectures. When we're not on amd64 or i386, and PCI_MAGIC_IO_RANGE is not defined, use IOCTLs to handle reads and writes through /dev/io. This is accomplished by opening /dev/io and using IOCTLs from dev/io/iodev.h, an interface that exists on most FreeBSD architectures. This change has been in the FreeBSD ports tree for quite some time.
-
Niclas Zeising authored
Fix the type used in write functions to match the size of the write. Signed-off-by:
Niclas Zeising <zeising@daemonic.se>
-