View | Details | Raw Unified | Return to bug 187966
Collapse All | Expand All

(-)b/sys/x86/acpica/madt.c (-3 / +6 lines)
Lines 308-321 interrupt_polarity(UINT16 IntiFlags, UINT8 Source) Link Here
308
	case ACPI_MADT_POLARITY_ACTIVE_LOW:
308
	case ACPI_MADT_POLARITY_ACTIVE_LOW:
309
		return (INTR_POLARITY_LOW);
309
		return (INTR_POLARITY_LOW);
310
	default:
310
	default:
311
		panic("Bogus Interrupt Polarity");
311
		printf("Bogus Interrupt Polarity %x, set to low\n",
312
			IntiFlags & ACPI_MADT_POLARITY_MASK);
313
		return (INTR_POLARITY_LOW);
312
	}
314
	}
313
}
315
}
314
316
315
static enum intr_trigger
317
static enum intr_trigger
316
interrupt_trigger(UINT16 IntiFlags, UINT8 Source)
318
interrupt_trigger(UINT16 IntiFlags, UINT8 Source)
317
{
319
{
318
319
	switch (IntiFlags & ACPI_MADT_TRIGGER_MASK) {
320
	switch (IntiFlags & ACPI_MADT_TRIGGER_MASK) {
320
	case ACPI_MADT_TRIGGER_CONFORMS:
321
	case ACPI_MADT_TRIGGER_CONFORMS:
321
		if (Source == AcpiGbl_FADT.SciInterrupt)
322
		if (Source == AcpiGbl_FADT.SciInterrupt)
Lines 327-333 interrupt_trigger(UINT16 IntiFlags, UINT8 Source) Link Here
327
	case ACPI_MADT_TRIGGER_LEVEL:
328
	case ACPI_MADT_TRIGGER_LEVEL:
328
		return (INTR_TRIGGER_LEVEL);
329
		return (INTR_TRIGGER_LEVEL);
329
	default:
330
	default:
330
		panic("Bogus Interrupt Trigger Mode");
331
		printf("Bogus Interrupt Trigger Mode %x, set to level\n",
332
			IntiFlags & ACPI_MADT_TRIGGER_MASK);
333
		return (INTR_TRIGGER_LEVEL);
331
	}
334
	}
332
}
335
}

Return to bug 187966