2 * The PCI Library -- Access to i386 I/O ports on Windows
4 * Copyright (c) 2004 Alexander Stock <stock.alexander@gmx.de>
6 * Can be freely distributed and used under the terms of the GNU GPL.
13 #define outb(x,y) _outp(y,x)
14 #define outw(x,y) _outpw(y,x)
15 #define outl(x,y) _outpd(y,x)
17 #define inb(x) _inp(x)
18 #define inw(x) _inpw(x)
19 #define inl(x) _inpd(x)
24 typedef int (*MYPROC)(void);
25 MYPROC InitializeWinIo;
30 lib = LoadLibrary("WinIo.dll");
33 fprintf(stderr, "libpci: Couldn't load WinIo.dll.\n");
36 /* XXX: Is this really needed? --mj */
37 GetProcAddress(lib, "InitializeWinIo");
39 InitializeWinIo = (MYPROC) GetProcAddress(lib, "InitializeWinIo");
42 fprintf(stderr, "libpci: Couldn't find InitializeWinIo function.\n");
46 if (!InitializeWinIo())
48 fprintf(stderr, "libpci: InitializeWinIo() failed.\n");
56 intel_cleanup_io(void)
58 //TODO: DeInitializeWinIo!