]> git.ipfire.org Git - thirdparty/pciutils.git/commit - lib/i386-io-sunos.h
pciutils: Add the support for a DOS/DJGPP environment
authorRudolf Marek <r.marek@assembler.cz>
Fri, 29 Dec 2017 20:58:41 +0000 (21:58 +0100)
committerMartin Mares <mj@ucw.cz>
Sun, 31 Dec 2017 17:20:09 +0000 (18:20 +0100)
commit5c5ce19215cdfa54c878e09211e3cd3bc8344b82
treef7020eb06e10461c01e97b40fdc5c88c109422b5
parente4d209fdc06752ac245a114659903f8517de0645
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.
13 files changed:
README
lib/configure
lib/i386-io-beos.h
lib/i386-io-cygwin.h
lib/i386-io-djgpp.h [new file with mode: 0644]
lib/i386-io-haiku.h
lib/i386-io-hurd.h
lib/i386-io-linux.h
lib/i386-io-sunos.h
lib/i386-io-windows.h
lib/i386-ports.c
lib/sysdep.h
lspci.h