From: Filip Navara <filip.navara@gmail.com>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH 1/4] qdev/isa: add isa bus support to qdev.
Date: Fri, 17 Jul 2009 20:12:11 +0200 [thread overview]
Message-ID: <5b31733c0907171112w73296a4fp12bf5dfc250aa241@mail.gmail.com> (raw)
In-Reply-To: <1247662614-12927-2-git-send-email-kraxel@redhat.com>
2009/7/15 Gerd Hoffmann <kraxel@redhat.com>:
> +static struct BusInfo isa_bus_info = {
> + .name = "ISA",
> + .size = sizeof(ISABus),
> + .props = (Property[]) {
> + {
> + .name = "iobase",
> + .info = &qdev_prop_hex32,
> + .offset = offsetof(ISADevice, iobase[0]),
> + .defval = (uint32_t[]) { -1 },
> + },{
> + .name = "iobase2",
> + .info = &qdev_prop_hex32,
> + .offset = offsetof(ISADevice, iobase[1]),
> + .defval = (uint32_t[]) { -1 },
> + },
> + {/* end of list */}
> + }
> +};
Why exactly two IO bases? That sounds like bad design to me. IMHO it
should be handled more like sysbus_init_mmio (or sysbus_init_mmio_cb)
and sysbus_mmio_map and the number of IO bases should be virtually
unlimited (something like QDEV_MAX_MMIO is acceptable).
Best regards,
Filip Navara
next prev parent reply other threads:[~2009-07-17 18:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-15 12:56 [Qemu-devel] [PATCH 0/4] qdev: add isa bus support Gerd Hoffmann
2009-07-15 12:56 ` [Qemu-devel] [PATCH 1/4] qdev/isa: add isa bus support to qdev Gerd Hoffmann
2009-07-17 18:12 ` Filip Navara [this message]
2009-07-21 7:11 ` Gerd Hoffmann
2009-07-15 12:56 ` [Qemu-devel] [PATCH 2/4] qdev/isa: add qdev support to i8042 (aka ps/2 kbd+mouse) Gerd Hoffmann
2009-07-15 12:56 ` [Qemu-devel] [PATCH 3/4] qdev/isa: make the piix isa bridge register an isa bus Gerd Hoffmann
2009-07-15 12:56 ` [Qemu-devel] [PATCH 4/4] qdev/isa: make pc use qdev for i8042 setup Gerd Hoffmann
-- strict thread matches above, loose matches on Subject: below --
2009-07-09 13:02 [Qemu-devel] [PATCH 0/4] qdev: isa bus Gerd Hoffmann
2009-07-09 13:02 ` [Qemu-devel] [PATCH 1/4] qdev/isa: add isa bus support to qdev Gerd Hoffmann
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=5b31733c0907171112w73296a4fp12bf5dfc250aa241@mail.gmail.com \
--to=filip.navara@gmail.com \
--cc=kraxel@redhat.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).