2 * The PCI Library -- Access to i386 I/O ports on OpenBSD
4 * Copyright (c) 2023 Grant Pannell <grant@pannell.net.au>
6 * Can be freely distributed and used under the terms of the GNU GPL.
10 #include <machine/sysarch.h>
11 #include <machine/pio.h>
13 #include "i386-io-access.h"
15 #if defined(__amd64__)
16 #define obsd_iopl amd64_iopl
18 #define obsd_iopl i386_iopl
21 static int iopl_enabled;
24 intel_setup_io(struct pci_access *a UNUSED)
39 intel_cleanup_io(struct pci_access *a UNUSED)
48 static inline void intel_io_lock(void)
52 static inline void intel_io_unlock(void)