2 * qemu user ioport functions
4 * Copyright (c) 2003-2008 Fabrice Bellard
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, see <http://www.gnu.org/licenses/>.
23 #include "qemu-common.h"
26 void cpu_outb(CPUState
*env
, pio_addr_t addr
, uint8_t val
)
28 fprintf(stderr
, "outb: port=0x%04"FMT_pioaddr
", data=%02"PRIx8
"\n",
32 void cpu_outw(CPUState
*env
, pio_addr_t addr
, uint16_t val
)
34 fprintf(stderr
, "outw: port=0x%04"FMT_pioaddr
", data=%04"PRIx16
"\n",
38 void cpu_outl(CPUState
*env
, pio_addr_t addr
, uint32_t val
)
40 fprintf(stderr
, "outl: port=0x%04"FMT_pioaddr
", data=%08"PRIx32
"\n",
44 uint8_t cpu_inb(CPUState
*env
, pio_addr_t addr
)
46 fprintf(stderr
, "inb: port=0x%04"FMT_pioaddr
"\n", addr
);
50 uint16_t cpu_inw(CPUState
*env
, pio_addr_t addr
)
52 fprintf(stderr
, "inw: port=0x%04"FMT_pioaddr
"\n", addr
);
56 uint32_t cpu_inl(CPUState
*env
, pio_addr_t addr
)
58 fprintf(stderr
, "inl: port=0x%04"FMT_pioaddr
"\n", addr
);