summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2008-03-20 15:54:19 +0000
committersam <sam@FreeBSD.org>2008-03-20 15:54:19 +0000
commit70faf3fbc18f5e02b9e75736aa47e33a83af3bdf (patch)
treef86e8b70a3f414442559800aa8f5cb47ee9bd83a
parent28174d9ffb5ad8d8298c439ab1a15ccf2c48d6ea (diff)
downloadFreeBSD-src-70faf3fbc18f5e02b9e75736aa47e33a83af3bdf.zip
FreeBSD-src-70faf3fbc18f5e02b9e75736aa47e33a83af3bdf.tar.gz
map device 5; the optional USB controller on Gateworks 2348 boards
shows up here instead of the minipci slot at J4 Reviewed by: cognet, imp MFC after: 1 week
-rw-r--r--sys/arm/xscale/ixp425/ixdp425_pci.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arm/xscale/ixp425/ixdp425_pci.c b/sys/arm/xscale/ixp425/ixdp425_pci.c
index 7504baa..d103a63 100644
--- a/sys/arm/xscale/ixp425/ixdp425_pci.c
+++ b/sys/arm/xscale/ixp425/ixdp425_pci.c
@@ -139,18 +139,19 @@ ixp425_md_attach(device_t dev)
panic("ixp425_md_attach: failed to set up IRQ rman");
}
-#define IXP425_MAX_DEV 4
+#define IXP425_MAX_DEV 5
#define IXP425_MAX_LINE 4
int
ixp425_md_route_interrupt(device_t bridge, device_t device, int pin)
{
- static int ixp425_pci_table[IXP425_MAX_DEV][IXP425_MAX_LINE] =
- {
+ static int ixp425_pci_table[IXP425_MAX_DEV][IXP425_MAX_LINE] = {
{PCI_INT_A, PCI_INT_B, PCI_INT_C, PCI_INT_D},
{PCI_INT_B, PCI_INT_C, PCI_INT_D, PCI_INT_A},
{PCI_INT_C, PCI_INT_D, PCI_INT_A, PCI_INT_B},
{PCI_INT_D, PCI_INT_A, PCI_INT_B, PCI_INT_C},
+ /* NB: for optional USB controller on Gateworks Avila */
+ {PCI_INT_A, PCI_INT_B, PCI_INT_C, PCI_INT_D},
};
int dev;
OpenPOWER on IntegriCloud