FreeBSD/sys/x86/acpica/madt.c
/*
 * Parse an entry for an NMI routed to an IO APIC.
 */
Parse an entry for an NMI routed to an IO APIC.
Parse an entry for an NMI routed to an IO APIC .
static void
madt_parse_nmi(ACPI_MADT_NMI_SOURCE *nmi)
{
	void *ioapic;
	u_int pin;
	if (madt_find_interrupt(nmi->GlobalIrq, &ioapic, &pin) != 0) {
		printf("MADT: Could not find APIC for vector %u\n",
		    nmi->GlobalIrq);
		return;
	}
	ioapic_set_nmi(ioapic, pin);
	if (!(nmi->IntiFlags & ACPI_MADT_TRIGGER_CONFORMS))
		ioapic_set_triggermode(ioapic, pin,
		    interrupt_trigger(nmi->IntiFlags, 0));
	if (!(nmi->IntiFlags & ACPI_MADT_POLARITY_CONFORMS))
		ioapic_set_polarity(ioapic, pin,
		    interrupt_polarity(nmi->IntiFlags, 0));
}
static void madt_parse_nmi ( ACPI_MADT_NMI_SOURCE * nmi ) { void * ioapic ; u_int pin ; if ( madt_find_interrupt ( nmi -> GlobalIrq , & ioapic , & pin ) != 0 ) { printf ( " \n " , nmi -> GlobalIrq ) ; return ; } ioapic_set_nmi ( ioapic , pin ) ; if ( ! ( nmi -> IntiFlags & ACPI_MADT_TRIGGER_CONFORMS ) ) ioapic_set_triggermode ( ioapic , pin , interrupt_trigger ( nmi -> IntiFlags , 0 ) ) ; if ( ! ( nmi -> IntiFlags & ACPI_MADT_POLARITY_CONFORMS ) ) ioapic_set_polarity ( ioapic , pin , interrupt_polarity ( nmi -> IntiFlags , 0 ) ) ; }
Parse an entry for an NMI routed to an IO APIC.
Parse an entry for an NMI routed to an IO APIC .