X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fi386-io-cygwin.h;h=41180570e8ff610c403dc3042024ef22313c9cf0;hb=06f9ecf36e529695feea35038e15233dffe37bb7;hp=16022482f268f89c7f597a83b676592324987b38;hpb=5c5ce19215cdfa54c878e09211e3cd3bc8344b82;p=pciutils.git diff --git a/lib/i386-io-cygwin.h b/lib/i386-io-cygwin.h index 1602248..4118057 100644 --- a/lib/i386-io-cygwin.h +++ b/lib/i386-io-cygwin.h @@ -3,22 +3,25 @@ * * Copyright (c) 1997--2006 Martin Mares * - * 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 +#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)