Statistics
| Branch: | Revision:

root / ioport-user.c @ 99a0949b

History | View | Annotate | Download (1.6 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, see <http://www.gnu.org/licenses/>.
18
 */
19

    
20
#include <stdio.h>
21

    
22
#include "qemu.h"
23
#include "qemu-common.h"
24
#include "ioport.h"
25

    
26
void cpu_outb(a_pio_addr addr, uint8_t val)
27
{
28
    fprintf(stderr, "outb: port=0x%04"FMT_pioaddr", data=%02"PRIx8"\n",
29
            addr, val);
30
}
31

    
32
void cpu_outw(a_pio_addr addr, uint16_t val)
33
{
34
    fprintf(stderr, "outw: port=0x%04"FMT_pioaddr", data=%04"PRIx16"\n",
35
            addr, val);
36
}
37

    
38
void cpu_outl(a_pio_addr addr, uint32_t val)
39
{
40
    fprintf(stderr, "outl: port=0x%04"FMT_pioaddr", data=%08"PRIx32"\n",
41
            addr, val);
42
}
43

    
44
uint8_t cpu_inb(a_pio_addr addr)
45
{
46
    fprintf(stderr, "inb: port=0x%04"FMT_pioaddr"\n", addr);
47
    return 0;
48
}
49

    
50
uint16_t cpu_inw(a_pio_addr addr)
51
{
52
    fprintf(stderr, "inw: port=0x%04"FMT_pioaddr"\n", addr);
53
    return 0;
54
}
55

    
56
uint32_t cpu_inl(a_pio_addr addr)
57
{
58
    fprintf(stderr, "inl: port=0x%04"FMT_pioaddr"\n", addr);
59
    return 0;
60
}