diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2006-06-15 21:26:06 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2006-06-15 21:26:06 +0000 |
commit | ea88ffb58a2bbf04ad87dc609d98bbd6025f4c32 (patch) | |
tree | 1dbe5a0009ad3259cfca7805813f461f0e457d40 /sys/arch/armish | |
parent | 8c422a3a21211234426d7f3534d065af9665dbcc (diff) |
sane irq numbers for pci interrupts, remove uncertanty on armish irq table.
Diffstat (limited to 'sys/arch/armish')
-rw-r--r-- | sys/arch/armish/dev/iq80321_pci.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/arch/armish/dev/iq80321_pci.c b/sys/arch/armish/dev/iq80321_pci.c index 5598e2f8712..00de1f680d6 100644 --- a/sys/arch/armish/dev/iq80321_pci.c +++ b/sys/arch/armish/dev/iq80321_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: iq80321_pci.c,v 1.6 2006/06/01 18:46:05 drahn Exp $ */ +/* $OpenBSD: iq80321_pci.c,v 1.7 2006/06/15 21:26:05 drahn Exp $ */ /* $NetBSD: iq80321_pci.c,v 1.5 2005/12/11 12:17:09 christos Exp $ */ /* @@ -96,8 +96,8 @@ struct irq_map iq80321_thecus_irq_map[] = { }; struct irq_map iq80321_hdlg_irq_map[] = { - { 1, 1, ICU_INT_XINT(0) }, /* em0 27 ??? */ - { 2, 1, ICU_INT_XINT(1) }, /* wdc0 28 ??? */ + { 1, 1, ICU_INT_XINT(0) }, /* em0 27 */ + { 2, 1, ICU_INT_XINT(1) }, /* wdc0 28 */ { 3, 1, ICU_INT_XINT(2) }, /* ochi0 29 */ { 3, 2, ICU_INT_XINT(2) }, /* ochi0 29 */ { 3, 3, ICU_INT_XINT(2) }, /* echi0 29 */ @@ -225,8 +225,10 @@ iq80321_pci_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp) const char * iq80321_pci_intr_string(void *v, pci_intr_handle_t ih) { + static char irqname[32]; - return (i80321_irqnames[ih]); + snprintf(irqname, sizeof irqname, "irq %d", ih); + return (irqname); } const struct evcnt * |