2 * The PCI Library -- Access to i386 I/O ports on DJGPP
4 * Copyright (c) 2010, 2017 Rudolf Marek <r.marek@assembler.cz>
6 * Can be freely distributed and used under the terms of the GNU GPL v2+
8 * SPDX-License-Identifier: GPL-2.0-or-later
13 #include "i386-io-access.h"
15 static int irq_enabled;
18 intel_setup_io(struct pci_access *a UNUSED)
24 intel_cleanup_io(struct pci_access *a UNUSED)
28 static inline void intel_io_lock(void)
30 asm volatile("" : : : "memory");
31 irq_enabled = disable();
34 static inline void intel_io_unlock(void)
36 asm volatile("" : : : "memory");