From: Pranavkumar Sawargaonkar <pranavkumar@linaro.org>
To: qemu-devel@nongnu.org
Cc: peter.maydell@linaro.org, patches@apm.com, agraf@suse.de,
christoffer.dall@linaro.org,
Tushar Jagad <tushar.jagad@linaro.org>,
Pranavkumar Sawargaonkar <pranavkumar@linaro.org>
Subject: [Qemu-devel] [v2 2/2] arm: hw: virt: Store information about GPEX legacy interrupt numbers
Date: Thu, 30 Apr 2015 17:22:50 +0530 [thread overview]
Message-ID: <1430394771-19617-3-git-send-email-pranavkumar@linaro.org> (raw)
In-Reply-To: <1430394771-19617-1-git-send-email-pranavkumar@linaro.org>
This patch stores information about assigned legacy interrupt numbers in
GPEX host structure.
This is used during GPEX INTx number determination from a pin during
INTx routing.
Signed-off-by: Pranavkumar Sawargaonkar <pranavkumar@linaro.org>
Signed-off-by: Tushar Jagad <tushar.jagad@linaro.org>
---
hw/arm/virt.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index 565f573..fdafdcc 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
@@ -658,6 +658,7 @@ static void create_pcie(const VirtBoardInfo *vbi, qemu_irq *pic,
MemoryRegion *ecam_alias;
MemoryRegion *ecam_reg;
DeviceState *dev;
+ GPEXHost *s;
char *nodename;
int i;
@@ -689,8 +690,11 @@ static void create_pcie(const VirtBoardInfo *vbi, qemu_irq *pic,
/* Map IO port space */
sysbus_mmio_map(SYS_BUS_DEVICE(dev), 2, base_ioport);
+ s = GPEX_HOST(dev);
+
for (i = 0; i < GPEX_NUM_IRQS; i++) {
sysbus_connect_irq(SYS_BUS_DEVICE(dev), i, pic[irq + i]);
+ s->irq_num[i] = irq + i;
}
nodename = g_strdup_printf("/pcie@%" PRIx64, base);
--
1.9.1
next prev parent reply other threads:[~2015-04-30 11:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-30 11:52 [Qemu-devel] [v2 0/2] Generic PCIe host bridge INTx determination for INTx routing Pranavkumar Sawargaonkar
2015-04-30 11:52 ` [Qemu-devel] [v2 1/2] pci: GPEX: Add a function to determine interrupt number " Pranavkumar Sawargaonkar
2015-04-30 11:52 ` Pranavkumar Sawargaonkar [this message]
2015-09-18 16:22 ` [Qemu-devel] [v2 0/2] Generic PCIe host bridge INTx determination " Peter Maydell
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=1430394771-19617-3-git-send-email-pranavkumar@linaro.org \
--to=pranavkumar@linaro.org \
--cc=agraf@suse.de \
--cc=christoffer.dall@linaro.org \
--cc=patches@apm.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=tushar.jagad@linaro.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).