Madt.aslc revision 4fd606d1f5abe38e1f42c38de1d2e895166bd0f4
/** @file
MADT Table
This file contains a structure definition for the ACPI 1.0 Multiple APIC
Description Table (MADT).
Copyright (c) 2008 - 2009, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials are
licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/
//
// MADT Definitions
//
//
// Local APIC address
//
//
// Multiple APIC Flags are defined in AcpiX.0.h
//
//
// Define the number of each table type.
// This is where the table layout is modified.
//
//
// Ensure proper structure formats
//
//
// ACPI 1.0 MADT structure
//
#if EFI_ACPI_IO_APIC_COUNT > 0
//
// Multiple APIC Description Table
//
//
// Checksum will be updated at runtime
//
0x00,
//
// It is expected that these values will be programmed at runtime
//
' ', ' ', ' ', ' ', ' ', ' ',
0,
0,
0,
//
// MADT specific fields
//
//
// Processor Local APIC Structure
//
EFI_ACPI_1_0_PROCESSOR_LOCAL_APIC, // Type
0x01, // Processor ID
0x00, // Local APIC ID
0x00000001, // Flags - Enabled by default
//
// Interrupt Source Override Structure
//
//
// IRQ0=>IRQ2 Interrupt Source Override Structure
//
0x00, // Bus - ISA
0x00, // Source - IRQ0
0x00000002, // Global System Interrupt - IRQ2
0x0000, // Flags - Conforms to specifications of the bus
//
// ISO (SCI Active High) Interrupt Source Override Structure
//
0x00, // Bus - ISA
0x09, // Source - IRQ0
0x00000009, // Global System Interrupt - IRQ2
0x000D, // Flags - Level-tiggered, Active High
//
// IO APIC Structure
//
EFI_ACPI_1_0_IO_APIC, // Type
0x02, // IO APIC ID
EFI_ACPI_RESERVED_BYTE, // Reserved
0xFEC00000, // IO APIC Address (physical)
0x00000000 // Global System Interrupt Base
};
VOID*
)
{
//
// Reference the table being generated to prevent the optimizer from removing the
// data structure from the exeutable
//
}