boot.c (a976c2951d8f376112361830aa7762beff83a205) boot.c (f7750a79568788473c5e8092ee58a52248f34329)
1/*
2 * boot.c - Architecture-Specific Low-Level ACPI Boot Support
3 *
4 * Copyright (C) 2001, 2002 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com>
5 * Copyright (C) 2001 Jun Nakajima <jun.nakajima@intel.com>
6 *
7 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8 *

--- 101 unchanged lines hidden (view full) ---

110 */
111static u32 isa_irq_to_gsi[NR_IRQS_LEGACY] __read_mostly = {
112 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
113};
114
115#define ACPI_INVALID_GSI INT_MIN
116
117/*
1/*
2 * boot.c - Architecture-Specific Low-Level ACPI Boot Support
3 *
4 * Copyright (C) 2001, 2002 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com>
5 * Copyright (C) 2001 Jun Nakajima <jun.nakajima@intel.com>
6 *
7 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8 *

--- 101 unchanged lines hidden (view full) ---

110 */
111static u32 isa_irq_to_gsi[NR_IRQS_LEGACY] __read_mostly = {
112 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
113};
114
115#define ACPI_INVALID_GSI INT_MIN
116
117/*
118 * This is just a simple wrapper around early_ioremap(),
118 * This is just a simple wrapper around early_memremap(),
119 * with sanity checks for phys == 0 and size == 0.
120 */
121char *__init __acpi_map_table(unsigned long phys, unsigned long size)
122{
123
124 if (!phys || !size)
125 return NULL;
126
119 * with sanity checks for phys == 0 and size == 0.
120 */
121char *__init __acpi_map_table(unsigned long phys, unsigned long size)
122{
123
124 if (!phys || !size)
125 return NULL;
126
127 return early_ioremap(phys, size);
127 return early_memremap(phys, size);
128}
129
130void __init __acpi_unmap_table(char *map, unsigned long size)
131{
132 if (!map || !size)
133 return;
134
128}
129
130void __init __acpi_unmap_table(char *map, unsigned long size)
131{
132 if (!map || !size)
133 return;
134
135 early_iounmap(map, size);
135 early_memunmap(map, size);
136}
137
138#ifdef CONFIG_X86_LOCAL_APIC
139static int __init acpi_parse_madt(struct acpi_table_header *table)
140{
141 struct acpi_table_madt *madt = NULL;
142
143 if (!boot_cpu_has(X86_FEATURE_APIC))

--- 1586 unchanged lines hidden ---
136}
137
138#ifdef CONFIG_X86_LOCAL_APIC
139static int __init acpi_parse_madt(struct acpi_table_header *table)
140{
141 struct acpi_table_madt *madt = NULL;
142
143 if (!boot_cpu_has(X86_FEATURE_APIC))

--- 1586 unchanged lines hidden ---