]> mj.ucw.cz Git - pciutils.git/commitdiff
Polishing the Windows port.
authorMartin Mares <mj@ucw.cz>
Sun, 30 Jul 2006 10:41:38 +0000 (12:41 +0200)
committerMartin Mares <mj@ucw.cz>
Sun, 30 Jul 2006 10:41:38 +0000 (12:41 +0200)
ChangeLog
README.Windows
lib/i386-io-windows.h

index 06f804ef79667fedcd5989434422ce8cfb00d47c..6f1836c23d9488a11e14e268dcd04e6f79e58e5a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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.
index 7281f1c1ef2a6f9017332bc610acefd6c8cecc3b..14c11e47ae129da1c90e8720d6d10544a11cfa74 100644 (file)
@@ -1,5 +1,8 @@
 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.
index 7006aa5cc1ceee33fda661e8cd304605bfe42f0c..c875a7d1dcb8e29c6d94a6cedcce08f37d3b6c93 100644 (file)
@@ -9,11 +9,11 @@
 #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)
@@ -26,7 +26,7 @@ intel_setup_io(void)
   if (intel_iopl_set < 0)
     {
       typedef int (*MYPROC)(void);
-      MYPROC InitializeWinIo;  
+      MYPROC InitializeWinIo;
       HMODULE lib;
 
       intel_iopl_set = 0;
@@ -37,12 +37,13 @@ intel_setup_io(void)
          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;
        }
 
@@ -52,7 +53,7 @@ intel_setup_io(void)
          return 0;
        }
 
-      intel_iopl_set=1;
+      intel_iopl_set = 1;
     }
   return intel_iopl_set;
 }