X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=inline;f=lib%2Fi386-io-cygwin.h;h=41180570e8ff610c403dc3042024ef22313c9cf0;hb=06f9ecf36e529695feea35038e15233dffe37bb7;hp=4af2f81aad3ad57f19e9c90d31100183b210b808;hpb=550d67d1ce6e71f6461efc71ca481655da8de763;p=pciutils.git diff --git a/lib/i386-io-cygwin.h b/lib/i386-io-cygwin.h index 4af2f81..4118057 100644 --- a/lib/i386-io-cygwin.h +++ b/lib/i386-io-cygwin.h @@ -3,20 +3,31 @@ * * 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) +{ +} + +static inline void intel_io_unlock(void) +{ }