X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fi386-io-windows.h;h=d5823eed19bb215c81caf2bbe1c5c96ab65ba2ba;hb=8b122188dfd404984eb360e8d876682fe7eb1613;hp=0e282442a792cd0a41a1e0f405f326e28f63ed68;hpb=d305d70445ca10684c68c5f68474458742326ca7;p=pciutils.git diff --git a/lib/i386-io-windows.h b/lib/i386-io-windows.h index 0e28244..d5823ee 100644 --- a/lib/i386-io-windows.h +++ b/lib/i386-io-windows.h @@ -8,9 +8,19 @@ */ #include -#include #include +#ifndef __GNUC__ +#include +#else +int _outp(unsigned short port, int databyte); +unsigned short _outpw(unsigned short port, unsigned short dataword); +unsigned long _outpd(unsigned short port, unsigned long dataword); +int _inp(unsigned short port); +unsigned short _inpw(unsigned short port); +unsigned long _inpd(unsigned short port); +#endif + #define outb(x,y) _outp(y,x) #define outw(x,y) _outpw(y,x) #define outl(x,y) _outpd(y,x) @@ -26,8 +36,6 @@ intel_setup_io(struct pci_access *a) MYPROC InitializeWinIo; HMODULE lib; - intel_iopl_set = 0; - lib = LoadLibrary("WinIo.dll"); if (!lib) { @@ -59,3 +67,11 @@ intel_cleanup_io(struct pci_access *a UNUSED) //TODO: DeInitializeWinIo! return 1; } + +static inline void intel_io_lock(void) +{ +} + +static inline void intel_io_unlock(void) +{ +}