diff options
author | Rudolf Marek <r.marek@assembler.cz> | 2017-12-29 21:58:41 +0100 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2017-12-31 18:20:09 +0100 |
commit | 5c5ce19215cdfa54c878e09211e3cd3bc8344b82 (patch) | |
tree | f7020eb06e10461c01e97b40fdc5c88c109422b5 /lspci.h | |
parent | e4d209fdc06752ac245a114659903f8517de0645 (diff) | |
download | pciutils-5c5ce19215cdfa54c878e09211e3cd3bc8344b82.tar.gz |
pciutils: Add the support for a DOS/DJGPP environment
Here is bit a blast from the past. The flashrom still supports the DOS/DJGPP environment, which requires
pciutils to be compiled with DJGPP. I originally developed this patch in 2010,
and I respun it for latest pciutils.
* Add DJGPP as an OS target
* Stop if endianess macros are not defined
* Introduce new intel_io_lock/unclock function to synchronize
I/O operations.
There is a small issue left that "lspci" and "lspci.exe" are created. The ".exe" variants
are not installed and also not cleaned. No idea if you want to fix that or not.
Signed-off-by: Rudolf Marek <r.marek@assembler.cz>
Compiled with:
make ZLIB=no DNS=no HOST=i386-djgpp-djgpp CROSS_COMPILE=i586-pc-msdosdjgpp- \
PREFIX=/ DESTDIR=$PWD/../libpci-libgetopt \
STRIP="--strip-program=i586-pc-msdosdjgpp-strip -s" install install-lib
If you put to C:\share\pci.ids file, the lspci.exe will also display the human readable output.
Diffstat (limited to 'lspci.h')
-rw-r--r-- | lspci.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -14,7 +14,7 @@ * This increases our memory footprint, but only slightly since we don't * use alloca() much. */ -#if defined (__FreeBSD__) || defined (__NetBSD__) || defined (__OpenBSD__) || defined (__DragonFly__) +#if defined (__FreeBSD__) || defined (__NetBSD__) || defined (__OpenBSD__) || defined (__DragonFly__) || defined (__DJGPP__) /* alloca() is defined in stdlib.h */ #elif defined(__GNUC__) && !defined(PCI_OS_WINDOWS) #include <alloca.h> |