X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fi386-io-linux.h;h=731e8e3b93872013d26fcaf3acf13669d1b0e7b1;hb=4582426202ad6ac6539305dae2c0b70016f014f4;hp=e6974712bd5ed3bf46076d216b5f2d2b82710cf1;hpb=9007a292f24685d7c1ab51506fae8df22ced007f;p=pciutils.git diff --git a/lib/i386-io-linux.h b/lib/i386-io-linux.h index e697471..731e8e3 100644 --- a/lib/i386-io-linux.h +++ b/lib/i386-io-linux.h @@ -6,21 +6,24 @@ * Can be freely distributed and used under the terms of the GNU GPL. */ -#ifdef __GLIBC__ #include -#else -#include -#endif static int -intel_setup_io(void) +intel_setup_io(struct pci_access *a UNUSED) { return (iopl(3) < 0) ? 0 : 1; } -static inline int -intel_cleanup_io(void) +static inline void +intel_cleanup_io(struct pci_access *a UNUSED) +{ + iopl(0); +} + +static inline void intel_io_lock(void) +{ +} + +static inline void intel_io_unlock(void) { - iopl(3); - return -1; }