Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (C) 2011 Advanced Micro Devices, Inc. |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by |
| 8 | * the Free Software Foundation; version 2 of the License. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this program; if not, write to the Free Software |
| 17 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 18 | */ |
| 19 | |
| 20 | #include <console/console.h> |
| 21 | #include <string.h> |
| 22 | #include <arch/acpi.h> |
Kerry Sheh | 01f7ab9 | 2012-01-19 13:18:36 +0800 | [diff] [blame] | 23 | #include <arch/acpigen.h> |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 24 | #include <arch/ioapic.h> |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 25 | #include <device/pci.h> |
| 26 | #include <device/pci_ids.h> |
| 27 | #include <cpu/x86/msr.h> |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 28 | #include "agesawrapper.h" |
Marc Jones | 84e0dfc | 2011-12-12 21:12:43 -0700 | [diff] [blame] | 29 | #include <cpu/amd/mtrr.h> |
| 30 | #include <cpu/amd/amdfam14.h> |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 31 | |
| 32 | #define DUMP_ACPI_TABLES 0 |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 33 | |
| 34 | #if DUMP_ACPI_TABLES == 1 |
| 35 | |
| 36 | static void dump_mem(u32 start, u32 end) |
| 37 | { |
| 38 | |
Marc Jones | 522ba28 | 2012-01-03 16:02:07 -0700 | [diff] [blame] | 39 | u32 i; |
| 40 | print_debug("dump_mem:"); |
| 41 | for (i = start; i < end; i++) { |
| 42 | if ((i & 0xf) == 0) { |
| 43 | printk(BIOS_DEBUG, "\n%08x:", i); |
| 44 | } |
| 45 | printk(BIOS_DEBUG, " %02x", (u8)*((u8 *)i)); |
| 46 | } |
| 47 | print_debug("\n"); |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 48 | } |
| 49 | #endif |
| 50 | |
| 51 | extern const unsigned char AmlCode[]; |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 52 | |
Marc Jones | 84e0dfc | 2011-12-12 21:12:43 -0700 | [diff] [blame] | 53 | unsigned long acpi_fill_ssdt_generator(unsigned long current, const char *oem_table_id) |
| 54 | { |
| 55 | int lens; |
| 56 | msr_t msr; |
| 57 | char pscope[] = "\\_SB.PCI0"; |
| 58 | |
| 59 | lens = acpigen_write_scope(pscope); |
| 60 | msr = rdmsr(TOP_MEM); |
| 61 | lens += acpigen_write_name_dword("TOM1", msr.lo); |
| 62 | msr = rdmsr(TOP_MEM2); |
| 63 | /* |
| 64 | * Since XP only implements parts of ACPI 2.0, we can't use a qword |
| 65 | * here. |
| 66 | * See http://www.acpi.info/presentations/S01USMOBS169_OS%2520new.ppt |
| 67 | * slide 22ff. |
| 68 | * Shift value right by 20 bit to make it fit into 32bit, |
| 69 | * giving us 1MB granularity and a limit of almost 4Exabyte of memory. |
| 70 | */ |
| 71 | lens += acpigen_write_name_dword("TOM2", (msr.hi << 12) | msr.lo >> 20); |
| 72 | acpigen_patch_len(lens - 1); |
| 73 | return (unsigned long) (acpigen_get_current()); |
| 74 | } |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 75 | |
| 76 | unsigned long acpi_fill_mcfg(unsigned long current) |
| 77 | { |
Marc Jones | 522ba28 | 2012-01-03 16:02:07 -0700 | [diff] [blame] | 78 | /* Just a dummy */ |
| 79 | return current; |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 80 | } |
| 81 | |
| 82 | unsigned long acpi_fill_madt(unsigned long current) |
| 83 | { |
Marc Jones | 522ba28 | 2012-01-03 16:02:07 -0700 | [diff] [blame] | 84 | /* create all subtables for processors */ |
Marc Jones | 84e0dfc | 2011-12-12 21:12:43 -0700 | [diff] [blame] | 85 | current = acpi_create_madt_lapics(current); |
Stefan Reinauer | 5ff7c13 | 2011-10-31 12:56:45 -0700 | [diff] [blame] | 86 | |
Marc Jones | 522ba28 | 2012-01-03 16:02:07 -0700 | [diff] [blame] | 87 | /* Write SB800 IOAPIC, only one */ |
Marc Jones | 84e0dfc | 2011-12-12 21:12:43 -0700 | [diff] [blame] | 88 | current += acpi_create_madt_ioapic((acpi_madt_ioapic_t *) current, |
Kerry Sheh | f03360f | 2012-01-19 13:25:55 +0800 | [diff] [blame^] | 89 | CONFIG_MAX_CPUS, IO_APIC_ADDR, 0); |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 90 | |
Marc Jones | 522ba28 | 2012-01-03 16:02:07 -0700 | [diff] [blame] | 91 | current += acpi_create_madt_irqoverride((acpi_madt_irqoverride_t *) |
| 92 | current, 0, 0, 2, 0); |
Marc Jones | 84e0dfc | 2011-12-12 21:12:43 -0700 | [diff] [blame] | 93 | current += acpi_create_madt_irqoverride((acpi_madt_irqoverride_t *) |
| 94 | current, 0, 9, 9, 0xF); |
Stefan Reinauer | 5ff7c13 | 2011-10-31 12:56:45 -0700 | [diff] [blame] | 95 | |
Marc Jones | 522ba28 | 2012-01-03 16:02:07 -0700 | [diff] [blame] | 96 | /* 0: mean bus 0--->ISA */ |
| 97 | /* 0: PIC 0 */ |
| 98 | /* 2: APIC 2 */ |
| 99 | /* 5 mean: 0101 --> Edige-triggered, Active high */ |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 100 | |
Marc Jones | 522ba28 | 2012-01-03 16:02:07 -0700 | [diff] [blame] | 101 | /* create all subtables for processors */ |
Marc Jones | 84e0dfc | 2011-12-12 21:12:43 -0700 | [diff] [blame] | 102 | /* current = acpi_create_madt_lapic_nmis(current, 5, 1); */ |
Marc Jones | 522ba28 | 2012-01-03 16:02:07 -0700 | [diff] [blame] | 103 | /* 1: LINT1 connect to NMI */ |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 104 | |
Marc Jones | 522ba28 | 2012-01-03 16:02:07 -0700 | [diff] [blame] | 105 | return current; |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 106 | } |
| 107 | |
| 108 | unsigned long acpi_fill_slit(unsigned long current) |
| 109 | { |
Marc Jones | 522ba28 | 2012-01-03 16:02:07 -0700 | [diff] [blame] | 110 | // Not implemented |
| 111 | return current; |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 112 | } |
| 113 | |
| 114 | unsigned long acpi_fill_srat(unsigned long current) |
| 115 | { |
Marc Jones | 522ba28 | 2012-01-03 16:02:07 -0700 | [diff] [blame] | 116 | /* No NUMA, no SRAT */ |
| 117 | return current; |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 118 | } |
| 119 | |
| 120 | unsigned long write_acpi_tables(unsigned long start) |
| 121 | { |
Marc Jones | 522ba28 | 2012-01-03 16:02:07 -0700 | [diff] [blame] | 122 | unsigned long current; |
| 123 | acpi_rsdp_t *rsdp; |
| 124 | acpi_rsdt_t *rsdt; |
| 125 | acpi_hpet_t *hpet; |
| 126 | acpi_madt_t *madt; |
| 127 | acpi_srat_t *srat; |
| 128 | acpi_slit_t *slit; |
| 129 | acpi_fadt_t *fadt; |
| 130 | acpi_facs_t *facs; |
| 131 | acpi_header_t *dsdt; |
| 132 | acpi_header_t *ssdt; |
Marc Jones | 84e0dfc | 2011-12-12 21:12:43 -0700 | [diff] [blame] | 133 | acpi_header_t *ssdt2; |
Marc Jones | 7bfd22e | 2011-12-12 22:04:25 -0700 | [diff] [blame] | 134 | acpi_header_t *alib; |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 135 | |
Marc Jones | 522ba28 | 2012-01-03 16:02:07 -0700 | [diff] [blame] | 136 | get_bus_conf(); /* it will get sblk, pci1234, hcdn, and sbdn */ |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 137 | |
Marc Jones | 522ba28 | 2012-01-03 16:02:07 -0700 | [diff] [blame] | 138 | /* Align ACPI tables to 16 bytes */ |
| 139 | start = (start + 0x0f) & -0x10; |
| 140 | current = start; |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 141 | |
Marc Jones | 522ba28 | 2012-01-03 16:02:07 -0700 | [diff] [blame] | 142 | printk(BIOS_INFO, "ACPI: Writing ACPI tables at %lx...\n", start); |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 143 | |
Marc Jones | 522ba28 | 2012-01-03 16:02:07 -0700 | [diff] [blame] | 144 | /* We need at least an RSDP and an RSDT Table */ |
| 145 | rsdp = (acpi_rsdp_t *) current; |
| 146 | current += sizeof(acpi_rsdp_t); |
| 147 | rsdt = (acpi_rsdt_t *) current; |
| 148 | current += sizeof(acpi_rsdt_t); |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 149 | |
Marc Jones | 522ba28 | 2012-01-03 16:02:07 -0700 | [diff] [blame] | 150 | /* clear all table memory */ |
| 151 | memset((void *)start, 0, current - start); |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 152 | |
Marc Jones | 522ba28 | 2012-01-03 16:02:07 -0700 | [diff] [blame] | 153 | acpi_write_rsdp(rsdp, rsdt, NULL); |
| 154 | acpi_write_rsdt(rsdt); |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 155 | |
Marc Jones | 522ba28 | 2012-01-03 16:02:07 -0700 | [diff] [blame] | 156 | /* DSDT */ |
| 157 | current = ( current + 0x07) & -0x08; |
| 158 | printk(BIOS_DEBUG, "ACPI: * DSDT at %lx\n", current); |
Marc Jones | 84e0dfc | 2011-12-12 21:12:43 -0700 | [diff] [blame] | 159 | dsdt = (acpi_header_t *)current; |
Marc Jones | 522ba28 | 2012-01-03 16:02:07 -0700 | [diff] [blame] | 160 | memcpy(dsdt, &AmlCode, sizeof(acpi_header_t)); |
| 161 | current += dsdt->length; |
| 162 | memcpy(dsdt, &AmlCode, dsdt->length); |
| 163 | printk(BIOS_DEBUG, "ACPI: * DSDT @ %p Length %x\n",dsdt,dsdt->length); |
Scott Duplichan | 20aad25 | 2011-05-20 00:06:09 +0000 | [diff] [blame] | 164 | |
Marc Jones | 522ba28 | 2012-01-03 16:02:07 -0700 | [diff] [blame] | 165 | /* FACS */ // it needs 64 bit alignment |
| 166 | current = ( current + 0x07) & -0x08; |
| 167 | printk(BIOS_DEBUG, "ACPI: * FACS at %lx\n", current); |
Marc Jones | 84e0dfc | 2011-12-12 21:12:43 -0700 | [diff] [blame] | 168 | facs = (acpi_facs_t *) current; |
Marc Jones | 522ba28 | 2012-01-03 16:02:07 -0700 | [diff] [blame] | 169 | current += sizeof(acpi_facs_t); |
| 170 | acpi_create_facs(facs); |
Scott Duplichan | 20aad25 | 2011-05-20 00:06:09 +0000 | [diff] [blame] | 171 | |
Marc Jones | 522ba28 | 2012-01-03 16:02:07 -0700 | [diff] [blame] | 172 | /* FADT */ |
| 173 | current = ( current + 0x07) & -0x08; |
| 174 | printk(BIOS_DEBUG, "ACPI: * FADT at %lx\n", current); |
| 175 | fadt = (acpi_fadt_t *) current; |
| 176 | current += sizeof(acpi_fadt_t); |
Scott Duplichan | 20aad25 | 2011-05-20 00:06:09 +0000 | [diff] [blame] | 177 | |
Marc Jones | 522ba28 | 2012-01-03 16:02:07 -0700 | [diff] [blame] | 178 | acpi_create_fadt(fadt, facs, dsdt); |
| 179 | acpi_add_table(rsdp, fadt); |
Scott Duplichan | 20aad25 | 2011-05-20 00:06:09 +0000 | [diff] [blame] | 180 | |
Marc Jones | 522ba28 | 2012-01-03 16:02:07 -0700 | [diff] [blame] | 181 | /* |
| 182 | * We explicitly add these tables later on: |
| 183 | */ |
Marc Jones | 522ba28 | 2012-01-03 16:02:07 -0700 | [diff] [blame] | 184 | current = ( current + 0x07) & -0x08; |
| 185 | printk(BIOS_DEBUG, "ACPI: * HPET at %lx\n", current); |
| 186 | hpet = (acpi_hpet_t *) current; |
| 187 | current += sizeof(acpi_hpet_t); |
| 188 | acpi_create_hpet(hpet); |
| 189 | acpi_add_table(rsdp, hpet); |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 190 | |
Marc Jones | 522ba28 | 2012-01-03 16:02:07 -0700 | [diff] [blame] | 191 | /* If we want to use HPET Timers Linux wants an MADT */ |
| 192 | current = ( current + 0x07) & -0x08; |
| 193 | printk(BIOS_DEBUG, "ACPI: * MADT at %lx\n",current); |
| 194 | madt = (acpi_madt_t *) current; |
| 195 | acpi_create_madt(madt); |
| 196 | current += madt->header.length; |
| 197 | acpi_add_table(rsdp, madt); |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 198 | |
Marc Jones | 522ba28 | 2012-01-03 16:02:07 -0700 | [diff] [blame] | 199 | /* SRAT */ |
| 200 | current = ( current + 0x07) & -0x08; |
| 201 | printk(BIOS_DEBUG, "ACPI: * SRAT at %lx\n", current); |
| 202 | srat = (acpi_srat_t *) agesawrapper_getlateinitptr (PICK_SRAT); |
| 203 | if (srat != NULL) { |
Marc Jones | 84e0dfc | 2011-12-12 21:12:43 -0700 | [diff] [blame] | 204 | memcpy((void *)current, srat, srat->header.length); |
Marc Jones | 522ba28 | 2012-01-03 16:02:07 -0700 | [diff] [blame] | 205 | srat = (acpi_srat_t *) current; |
Marc Jones | 522ba28 | 2012-01-03 16:02:07 -0700 | [diff] [blame] | 206 | current += srat->header.length; |
| 207 | acpi_add_table(rsdp, srat); |
| 208 | } |
Marc Jones | 84e0dfc | 2011-12-12 21:12:43 -0700 | [diff] [blame] | 209 | else { |
| 210 | printk(BIOS_DEBUG, " AGESA SRAT table NULL. Skipping.\n"); |
| 211 | } |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 212 | |
Marc Jones | 522ba28 | 2012-01-03 16:02:07 -0700 | [diff] [blame] | 213 | /* SLIT */ |
| 214 | current = ( current + 0x07) & -0x08; |
| 215 | printk(BIOS_DEBUG, "ACPI: * SLIT at %lx\n", current); |
| 216 | slit = (acpi_slit_t *) agesawrapper_getlateinitptr (PICK_SLIT); |
| 217 | if (slit != NULL) { |
Marc Jones | 84e0dfc | 2011-12-12 21:12:43 -0700 | [diff] [blame] | 218 | memcpy((void *)current, slit, slit->header.length); |
Marc Jones | 522ba28 | 2012-01-03 16:02:07 -0700 | [diff] [blame] | 219 | slit = (acpi_slit_t *) current; |
Marc Jones | 522ba28 | 2012-01-03 16:02:07 -0700 | [diff] [blame] | 220 | current += slit->header.length; |
| 221 | acpi_add_table(rsdp, slit); |
| 222 | } |
Marc Jones | 84e0dfc | 2011-12-12 21:12:43 -0700 | [diff] [blame] | 223 | else { |
| 224 | printk(BIOS_DEBUG, " AGESA SLIT table NULL. Skipping.\n"); |
| 225 | } |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 226 | |
Marc Jones | 522ba28 | 2012-01-03 16:02:07 -0700 | [diff] [blame] | 227 | /* SSDT */ |
| 228 | current = ( current + 0x0f) & -0x10; |
Marc Jones | 7bfd22e | 2011-12-12 22:04:25 -0700 | [diff] [blame] | 229 | printk(BIOS_DEBUG, "ACPI: * AGESA ALIB SSDT at %lx\n", current); |
| 230 | alib = (acpi_header_t *)agesawrapper_getlateinitptr (PICK_ALIB); |
| 231 | if (alib != NULL) { |
| 232 | memcpy((void *)current, alib, alib->length); |
| 233 | ssdt = (acpi_header_t *) current; |
| 234 | current += alib->length; |
| 235 | acpi_add_table(rsdp,alib); |
| 236 | } |
| 237 | else { |
| 238 | printk(BIOS_DEBUG, " AGESA ALIB SSDT table NULL. Skipping.\n"); |
| 239 | } |
| 240 | |
| 241 | #if 0 // The DSDT needs additional work for the AGESA SSDT Pstate table |
| 242 | current = ( current + 0x0f) & -0x10; |
Marc Jones | 84e0dfc | 2011-12-12 21:12:43 -0700 | [diff] [blame] | 243 | printk(BIOS_DEBUG, "ACPI: * AGESA SSDT Pstate at %lx\n", current); |
Marc Jones | 522ba28 | 2012-01-03 16:02:07 -0700 | [diff] [blame] | 244 | ssdt = (acpi_header_t *)agesawrapper_getlateinitptr (PICK_PSTATE); |
| 245 | if (ssdt != NULL) { |
Marc Jones | 84e0dfc | 2011-12-12 21:12:43 -0700 | [diff] [blame] | 246 | memcpy((void *)current, ssdt, ssdt->length); |
Marc Jones | 522ba28 | 2012-01-03 16:02:07 -0700 | [diff] [blame] | 247 | ssdt = (acpi_header_t *) current; |
| 248 | current += ssdt->length; |
Kerry Sheh | 01f7ab9 | 2012-01-19 13:18:36 +0800 | [diff] [blame] | 249 | acpi_add_table(rsdp,ssdt); |
Marc Jones | 522ba28 | 2012-01-03 16:02:07 -0700 | [diff] [blame] | 250 | } |
| 251 | else { |
Kerry Sheh | 01f7ab9 | 2012-01-19 13:18:36 +0800 | [diff] [blame] | 252 | printk(BIOS_DEBUG, " AGESA SSDT Pstate table NULL. Skipping.\n"); |
Marc Jones | 522ba28 | 2012-01-03 16:02:07 -0700 | [diff] [blame] | 253 | } |
| 254 | acpi_add_table(rsdp,ssdt); |
Marc Jones | 7bfd22e | 2011-12-12 22:04:25 -0700 | [diff] [blame] | 255 | #endif |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 256 | |
Marc Jones | 84e0dfc | 2011-12-12 21:12:43 -0700 | [diff] [blame] | 257 | current = ( current + 0x0f) & -0x10; |
| 258 | printk(BIOS_DEBUG, "ACPI: * coreboot TOM SSDT2 at %lx\n", current); |
| 259 | ssdt2 = (acpi_header_t *) current; |
| 260 | acpi_create_ssdt_generator(ssdt2, ACPI_TABLE_CREATOR); |
| 261 | current += ssdt2->length; |
| 262 | acpi_add_table(rsdp,ssdt2); |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 263 | |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 264 | #if DUMP_ACPI_TABLES == 1 |
Marc Jones | 522ba28 | 2012-01-03 16:02:07 -0700 | [diff] [blame] | 265 | printk(BIOS_DEBUG, "rsdp\n"); |
| 266 | dump_mem(rsdp, ((void *)rsdp) + sizeof(acpi_rsdp_t)); |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 267 | |
Marc Jones | 522ba28 | 2012-01-03 16:02:07 -0700 | [diff] [blame] | 268 | printk(BIOS_DEBUG, "rsdt\n"); |
| 269 | dump_mem(rsdt, ((void *)rsdt) + sizeof(acpi_rsdt_t)); |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 270 | |
Marc Jones | 522ba28 | 2012-01-03 16:02:07 -0700 | [diff] [blame] | 271 | printk(BIOS_DEBUG, "madt\n"); |
| 272 | dump_mem(madt, ((void *)madt) + madt->header.length); |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 273 | |
Marc Jones | 522ba28 | 2012-01-03 16:02:07 -0700 | [diff] [blame] | 274 | printk(BIOS_DEBUG, "srat\n"); |
| 275 | dump_mem(srat, ((void *)srat) + srat->header.length); |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 276 | |
Marc Jones | 522ba28 | 2012-01-03 16:02:07 -0700 | [diff] [blame] | 277 | printk(BIOS_DEBUG, "slit\n"); |
| 278 | dump_mem(slit, ((void *)slit) + slit->header.length); |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 279 | |
Kerry Sheh | 01f7ab9 | 2012-01-19 13:18:36 +0800 | [diff] [blame] | 280 | printk(BIOS_DEBUG, "alib\n"); |
| 281 | dump_mem(ssdt, ((void *)alib) + alib->length); |
| 282 | |
Marc Jones | 522ba28 | 2012-01-03 16:02:07 -0700 | [diff] [blame] | 283 | printk(BIOS_DEBUG, "ssdt\n"); |
| 284 | dump_mem(ssdt, ((void *)ssdt) + ssdt->length); |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 285 | |
Marc Jones | 84e0dfc | 2011-12-12 21:12:43 -0700 | [diff] [blame] | 286 | printk(BIOS_DEBUG, "ssdt2\n"); |
| 287 | dump_mem(ssdt2, ((void *)ssdt2) + ssdt2->length); |
| 288 | |
Marc Jones | 522ba28 | 2012-01-03 16:02:07 -0700 | [diff] [blame] | 289 | printk(BIOS_DEBUG, "fadt\n"); |
| 290 | dump_mem(fadt, ((void *)fadt) + fadt->header.length); |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 291 | #endif |
| 292 | |
Marc Jones | 522ba28 | 2012-01-03 16:02:07 -0700 | [diff] [blame] | 293 | printk(BIOS_INFO, "ACPI: done.\n"); |
| 294 | return current; |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 295 | } |