diff options
author | Pali Rohár <pali@kernel.org> | 2023-05-08 21:19:27 +0200 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2024-02-18 16:18:43 +0100 |
commit | 93c02ab2b8682c0399a7bf784b34c1028d0747d1 (patch) | |
tree | 77e8d630170b44dd3472e7431c879c36d4e9c87c | |
parent | 155f087b19681f043cd65283559a7a8dea08c85a (diff) | |
download | pciutils-93c02ab2b8682c0399a7bf784b34c1028d0747d1.tar.gz |
libpci: Enable POSIX physmem also on Solaris, Haiku nad BeOS
Solaris can access physical memory via mmap() of /dev/xsvc device and
Haiku + BeOS of /dev/misc/mem device.
-rwxr-xr-x | lib/configure | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/lib/configure b/lib/configure index 6f4b6ca..9064166 100755 --- a/lib/configure +++ b/lib/configure @@ -88,15 +88,17 @@ case $sys in LSPCIDIR=BINDIR ;; sunos) + echo_n " mem-ports ecam" case $cpu in i?86) echo_n " i386-ports" echo >>$c "#define PCI_HAVE_PM_INTEL_CONF" ;; - *) - echo " The PCI library does not support Solaris for this architecture: $cpu" - exit 1 - ;; esac + echo >>$c '#define PCI_HAVE_PM_MMIO_CONF' + echo >>$c '#define PCI_HAVE_PM_ECAM' + echo >>$c '#define PCI_PATH_DEVMEM_DEVICE "/dev/xsvc"' + echo >>$c '#define PCI_PATH_ACPI_MCFG ""' + echo >>$c '#define PCI_PATH_EFI_SYSTAB ""' ;; freebsd*|kfreebsd*) echo_n " fbsd-device mem-ports ecam" @@ -195,11 +197,17 @@ case $sys in LIBEXT=dll ;; beos|haiku) + echo_n " mem-ports ecam" case $cpu in i?86|x86_64) echo_n " i386-ports" echo >>$c '#define PCI_HAVE_PM_INTEL_CONF' ;; esac + echo >>$c '#define PCI_HAVE_PM_MMIO_CONF' + echo >>$c '#define PCI_HAVE_PM_ECAM' + echo >>$c '#define PCI_PATH_DEVMEM_DEVICE "/dev/misc/mem"' + echo >>$c '#define PCI_PATH_ACPI_MCFG ""' + echo >>$c '#define PCI_PATH_EFI_SYSTAB ""' ;; sylixos) echo >>$c '#define PCI_PATH_SYLIXOS_DEVICE "/proc/pci"' |