+2006-07-30 Martin Mares <mj@ucw.cz>
+
+ * lib/i386-io-windows.h: Fixed indentation and spelling.
+
+ * README.Windows: Mention that WinIO.dll is needed and where to get it.
+
2006-06-27 Martin Mares <mj@ucw.cz>
* lib/Makefile, Makefile: Added rules for building and cleaning the example.
Since 2.1.99-test5, pciutils should also be compilable on Windows. Thanks
to Alexander Stock for contributing the port.
+To build this port, you need to install WinIO.dll first. You can get it
+from http://www.internals.com/.
+
However, you need to use win32/config.h instead of the automatically
generated lib/config.h as lib/configure does not run on Windows.
#include <io.h>
#include <conio.h>
#include <windows.h>
-
+
#define outb(x,y) _outp(y,x)
#define outw(x,y) _outpw(y,x)
#define outl(x,y) _outpd(y,x)
-
+
#define inb(x) _inp(x)
#define inw(x) _inpw(x)
#define inl(x) _inpd(x)
if (intel_iopl_set < 0)
{
typedef int (*MYPROC)(void);
- MYPROC InitializeWinIo;
+ MYPROC InitializeWinIo;
HMODULE lib;
intel_iopl_set = 0;
fprintf(stderr, "libpci: Couldn't load WinIo.dll.\n");
return 0;
}
+ /* XXX: Is this really needed? --mj */
GetProcAddress(lib, "InitializeWinIo");
-
+
InitializeWinIo = (MYPROC) GetProcAddress(lib, "InitializeWinIo");
if (!InitializeWinIo)
{
- fprintf(stderr, "libpci: Couldn't find InitialieWinIo function.\n");
+ fprintf(stderr, "libpci: Couldn't find InitializeWinIo function.\n");
return 0;
}
return 0;
}
- intel_iopl_set=1;
+ intel_iopl_set = 1;
}
return intel_iopl_set;
}