Message ID | 20170922160111.31885-3-f4bug@amsat.org |
---|---|
State | Superseded, archived |
Headers | show |
Series | remove i386/pc dependency from non-PC world (part 1) | expand |
Le 22/09/2017 à 18:01, Philippe Mathieu-Daudé a écrit : > Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> > --- > include/hw/timer/m48t59.h | 2 ++ > hw/ppc/prep.c | 2 +- > hw/timer/m48t59-isa.c | 2 +- > MAINTAINERS | 2 ++ > 4 files changed, 6 insertions(+), 2 deletions(-) Reviewed-by: Hervé Poussineau <hpoussin@reactos.org>
On Fri, Sep 22, 2017 at 01:01:02PM -0300, Philippe Mathieu-Daudé wrote: > Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> ppc portion Acked-by: David Gibson <david@gibson.dropbear.id.au> > --- > include/hw/timer/m48t59.h | 2 ++ > hw/ppc/prep.c | 2 +- > hw/timer/m48t59-isa.c | 2 +- > MAINTAINERS | 2 ++ > 4 files changed, 6 insertions(+), 2 deletions(-) > > diff --git a/include/hw/timer/m48t59.h b/include/hw/timer/m48t59.h > index db5e43a8da..069bb045d7 100644 > --- a/include/hw/timer/m48t59.h > +++ b/include/hw/timer/m48t59.h > @@ -25,6 +25,8 @@ typedef struct NvramClass { > void (*toggle_lock)(Nvram *obj, int lock); > } NvramClass; > > +#define TYPE_M48T59_ISA "isa-m48t59" > + > Nvram *m48t59_init_isa(ISABus *bus, uint32_t io_base, uint16_t size, > int base_year, int type); > Nvram *m48t59_init(qemu_irq IRQ, hwaddr mem_base, > diff --git a/hw/ppc/prep.c b/hw/ppc/prep.c > index 16f4537093..1f8ef4819b 100644 > --- a/hw/ppc/prep.c > +++ b/hw/ppc/prep.c > @@ -777,7 +777,7 @@ static void ibm_40p_init(MachineState *machine) > /* add some more devices */ > if (defaults_enabled()) { > isa_create_simple(isa_bus, TYPE_I8042); > - m48t59 = NVRAM(isa_create_simple(isa_bus, "isa-m48t59")); > + m48t59 = NVRAM(isa_create_simple(isa_bus, TYPE_M48T59_ISA)); > > dev = DEVICE(isa_create(isa_bus, "cs4231a")); > qdev_prop_set_uint32(dev, "iobase", 0x830); > diff --git a/hw/timer/m48t59-isa.c b/hw/timer/m48t59-isa.c > index ea1ba703d7..077346f7ca 100644 > --- a/hw/timer/m48t59-isa.c > +++ b/hw/timer/m48t59-isa.c > @@ -49,7 +49,7 @@ typedef struct M48txxISADeviceClass { > > static M48txxInfo m48txx_isa_info[] = { > { > - .bus_name = "isa-m48t59", > + .bus_name = TYPE_M48T59_ISA, > .model = 59, > .size = 0x2000, > } > diff --git a/MAINTAINERS b/MAINTAINERS > index a79723601c..3cb6bc190c 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -708,6 +708,8 @@ F: hw/pci-host/prep.[hc] > F: hw/isa/i82378.c > F: hw/isa/pc87312.[hc] > F: hw/dma/i82374.c > +F: hw/timer/m48t59-isa.c > +F: include/hw/timer/m48t59.h > F: pc-bios/ppc_rom.bin > > sPAPR
diff --git a/include/hw/timer/m48t59.h b/include/hw/timer/m48t59.h index db5e43a8da..069bb045d7 100644 --- a/include/hw/timer/m48t59.h +++ b/include/hw/timer/m48t59.h @@ -25,6 +25,8 @@ typedef struct NvramClass { void (*toggle_lock)(Nvram *obj, int lock); } NvramClass; +#define TYPE_M48T59_ISA "isa-m48t59" + Nvram *m48t59_init_isa(ISABus *bus, uint32_t io_base, uint16_t size, int base_year, int type); Nvram *m48t59_init(qemu_irq IRQ, hwaddr mem_base, diff --git a/hw/ppc/prep.c b/hw/ppc/prep.c index 16f4537093..1f8ef4819b 100644 --- a/hw/ppc/prep.c +++ b/hw/ppc/prep.c @@ -777,7 +777,7 @@ static void ibm_40p_init(MachineState *machine) /* add some more devices */ if (defaults_enabled()) { isa_create_simple(isa_bus, TYPE_I8042); - m48t59 = NVRAM(isa_create_simple(isa_bus, "isa-m48t59")); + m48t59 = NVRAM(isa_create_simple(isa_bus, TYPE_M48T59_ISA)); dev = DEVICE(isa_create(isa_bus, "cs4231a")); qdev_prop_set_uint32(dev, "iobase", 0x830); diff --git a/hw/timer/m48t59-isa.c b/hw/timer/m48t59-isa.c index ea1ba703d7..077346f7ca 100644 --- a/hw/timer/m48t59-isa.c +++ b/hw/timer/m48t59-isa.c @@ -49,7 +49,7 @@ typedef struct M48txxISADeviceClass { static M48txxInfo m48txx_isa_info[] = { { - .bus_name = "isa-m48t59", + .bus_name = TYPE_M48T59_ISA, .model = 59, .size = 0x2000, } diff --git a/MAINTAINERS b/MAINTAINERS index a79723601c..3cb6bc190c 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -708,6 +708,8 @@ F: hw/pci-host/prep.[hc] F: hw/isa/i82378.c F: hw/isa/pc87312.[hc] F: hw/dma/i82374.c +F: hw/timer/m48t59-isa.c +F: include/hw/timer/m48t59.h F: pc-bios/ppc_rom.bin sPAPR
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> --- include/hw/timer/m48t59.h | 2 ++ hw/ppc/prep.c | 2 +- hw/timer/m48t59-isa.c | 2 +- MAINTAINERS | 2 ++ 4 files changed, 6 insertions(+), 2 deletions(-)