case $sys in
linux*)
- echo_n " sysfs proc mem-ports"
+ echo_n " sysfs proc mem-ports ecam"
echo >>$c '#define PCI_HAVE_PM_LINUX_SYSFS'
echo >>$c '#define PCI_HAVE_PM_LINUX_PROC'
echo >>$c '#define PCI_HAVE_PM_MMIO_CONF'
+ echo >>$c '#define PCI_HAVE_PM_ECAM'
echo >>$c '#define PCI_HAVE_LINUX_BYTEORDER_H'
echo >>$c '#define PCI_PATH_PROC_BUS_PCI "/proc/bus/pci"'
echo >>$c '#define PCI_PATH_SYS_BUS_PCI "/sys/bus/pci"'
echo >>$c '#define PCI_PATH_DEVMEM_DEVICE "/dev/mem"'
+ echo >>$c '#define PCI_PATH_ACPI_MCFG "/sys/firmware/acpi/tables/MCFG"'
+ echo >>$c '#define PCI_PATH_EFI_SYSTAB "/sys/firmware/efi/systab"'
case $cpu in
i?86|x86_64) echo_n " i386-ports"
echo >>$c '#define PCI_HAVE_PM_INTEL_CONF'
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_STDINT_H'
+ 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"
+ echo_n " fbsd-device mem-ports ecam"
echo >>$c '#define PCI_HAVE_PM_FBSD_DEVICE'
echo >>$c '#define PCI_HAVE_PM_MMIO_CONF'
+ echo >>$c '#define PCI_HAVE_PM_ECAM'
echo >>$c '#define PCI_PATH_FBSD_DEVICE "/dev/pci"'
echo >>$c '#define PCI_PATH_DEVMEM_DEVICE "/dev/mem"'
+ echo >>$c '#define PCI_PATH_ACPI_MCFG ""'
+ echo >>$c '#define PCI_PATH_EFI_SYSTAB ""'
if [ "$sys" != "kfreebsd" ] ; then
LIBRESOLV=
fi
;;
openbsd)
- echo_n " obsd-device mem-ports"
+ echo_n " obsd-device mem-ports ecam"
echo >>$c '#define PCI_HAVE_PM_OBSD_DEVICE'
echo >>$c '#define PCI_HAVE_PM_MMIO_CONF'
+ echo >>$c '#define PCI_HAVE_PM_ECAM'
echo >>$c '#define PCI_PATH_OBSD_DEVICE "/dev/pci"'
echo >>$c '#define PCI_PATH_DEVMEM_DEVICE "/dev/mem"'
+ echo >>$c '#define PCI_PATH_ACPI_MCFG "/var/db/acpi/MCFG.*"'
+ echo >>$c '#define PCI_PATH_EFI_SYSTAB ""'
+ case $cpu in
+ i386|amd64) echo_n " i386-ports"
+ echo >>$c '#define PCI_HAVE_PM_INTEL_CONF'
+ echo >>$m 'WITH_LIBS+=-l'$cpu
+ ;;
+ esac
LIBRESOLV=
;;
darwin*)
echo_n " darwin"
echo >>$c '#define PCI_HAVE_PM_DARWIN_DEVICE'
- echo >>$c '#define PCI_HAVE_PM_MMIO_CONF'
- echo >>$c '#define PCI_PATH_DEVMEM_DEVICE "/dev/mem"'
echo >>$m 'WITH_LIBS+=-lresolv -framework CoreFoundation -framework IOKit'
echo >>$c '#define PCI_HAVE_64BIT_ADDRESS'
LIBRESOLV=
aix)
echo_n " aix-device"
echo >>$c '#define PCI_HAVE_PM_AIX_DEVICE'
- echo >>$c '#define PCI_HAVE_PM_MMIO_CONF'
- echo >>$c '#define PCI_PATH_DEVMEM_DEVICE "/dev/mem"'
echo >>$m 'CFLAGS=-g'
echo >>$m 'INSTALL=installbsd'
echo >>$m 'DIRINSTALL=mkdir -p'
;;
netbsd)
- echo_n " nbsd-libpci mem-ports"
+ echo_n " nbsd-libpci mem-ports ecam"
echo >>$c '#define PCI_HAVE_PM_NBSD_LIBPCI'
echo >>$c '#define PCI_HAVE_PM_MMIO_CONF'
+ echo >>$c '#define PCI_HAVE_PM_ECAM'
echo >>$c '#define PCI_PATH_NBSD_DEVICE "/dev/pci0"'
echo >>$c '#define PCI_PATH_DEVMEM_DEVICE "/dev/mem"'
+ echo >>$c '#define PCI_PATH_ACPI_MCFG ""'
+ echo >>$c '#define PCI_PATH_EFI_SYSTAB ""'
echo >>$c '#define PCI_HAVE_64BIT_ADDRESS'
echo >>$m 'LIBNAME=libpciutils'
echo >>$m 'WITH_LIBS+=-lpci'
echo_n " hurd i386-ports"
echo >>$c '#define PCI_HAVE_PM_HURD_CONF'
echo >>$c '#define PCI_HAVE_PM_INTEL_CONF'
- echo >>$c '#define PCI_HAVE_PM_MMIO_CONF'
- echo >>$c '#define PCI_PATH_DEVMEM_DEVICE "/dev/mem"'
;;
djgpp)
echo_n " i386-ports"
EXEEXT=.exe
;;
cygwin|windows)
- echo_n " win32-cfgmgr32 win32-sysdbg"
+ echo_n " win32-cfgmgr32 win32-kldbg win32-sysdbg"
echo >>$c '#define PCI_HAVE_64BIT_ADDRESS'
echo >>$c '#define PCI_HAVE_PM_WIN32_CFGMGR32'
+ echo >>$c '#define PCI_HAVE_PM_WIN32_KLDBG'
echo >>$c '#define PCI_HAVE_PM_WIN32_SYSDBG'
# Warning: MinGW-w64 (incorrectly) provides cfgmgr32 functions
# also in other import libraries, not only in libcfgmgr32.a.
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_HAVE_STDINT_H'
+ echo >>$c '#define PCI_PATH_ACPI_MCFG ""'
+ echo >>$c '#define PCI_PATH_EFI_SYSTAB ""'
;;
sylixos)
echo >>$c '#define PCI_PATH_SYLIXOS_DEVICE "/proc/pci"'
IDSDIR="/etc/pci"
LIBRESOLV=
;;
+ amigaos)
+ echo_n " aos-expansion"
+ echo >>$c '#define PCI_HAVE_STDINT_H'
+ echo >>$c '#define PCI_HAVE_PM_AOS_EXPANSION'
+ IDSDIR="DEVS:"
+ echo >>$m 'CC=gcc'
+ ;;
*)
echo " Unfortunately, your OS is not supported by the PCI Library"
exit 1
fi
echo >>$c "#define PCILIB_VERSION \"$VERSION\""
+echo >>$c "#define PCILIB_DATE_AMIGAOS \"`echo $DATE | sed 's/\(....\)-\(..\)-\(..\)/\3.\2.\1/'`\""
sed '/"/{s/^#define \([^ ]*\) "\(.*\)"$/\1=\2/;p;d;};s/^#define \(.*\)/\1=1/' <$c >>$m