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.
11 #define outb(x,y) outportb(y, x)
12 #define outw(x,y) outportw(y, x)
13 #define outl(x,y) outportl(y, x)
19 static int irq_enabled;
22 intel_setup_io(struct pci_access *a UNUSED)
28 intel_cleanup_io(struct pci_access *a UNUSED)
32 static inline void intel_io_lock(void)
34 asm volatile("" : : : "memory");
35 irq_enabled = disable();
38 static inline void intel_io_unlock(void)
40 asm volatile("" : : : "memory");