]> mj.ucw.cz Git - pciutils.git/commitdiff
libpci: Enable POSIX physmem also on Solaris, Haiku nad BeOS
authorPali Rohár <pali@kernel.org>
Mon, 8 May 2023 19:19:27 +0000 (21:19 +0200)
committerMartin Mares <mj@ucw.cz>
Sun, 18 Feb 2024 15:18:43 +0000 (16:18 +0100)
Solaris can access physical memory via mmap() of /dev/xsvc device and
Haiku + BeOS of /dev/misc/mem device.

lib/configure

index 6f4b6cac7e36d327fcec756d450245bf4ecb990d..90641663f8736089b8d303a8a8e4b4629a029234 100755 (executable)
@@ -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"'