return 1;
}
-static inline int
+static inline void
intel_cleanup_io(struct pci_access *a UNUSED)
{
- return 1;
}
static inline u8
return (iopl(3) < 0) ? 0 : 1;
}
-static inline int
+static inline void
intel_cleanup_io(struct pci_access *a UNUSED)
{
- iopl(3);
- return -1;
+ iopl(0);
}
static inline void intel_io_lock(void)
return 1;
}
-static inline int
+static inline void
intel_cleanup_io(struct pci_access *a UNUSED)
{
- return 1;
}
static inline void intel_io_lock(void)
return (poke_driver_fd < 0) ? 0 : 1;
}
-static inline int
+static inline void
intel_cleanup_io(struct pci_access *a UNUSED)
{
close(poke_driver_fd);
- return 1;
}
static inline u8
return (ioperm (0, 65535, 1) == -1) ? 0 : 1;
}
-static inline int
+static inline void
intel_cleanup_io(struct pci_access *a UNUSED)
{
ioperm (0, 65535, 0);
-
- return -1;
}
static inline void intel_io_lock(void)
return (iopl(3) < 0) ? 0 : 1;
}
-static inline int
+static inline void
intel_cleanup_io(struct pci_access *a UNUSED)
{
- iopl(3);
- return -1;
+ iopl(0);
}
static inline void intel_io_lock(void)
return (sysi86(SI86V86, V86SC_IOPL, PS_IOPL) < 0) ? 0 : 1;
}
-static inline int
+static inline void
intel_cleanup_io(struct pci_access *a UNUSED)
{
/* FIXME: How to switch off I/O port access? */
- return 1;
}
static inline u8
return 1;
}
-static inline int
+static inline void
intel_cleanup_io(struct pci_access *a UNUSED)
{
/*
* systems ProcessUserModeIOPL permanently changes IOPL to 3 for the current
* NT process, no revert for current process is possible.
*/
- return 1;
}
static inline void intel_io_lock(void)
conf12_cleanup(struct pci_access *a UNUSED)
{
if (conf12_io_enabled > 0)
- conf12_io_enabled = intel_cleanup_io(a);
+ {
+ intel_cleanup_io(a);
+ conf12_io_enabled = -1;
+ }
}
/*