From: Cao jin <caoj.fnst@cn.fujitsu.com>
To: qemu-devel@nongnu.org
Cc: blauwirbel@gmail.com, mark.cave-ayland@ilande.co.uk
Subject: Re: [Qemu-devel] [PATCH] SPARC ebus: QOMify
Date: Tue, 12 Jan 2016 13:20:12 +0800 [thread overview]
Message-ID: <56948D0C.4060906@cn.fujitsu.com> (raw)
In-Reply-To: <1452087621-32574-1-git-send-email-caoj.fnst@cn.fujitsu.com>
ping?
On 01/06/2016 09:40 PM, Cao jin wrote:
> Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com>
> ---
> hw/sparc64/sun4u.c | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/hw/sparc64/sun4u.c b/hw/sparc64/sun4u.c
> index d6b929c..07f74fe 100644
> --- a/hw/sparc64/sun4u.c
> +++ b/hw/sparc64/sun4u.c
> @@ -98,6 +98,10 @@ typedef struct EbusState {
> MemoryRegion bar1;
> } EbusState;
>
> +#define TYPE_EBUS_BRIDGE "ebus"
> +#define EBUS_PCI_BRIDGE(obj) \
> + OBJECT_CHECK(EbusState, (obj), TYPE_EBUS_BRIDGE)
> +
> int DMA_get_channel_mode (int nchan)
> {
> return 0;
> @@ -586,7 +590,7 @@ pci_ebus_init(PCIBus *bus, int devfn, qemu_irq *irqs)
> PCIDevice *pci_dev;
> ISABus *isa_bus;
>
> - pci_dev = pci_create_simple(bus, devfn, "ebus");
> + pci_dev = pci_create_simple(bus, devfn, TYPE_EBUS_BRIDGE);
> isa_bus = ISA_BUS(qdev_get_child_bus(DEVICE(pci_dev), "isa.0"));
> isa_irq = qemu_allocate_irqs(isa_irq_handler, irqs, 16);
> isa_bus_irqs(isa_bus, isa_irq);
> @@ -629,7 +633,7 @@ static void ebus_class_init(ObjectClass *klass, void *data)
> }
>
> static const TypeInfo ebus_info = {
> - .name = "ebus",
> + .name = TYPE_EBUS_BRIDGE,
> .parent = TYPE_PCI_DEVICE,
> .instance_size = sizeof(EbusState),
> .class_init = ebus_class_init,
>
--
Yours Sincerely,
Cao jin
prev parent reply other threads:[~2016-01-12 5:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-06 13:40 [Qemu-devel] [PATCH] SPARC ebus: QOMify Cao jin
2016-01-12 5:20 ` Cao jin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56948D0C.4060906@cn.fujitsu.com \
--to=caoj.fnst@cn.fujitsu.com \
--cc=blauwirbel@gmail.com \
--cc=mark.cave-ayland@ilande.co.uk \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.