projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
761d89a
)
ne2000: Convert to isa_register_ioport
author
Richard Henderson
<rth@twiddle.net>
Mon, 15 Aug 2011 22:42:46 +0000
(15:42 -0700)
committer
Avi Kivity
<avi@redhat.com>
Tue, 11 Oct 2011 13:57:10 +0000
(15:57 +0200)
Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Avi Kivity <avi@redhat.com>
hw/ne2000-isa.c
patch
|
blob
|
history
diff --git
a/hw/ne2000-isa.c
b/hw/ne2000-isa.c
index
756ed5c
..
11ffee7
100644
(file)
--- a/
hw/ne2000-isa.c
+++ b/
hw/ne2000-isa.c
@@
-68,10
+68,7
@@
static int isa_ne2000_initfn(ISADevice *dev)
NE2000State *s = &isa->ne2000;
ne2000_setup_io(s, 0x20);
- isa_init_ioport_range(dev, isa->iobase, 16);
- isa_init_ioport_range(dev, isa->iobase + 0x10, 2);
- isa_init_ioport(dev, isa->iobase + 0x1f);
- memory_region_add_subregion(get_system_io(), isa->iobase, &s->io);
+ isa_register_ioport(dev, &s->io, isa->iobase);
isa_init_irq(dev, &s->irq, isa->isairq);