]> mj.ucw.cz Git - pciutils.git/blobdiff - lib/i386-io-cygwin.h
Names: Fixed a rare bug in loading of pci.ids
[pciutils.git] / lib / i386-io-cygwin.h
index 4af2f81aad3ad57f19e9c90d31100183b210b808..41180570e8ff610c403dc3042024ef22313c9cf0 100644 (file)
@@ -3,20 +3,31 @@
  *
  *     Copyright (c) 1997--2006 Martin Mares <mj@ucw.cz>
  *
- *     Can be freely distributed and used under the terms of the GNU GPL.
+ *     Can be freely distributed and used under the terms of the GNU GPL v2+
+ *
+ *     SPDX-License-Identifier: GPL-2.0-or-later
  */
 
 #include <sys/io.h>
 
+#include "i386-io-access.h"
+
 static int
 intel_setup_io(struct pci_access *a UNUSED)
 {
   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)
+{
+}
+
+static inline void intel_io_unlock(void)
+{
 }