1 /******************************************************************************
2 * Copyright (c) 2004, 2008 IBM Corporation
4 * This program and the accompanying materials
5 * are made available under the terms of the BSD License
6 * which accompanies this distribution, and is available at
7 * http://www.opensource.org/licenses/bsd-license.php
10 * IBM Corporation - initial implementation
11 *****************************************************************************/
13 #ifndef _BIOSEMU_IO_H_
14 #define _BIOSEMU_IO_H_
15 #include <x86emu/x86emu.h>
18 uint8_t my_inb(X86EMU_pioAddr addr);
20 uint16_t my_inw(X86EMU_pioAddr addr);
22 uint32_t my_inl(X86EMU_pioAddr addr);
24 void my_outb(X86EMU_pioAddr addr, uint8_t val);
26 void my_outw(X86EMU_pioAddr addr, uint16_t val);
28 void my_outl(X86EMU_pioAddr addr, uint32_t val);