From: Pali Rohár Date: Mon, 8 May 2023 19:19:27 +0000 (+0200) Subject: libpci: Enable POSIX physmem also on Solaris, Haiku nad BeOS X-Git-Tag: v3.11.0~15 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=93c02ab2b8682c0399a7bf784b34c1028d0747d1;p=pciutils.git 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. --- 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"'