summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2003-11-07 23:44:35 +0000
committerjhb <jhb@FreeBSD.org>2003-11-07 23:44:35 +0000
commit0d68cc17311ede980bd5c1a7ec1877e1b12c773b (patch)
tree13af20a75015a0c387df817f533dd44a5a429c18 /sys
parente5e7aba8ca7d5c1332ef4091d7272e5a8c828d61 (diff)
downloadFreeBSD-src-0d68cc17311ede980bd5c1a7ec1877e1b12c773b.zip
FreeBSD-src-0d68cc17311ede980bd5c1a7ec1877e1b12c773b.tar.gz
Dump the trigger and polarity of each intpin's default setting in the
bootverbose output.
Diffstat (limited to 'sys')
-rw-r--r--sys/amd64/amd64/io_apic.c7
-rw-r--r--sys/i386/i386/io_apic.c7
2 files changed, 10 insertions, 4 deletions
diff --git a/sys/amd64/amd64/io_apic.c b/sys/amd64/amd64/io_apic.c
index ff1f428..c30513f 100644
--- a/sys/amd64/amd64/io_apic.c
+++ b/sys/amd64/amd64/io_apic.c
@@ -406,9 +406,12 @@ ioapic_create(uintptr_t addr, int32_t apic_id, int intbase)
if (bootverbose) {
printf("ioapic%u: intpin %d -> ", io->io_id, i);
if (intpin->io_vector == VECTOR_EXTINT)
- printf("ExtINT\n");
+ printf("ExtINT");
else
- printf("irq %u\n", intpin->io_vector);
+ printf("irq %u", intpin->io_vector);
+ printf(" (%s, active%s)\n", intpin->io_edgetrigger ?
+ "edge" : "level", intpin->io_activehi ? "hi" :
+ "lo");
}
value = ioapic_read(apic, IOAPIC_REDTBL_LO(i));
ioapic_write(apic, IOAPIC_REDTBL_LO(i), value | IOART_INTMSET);
diff --git a/sys/i386/i386/io_apic.c b/sys/i386/i386/io_apic.c
index ff1f428..c30513f 100644
--- a/sys/i386/i386/io_apic.c
+++ b/sys/i386/i386/io_apic.c
@@ -406,9 +406,12 @@ ioapic_create(uintptr_t addr, int32_t apic_id, int intbase)
if (bootverbose) {
printf("ioapic%u: intpin %d -> ", io->io_id, i);
if (intpin->io_vector == VECTOR_EXTINT)
- printf("ExtINT\n");
+ printf("ExtINT");
else
- printf("irq %u\n", intpin->io_vector);
+ printf("irq %u", intpin->io_vector);
+ printf(" (%s, active%s)\n", intpin->io_edgetrigger ?
+ "edge" : "level", intpin->io_activehi ? "hi" :
+ "lo");
}
value = ioapic_read(apic, IOAPIC_REDTBL_LO(i));
ioapic_write(apic, IOAPIC_REDTBL_LO(i), value | IOART_INTMSET);
OpenPOWER on IntegriCloud