root / ioport-user.c @ f40070c3
History | View | Annotate | Download (1.5 kB)
1 |
/*
|
---|---|
2 |
* qemu user ioport functions
|
3 |
*
|
4 |
* Copyright (c) 2003-2008 Fabrice Bellard
|
5 |
*
|
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.
|
10 |
*
|
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.
|
15 |
*
|
16 |
* You should have received a copy of the GNU General Public License
|
17 |
* along with this program; if not, write to the Free Software
|
18 |
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
|
19 |
* MA 02110-1301, USA.
|
20 |
*/
|
21 |
|
22 |
#include <stdio.h> |
23 |
|
24 |
#include "qemu.h" |
25 |
#include "qemu-common.h" |
26 |
#include "ioport.h" |
27 |
|
28 |
void cpu_outb(CPUState *env, int addr, int val) |
29 |
{ |
30 |
fprintf(stderr, "outb: port=0x%04x, data=%02x\n", addr, val);
|
31 |
} |
32 |
|
33 |
void cpu_outw(CPUState *env, int addr, int val) |
34 |
{ |
35 |
fprintf(stderr, "outw: port=0x%04x, data=%04x\n", addr, val);
|
36 |
} |
37 |
|
38 |
void cpu_outl(CPUState *env, int addr, int val) |
39 |
{ |
40 |
fprintf(stderr, "outl: port=0x%04x, data=%08x\n", addr, val);
|
41 |
} |
42 |
|
43 |
int cpu_inb(CPUState *env, int addr) |
44 |
{ |
45 |
fprintf(stderr, "inb: port=0x%04x\n", addr);
|
46 |
return 0; |
47 |
} |
48 |
|
49 |
int cpu_inw(CPUState *env, int addr) |
50 |
{ |
51 |
fprintf(stderr, "inw: port=0x%04x\n", addr);
|
52 |
return 0; |
53 |
} |
54 |
|
55 |
int cpu_inl(CPUState *env, int addr) |
56 |
{ |
57 |
fprintf(stderr, "inl: port=0x%04x\n", addr);
|
58 |
return 0; |
59 |
} |