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 #define outb(x,y) outportb(y, x)
14 #define outw(x,y) outportw(y, x)
15 #define outl(x,y) outportl(y, x)
21 static int irq_enabled;
24 intel_setup_io(struct pci_access *a UNUSED)
30 intel_cleanup_io(struct pci_access *a UNUSED)
34 static inline void intel_io_lock(void)
36 asm volatile("" : : : "memory");
37 irq_enabled = disable();
40 static inline void intel_io_unlock(void)
42 asm volatile("" : : : "memory");