Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/xscale Get the interrupt mappings right for the...



details:   https://anonhg.NetBSD.org/src/rev/3487fce6fe01
branches:  trunk
changeset: 542457:3487fce6fe01
user:      briggs <briggs%NetBSD.org@localhost>
date:      Wed Jan 29 20:08:02 2003 +0000

description:
Get the interrupt mappings right for the slot.

diffstat:

 sys/arch/arm/xscale/becc_pci.c |  15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r 02b8cd13c164 -r 3487fce6fe01 sys/arch/arm/xscale/becc_pci.c
--- a/sys/arch/arm/xscale/becc_pci.c    Wed Jan 29 18:44:47 2003 +0000
+++ b/sys/arch/arm/xscale/becc_pci.c    Wed Jan 29 20:08:02 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: becc_pci.c,v 1.1 2003/01/25 01:57:19 thorpej Exp $     */
+/*     $NetBSD: becc_pci.c,v 1.2 2003/01/29 20:08:02 briggs Exp $      */
 
 /*
  * Copyright (c) 2001, 2002 Wasabi Systems, Inc.
@@ -331,7 +331,18 @@
                switch (pa->pa_device) {
                case 1: irq = ICU_PCI_INTB; break; /* Ethernet #0 */
                case 2: irq = ICU_PCI_INTC; break; /* Ethernet #1 */
-               case 3: irq = ICU_PCI_INTA; break; /* Card slot? */
+               case 3:                            /* Card slot */
+                       switch (pa->pa_intrpin) {
+                       case 1:         irq = ICU_PCI_INTA; break;
+                       case 2:         irq = ICU_PCI_INTB; break;
+                       case 3:         irq = ICU_PCI_INTC; break;
+                       case 4:         irq = ICU_PCI_INTD; break;
+                       default:
+                               printf("becc_pci_intr_map: bogus pin: %d\n",
+                                   pa->pa_intrpin);
+                               return (1);
+                       }
+                       break;
                default:
                        break;
                }



Home | Main Index | Thread Index | Old Index