2 * The PCI Library -- Access to i386 I/O ports on Linux
4 * Copyright (c) 1997--2003 Martin Mares <mj@ucw.cz>
6 * Can be freely distributed and used under the terms of the GNU GPL.
15 static int intel_iopl_set = -1;
20 if (intel_iopl_set < 0)
21 intel_iopl_set = (iopl(3) < 0) ? 0 : 1;
22 return intel_iopl_set;
26 intel_cleanup_io(void)
28 if (intel_iopl_set > 0)