Yinghai Lu | c34e3ab | 2006-10-12 00:58:20 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Island Aruma ACPI support |
| 3 | * written by Stefan Reinauer <stepan@openbios.org> |
| 4 | * (C) 2005 Stefan Reinauer |
| 5 | * |
| 6 | * |
| 7 | * Copyright 2005 AMD |
| 8 | * 2005.9 yhlu modify that to more dynamic for AMD Opteron Based MB |
| 9 | */ |
| 10 | |
| 11 | #include <console/console.h> |
| 12 | #include <string.h> |
| 13 | #include <arch/acpi.h> |
Uwe Hermann | 74d1a6e | 2010-10-12 17:34:08 +0000 | [diff] [blame] | 14 | #include <arch/ioapic.h> |
Yinghai Lu | c34e3ab | 2006-10-12 00:58:20 +0000 | [diff] [blame] | 15 | #include <device/pci.h> |
| 16 | #include <device/pci_ids.h> |
| 17 | #include <cpu/x86/msr.h> |
| 18 | #include <cpu/amd/mtrr.h> |
| 19 | #include <cpu/amd/amdk8_sysconf.h> |
stepan | 8301d83 | 2010-12-08 07:07:33 +0000 | [diff] [blame] | 20 | #include "northbridge/amd/amdk8/acpi.h" |
Yinghai Lu | c34e3ab | 2006-10-12 00:58:20 +0000 | [diff] [blame] | 21 | #include "mb_sysconf.h" |
| 22 | |
| 23 | #define DUMP_ACPI_TABLES 0 |
| 24 | |
| 25 | #if DUMP_ACPI_TABLES == 1 |
| 26 | static void dump_mem(unsigned start, unsigned end) |
| 27 | { |
Stefan Reinauer | 14e2277 | 2010-04-27 06:56:47 +0000 | [diff] [blame] | 28 | |
Yinghai Lu | c34e3ab | 2006-10-12 00:58:20 +0000 | [diff] [blame] | 29 | unsigned i; |
| 30 | print_debug("dump_mem:"); |
| 31 | for(i=start;i<end;i++) { |
| 32 | if((i & 0xf)==0) { |
Stefan Reinauer | c02b4fc | 2010-03-22 11:42:32 +0000 | [diff] [blame] | 33 | printk(BIOS_DEBUG, "\n%08x:", i); |
Yinghai Lu | c34e3ab | 2006-10-12 00:58:20 +0000 | [diff] [blame] | 34 | } |
Stefan Reinauer | c02b4fc | 2010-03-22 11:42:32 +0000 | [diff] [blame] | 35 | printk(BIOS_DEBUG, " %02x", (unsigned char)*((unsigned char *)i)); |
Yinghai Lu | c34e3ab | 2006-10-12 00:58:20 +0000 | [diff] [blame] | 36 | } |
| 37 | print_debug("\n"); |
| 38 | } |
| 39 | #endif |
| 40 | |
Myles Watson | ae60855 | 2010-04-09 03:41:23 +0000 | [diff] [blame] | 41 | extern const unsigned char AmlCode[]; |
Yinghai Lu | c34e3ab | 2006-10-12 00:58:20 +0000 | [diff] [blame] | 42 | |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 43 | #if CONFIG_ACPI_SSDTX_NUM >= 1 |
Myles Watson | ae60855 | 2010-04-09 03:41:23 +0000 | [diff] [blame] | 44 | extern const unsigned char AmlCode_ssdt2[]; |
| 45 | extern const unsigned char AmlCode_ssdt3[]; |
| 46 | extern const unsigned char AmlCode_ssdt4[]; |
| 47 | extern const unsigned char AmlCode_ssdt5[]; |
Yinghai Lu | c34e3ab | 2006-10-12 00:58:20 +0000 | [diff] [blame] | 48 | #endif |
| 49 | |
Stefan Reinauer | 2cb7014 | 2007-11-04 16:50:27 +0000 | [diff] [blame] | 50 | unsigned long acpi_fill_mcfg(unsigned long current) |
| 51 | { |
| 52 | /* Just a dummy */ |
| 53 | return current; |
| 54 | } |
| 55 | |
| 56 | |
Yinghai Lu | c34e3ab | 2006-10-12 00:58:20 +0000 | [diff] [blame] | 57 | unsigned long acpi_fill_madt(unsigned long current) |
| 58 | { |
| 59 | unsigned int gsi_base=0x18; |
| 60 | |
| 61 | struct mb_sysconf_t *m; |
| 62 | |
| 63 | m = sysconf.mb; |
Stefan Reinauer | 14e2277 | 2010-04-27 06:56:47 +0000 | [diff] [blame] | 64 | |
Yinghai Lu | c34e3ab | 2006-10-12 00:58:20 +0000 | [diff] [blame] | 65 | /* create all subtables for processors */ |
| 66 | current = acpi_create_madt_lapics(current); |
Stefan Reinauer | 14e2277 | 2010-04-27 06:56:47 +0000 | [diff] [blame] | 67 | |
Yinghai Lu | c34e3ab | 2006-10-12 00:58:20 +0000 | [diff] [blame] | 68 | /* Write 8111 IOAPIC */ |
| 69 | current += acpi_create_madt_ioapic((acpi_madt_ioapic_t *)current, m->apicid_8111, |
| 70 | IO_APIC_ADDR, 0); |
| 71 | |
| 72 | /* Write all 8131 IOAPICs */ |
| 73 | { |
| 74 | device_t dev; |
| 75 | struct resource *res; |
| 76 | dev = dev_find_slot(m->bus_8132_0, PCI_DEVFN((sysconf.hcdn[0]&0xff), 1)); |
| 77 | if (dev) { |
| 78 | res = find_resource(dev, PCI_BASE_ADDRESS_0); |
| 79 | if (res) { |
| 80 | current += acpi_create_madt_ioapic((acpi_madt_ioapic_t *)current, m->apicid_8132_1, |
| 81 | res->base, gsi_base ); |
| 82 | gsi_base+=4; |
| 83 | |
| 84 | } |
| 85 | } |
| 86 | dev = dev_find_slot(m->bus_8132_0, PCI_DEVFN((sysconf.hcdn[0] & 0xff)+1, 1)); |
| 87 | if (dev) { |
| 88 | res = find_resource(dev, PCI_BASE_ADDRESS_0); |
| 89 | if (res) { |
| 90 | current += acpi_create_madt_ioapic((acpi_madt_ioapic_t *)current, m->apicid_8132_2, |
| 91 | res->base, gsi_base ); |
| 92 | gsi_base+=4; |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | int i; |
| 97 | int j = 0; |
| 98 | |
| 99 | for(i=1; i< sysconf.hc_possible_num; i++) { |
Stefan Reinauer | 50776fa | 2010-03-17 04:40:15 +0000 | [diff] [blame] | 100 | unsigned d = 0; |
Yinghai Lu | c34e3ab | 2006-10-12 00:58:20 +0000 | [diff] [blame] | 101 | if(!(sysconf.pci1234[i] & 0x1) ) continue; |
| 102 | // 8131 need to use +4 |
Stefan Reinauer | 14e2277 | 2010-04-27 06:56:47 +0000 | [diff] [blame] | 103 | |
Yinghai Lu | c34e3ab | 2006-10-12 00:58:20 +0000 | [diff] [blame] | 104 | switch (sysconf.hcid[i]) { |
| 105 | case 1: |
| 106 | d = 7; |
| 107 | break; |
| 108 | case 3: |
| 109 | d = 4; |
| 110 | break; |
| 111 | } |
| 112 | switch (sysconf.hcid[i]) { |
| 113 | case 1: |
| 114 | case 3: |
| 115 | dev = dev_find_slot(m->bus_8132a[j][0], PCI_DEVFN(m->sbdn3a[j], 1)); |
| 116 | if (dev) { |
| 117 | res = find_resource(dev, PCI_BASE_ADDRESS_0); |
| 118 | if (res) { |
| 119 | current += acpi_create_madt_ioapic((acpi_madt_ioapic_t *)current, m->apicid_8132a[j][0], |
| 120 | res->base, gsi_base ); |
| 121 | gsi_base+=d; |
| 122 | } |
| 123 | } |
| 124 | dev = dev_find_slot(m->bus_8132a[j][0], PCI_DEVFN(m->sbdn3a[j]+1, 1)); |
| 125 | if (dev) { |
| 126 | res = find_resource(dev, PCI_BASE_ADDRESS_0); |
| 127 | if (res) { |
| 128 | current += acpi_create_madt_ioapic((acpi_madt_ioapic_t *)current, m->apicid_8132a[j][1], |
| 129 | res->base, gsi_base ); |
| 130 | gsi_base+=d; |
| 131 | |
| 132 | } |
| 133 | } |
| 134 | break; |
| 135 | } |
| 136 | |
| 137 | j++; |
| 138 | } |
| 139 | |
| 140 | } |
| 141 | |
| 142 | current += acpi_create_madt_irqoverride( (acpi_madt_irqoverride_t *) |
| 143 | current, 0, 0, 2, 5 ); |
| 144 | /* 0: mean bus 0--->ISA */ |
| 145 | /* 0: PIC 0 */ |
Stefan Reinauer | 14e2277 | 2010-04-27 06:56:47 +0000 | [diff] [blame] | 146 | /* 2: APIC 2 */ |
Yinghai Lu | c34e3ab | 2006-10-12 00:58:20 +0000 | [diff] [blame] | 147 | /* 5 mean: 0101 --> Edige-triggered, Active high*/ |
| 148 | |
| 149 | |
| 150 | /* create all subtables for processors */ |
| 151 | current = acpi_create_madt_lapic_nmis(current, 5, 1); |
| 152 | /* 1: LINT1 connect to NMI */ |
| 153 | |
| 154 | |
| 155 | return current; |
| 156 | } |
| 157 | |
Myles Watson | 3fe6b70 | 2009-10-09 20:13:43 +0000 | [diff] [blame] | 158 | unsigned long acpi_fill_ssdt_generator(unsigned long current, const char *oem_table_id) { |
Rudolf Marek | 8db0cfe | 2009-02-03 22:37:22 +0000 | [diff] [blame] | 159 | k8acpi_write_vars(); |
| 160 | return (unsigned long) (acpigen_get_current()); |
| 161 | } |
| 162 | |
Yinghai Lu | c34e3ab | 2006-10-12 00:58:20 +0000 | [diff] [blame] | 163 | unsigned long write_acpi_tables(unsigned long start) |
| 164 | { |
| 165 | unsigned long current; |
| 166 | acpi_rsdp_t *rsdp; |
| 167 | acpi_rsdt_t *rsdt; |
| 168 | acpi_hpet_t *hpet; |
| 169 | acpi_madt_t *madt; |
| 170 | acpi_srat_t *srat; |
| 171 | acpi_slit_t *slit; |
| 172 | acpi_fadt_t *fadt; |
| 173 | acpi_facs_t *facs; |
| 174 | acpi_header_t *dsdt; |
| 175 | acpi_header_t *ssdt; |
| 176 | acpi_header_t *ssdtx; |
Myles Watson | ae60855 | 2010-04-09 03:41:23 +0000 | [diff] [blame] | 177 | void *p; |
Yinghai Lu | c34e3ab | 2006-10-12 00:58:20 +0000 | [diff] [blame] | 178 | |
Yinghai Lu | c34e3ab | 2006-10-12 00:58:20 +0000 | [diff] [blame] | 179 | int i; |
| 180 | |
| 181 | get_bus_conf(); //it will get sblk, pci1234, hcdn, and sbdn |
| 182 | |
| 183 | /* Align ACPI tables to 16byte */ |
Patrick Georgi | 26b00e6 | 2012-04-20 19:19:47 +0200 | [diff] [blame^] | 184 | start = ALIGN(start, 16); |
Yinghai Lu | c34e3ab | 2006-10-12 00:58:20 +0000 | [diff] [blame] | 185 | current = start; |
Stefan Reinauer | 14e2277 | 2010-04-27 06:56:47 +0000 | [diff] [blame] | 186 | |
Stefan Reinauer | c02b4fc | 2010-03-22 11:42:32 +0000 | [diff] [blame] | 187 | printk(BIOS_INFO, "ACPI: Writing ACPI tables at %lx...\n", start); |
Yinghai Lu | c34e3ab | 2006-10-12 00:58:20 +0000 | [diff] [blame] | 188 | |
| 189 | /* We need at least an RSDP and an RSDT Table */ |
| 190 | rsdp = (acpi_rsdp_t *) current; |
| 191 | current += sizeof(acpi_rsdp_t); |
| 192 | rsdt = (acpi_rsdt_t *) current; |
| 193 | current += sizeof(acpi_rsdt_t); |
| 194 | |
| 195 | /* clear all table memory */ |
| 196 | memset((void *)start, 0, current - start); |
Stefan Reinauer | 14e2277 | 2010-04-27 06:56:47 +0000 | [diff] [blame] | 197 | |
Stefan Reinauer | b657a3c | 2009-07-21 21:38:33 +0000 | [diff] [blame] | 198 | acpi_write_rsdp(rsdp, rsdt, NULL); |
Yinghai Lu | c34e3ab | 2006-10-12 00:58:20 +0000 | [diff] [blame] | 199 | acpi_write_rsdt(rsdt); |
| 200 | |
| 201 | /* |
| 202 | * We explicitly add these tables later on: |
| 203 | */ |
Stefan Reinauer | c02b4fc | 2010-03-22 11:42:32 +0000 | [diff] [blame] | 204 | printk(BIOS_DEBUG, "ACPI: * HPET\n"); |
Yinghai Lu | c34e3ab | 2006-10-12 00:58:20 +0000 | [diff] [blame] | 205 | hpet = (acpi_hpet_t *) current; |
| 206 | current += sizeof(acpi_hpet_t); |
| 207 | acpi_create_hpet(hpet); |
Stefan Reinauer | b657a3c | 2009-07-21 21:38:33 +0000 | [diff] [blame] | 208 | acpi_add_table(rsdp,hpet); |
Yinghai Lu | c34e3ab | 2006-10-12 00:58:20 +0000 | [diff] [blame] | 209 | |
| 210 | /* If we want to use HPET Timers Linux wants an MADT */ |
Stefan Reinauer | c02b4fc | 2010-03-22 11:42:32 +0000 | [diff] [blame] | 211 | printk(BIOS_DEBUG, "ACPI: * MADT\n"); |
Yinghai Lu | c34e3ab | 2006-10-12 00:58:20 +0000 | [diff] [blame] | 212 | madt = (acpi_madt_t *) current; |
| 213 | acpi_create_madt(madt); |
| 214 | current+=madt->header.length; |
Stefan Reinauer | b657a3c | 2009-07-21 21:38:33 +0000 | [diff] [blame] | 215 | acpi_add_table(rsdp,madt); |
Yinghai Lu | c34e3ab | 2006-10-12 00:58:20 +0000 | [diff] [blame] | 216 | |
| 217 | |
| 218 | /* SRAT */ |
Stefan Reinauer | c02b4fc | 2010-03-22 11:42:32 +0000 | [diff] [blame] | 219 | printk(BIOS_DEBUG, "ACPI: * SRAT\n"); |
Yinghai Lu | c34e3ab | 2006-10-12 00:58:20 +0000 | [diff] [blame] | 220 | srat = (acpi_srat_t *) current; |
| 221 | acpi_create_srat(srat); |
| 222 | current+=srat->header.length; |
Stefan Reinauer | b657a3c | 2009-07-21 21:38:33 +0000 | [diff] [blame] | 223 | acpi_add_table(rsdp,srat); |
Yinghai Lu | c34e3ab | 2006-10-12 00:58:20 +0000 | [diff] [blame] | 224 | |
| 225 | /* SLIT */ |
Stefan Reinauer | c02b4fc | 2010-03-22 11:42:32 +0000 | [diff] [blame] | 226 | printk(BIOS_DEBUG, "ACPI: * SLIT\n"); |
Yinghai Lu | c34e3ab | 2006-10-12 00:58:20 +0000 | [diff] [blame] | 227 | slit = (acpi_slit_t *) current; |
| 228 | acpi_create_slit(slit); |
| 229 | current+=slit->header.length; |
Stefan Reinauer | b657a3c | 2009-07-21 21:38:33 +0000 | [diff] [blame] | 230 | acpi_add_table(rsdp,slit); |
Yinghai Lu | c34e3ab | 2006-10-12 00:58:20 +0000 | [diff] [blame] | 231 | |
| 232 | /* SSDT */ |
Stefan Reinauer | c02b4fc | 2010-03-22 11:42:32 +0000 | [diff] [blame] | 233 | printk(BIOS_DEBUG, "ACPI: * SSDT\n"); |
Yinghai Lu | c34e3ab | 2006-10-12 00:58:20 +0000 | [diff] [blame] | 234 | ssdt = (acpi_header_t *)current; |
Rudolf Marek | 8db0cfe | 2009-02-03 22:37:22 +0000 | [diff] [blame] | 235 | |
Stefan Reinauer | a251dee | 2011-10-13 01:18:29 +0200 | [diff] [blame] | 236 | acpi_create_ssdt_generator(ssdt, ACPI_TABLE_CREATOR); |
Rudolf Marek | 8db0cfe | 2009-02-03 22:37:22 +0000 | [diff] [blame] | 237 | current += ssdt->length; |
Stefan Reinauer | b657a3c | 2009-07-21 21:38:33 +0000 | [diff] [blame] | 238 | acpi_add_table(rsdp, ssdt); |
Yinghai Lu | c34e3ab | 2006-10-12 00:58:20 +0000 | [diff] [blame] | 239 | |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 240 | #if CONFIG_ACPI_SSDTX_NUM >= 1 |
Yinghai Lu | c34e3ab | 2006-10-12 00:58:20 +0000 | [diff] [blame] | 241 | |
| 242 | //same htio, but different position? We may have to copy, change HCIN, and recalculate the checknum and add_table |
| 243 | |
| 244 | for(i=1;i<sysconf.hc_possible_num;i++) { // 0: is hc sblink |
| 245 | if((sysconf.pci1234[i] & 1) != 1 ) continue; |
| 246 | uint8_t c; |
| 247 | if(i<7) { |
| 248 | c = (uint8_t) ('4' + i - 1); |
| 249 | } |
| 250 | else { |
| 251 | c = (uint8_t) ('A' + i - 1 - 6); |
| 252 | } |
Stefan Reinauer | c02b4fc | 2010-03-22 11:42:32 +0000 | [diff] [blame] | 253 | printk(BIOS_DEBUG, "ACPI: * SSDT for PCI%c Aka hcid = %d\n", c, sysconf.hcid[i]); //pci0 and pci1 are in dsdt |
Patrick Georgi | 26b00e6 | 2012-04-20 19:19:47 +0200 | [diff] [blame^] | 254 | current = ALIGN(current, 8); |
Yinghai Lu | c34e3ab | 2006-10-12 00:58:20 +0000 | [diff] [blame] | 255 | ssdtx = (acpi_header_t *)current; |
| 256 | switch(sysconf.hcid[i]) { |
| 257 | case 1: //8132 |
Myles Watson | 565a281 | 2010-03-24 22:02:53 +0000 | [diff] [blame] | 258 | p = &AmlCode_ssdt2; |
Yinghai Lu | c34e3ab | 2006-10-12 00:58:20 +0000 | [diff] [blame] | 259 | break; |
| 260 | case 2: //8151 |
Myles Watson | 565a281 | 2010-03-24 22:02:53 +0000 | [diff] [blame] | 261 | p = &AmlCode_ssdt3; |
Yinghai Lu | c34e3ab | 2006-10-12 00:58:20 +0000 | [diff] [blame] | 262 | break; |
| 263 | case 3: //8131 |
Myles Watson | 565a281 | 2010-03-24 22:02:53 +0000 | [diff] [blame] | 264 | p = &AmlCode_ssdt4; |
Yinghai Lu | c34e3ab | 2006-10-12 00:58:20 +0000 | [diff] [blame] | 265 | break; |
| 266 | default: |
Yinghai Lu | a5fc22f | 2006-12-20 20:21:05 +0000 | [diff] [blame] | 267 | //HTX no io apic |
Myles Watson | 565a281 | 2010-03-24 22:02:53 +0000 | [diff] [blame] | 268 | p = &AmlCode_ssdt5; |
Yinghai Lu | a5fc22f | 2006-12-20 20:21:05 +0000 | [diff] [blame] | 269 | break; |
Yinghai Lu | c34e3ab | 2006-10-12 00:58:20 +0000 | [diff] [blame] | 270 | } |
Myles Watson | ae60855 | 2010-04-09 03:41:23 +0000 | [diff] [blame] | 271 | memcpy(ssdtx, p, sizeof(acpi_header_t)); |
| 272 | current += ssdtx->length; |
| 273 | memcpy(ssdtx, p, ssdtx->length); |
Yinghai Lu | c34e3ab | 2006-10-12 00:58:20 +0000 | [diff] [blame] | 274 | update_ssdtx((void *)ssdtx, i); |
| 275 | ssdtx->checksum = 0; |
| 276 | ssdtx->checksum = acpi_checksum((unsigned char *)ssdtx,ssdtx->length); |
Stefan Reinauer | b657a3c | 2009-07-21 21:38:33 +0000 | [diff] [blame] | 277 | acpi_add_table(rsdp,ssdtx); |
Yinghai Lu | c34e3ab | 2006-10-12 00:58:20 +0000 | [diff] [blame] | 278 | } |
| 279 | #endif |
| 280 | |
| 281 | /* FACS */ |
Stefan Reinauer | c02b4fc | 2010-03-22 11:42:32 +0000 | [diff] [blame] | 282 | printk(BIOS_DEBUG, "ACPI: * FACS\n"); |
Yinghai Lu | c34e3ab | 2006-10-12 00:58:20 +0000 | [diff] [blame] | 283 | facs = (acpi_facs_t *) current; |
| 284 | current += sizeof(acpi_facs_t); |
| 285 | acpi_create_facs(facs); |
| 286 | |
| 287 | /* DSDT */ |
Stefan Reinauer | c02b4fc | 2010-03-22 11:42:32 +0000 | [diff] [blame] | 288 | printk(BIOS_DEBUG, "ACPI: * DSDT\n"); |
Yinghai Lu | c34e3ab | 2006-10-12 00:58:20 +0000 | [diff] [blame] | 289 | dsdt = (acpi_header_t *)current; |
Myles Watson | ae60855 | 2010-04-09 03:41:23 +0000 | [diff] [blame] | 290 | memcpy(dsdt, &AmlCode, sizeof(acpi_header_t)); |
| 291 | current += dsdt->length; |
| 292 | memcpy(dsdt, &AmlCode, dsdt->length); |
Stefan Reinauer | c02b4fc | 2010-03-22 11:42:32 +0000 | [diff] [blame] | 293 | printk(BIOS_DEBUG, "ACPI: * DSDT @ %p Length %x\n",dsdt,dsdt->length); |
Yinghai Lu | c34e3ab | 2006-10-12 00:58:20 +0000 | [diff] [blame] | 294 | |
Zheng Bao | 7f20d73 | 2010-12-07 06:27:44 +0000 | [diff] [blame] | 295 | /* FADT */ |
Stefan Reinauer | c02b4fc | 2010-03-22 11:42:32 +0000 | [diff] [blame] | 296 | printk(BIOS_DEBUG, "ACPI: * FADT\n"); |
Yinghai Lu | c34e3ab | 2006-10-12 00:58:20 +0000 | [diff] [blame] | 297 | fadt = (acpi_fadt_t *) current; |
| 298 | current += sizeof(acpi_fadt_t); |
| 299 | |
| 300 | acpi_create_fadt(fadt,facs,dsdt); |
Stefan Reinauer | b657a3c | 2009-07-21 21:38:33 +0000 | [diff] [blame] | 301 | acpi_add_table(rsdp,fadt); |
Yinghai Lu | c34e3ab | 2006-10-12 00:58:20 +0000 | [diff] [blame] | 302 | |
| 303 | #if DUMP_ACPI_TABLES == 1 |
Stefan Reinauer | c02b4fc | 2010-03-22 11:42:32 +0000 | [diff] [blame] | 304 | printk(BIOS_DEBUG, "rsdp\n"); |
Yinghai Lu | c34e3ab | 2006-10-12 00:58:20 +0000 | [diff] [blame] | 305 | dump_mem(rsdp, ((void *)rsdp) + sizeof(acpi_rsdp_t)); |
| 306 | |
Stefan Reinauer | c02b4fc | 2010-03-22 11:42:32 +0000 | [diff] [blame] | 307 | printk(BIOS_DEBUG, "rsdt\n"); |
Yinghai Lu | c34e3ab | 2006-10-12 00:58:20 +0000 | [diff] [blame] | 308 | dump_mem(rsdt, ((void *)rsdt) + sizeof(acpi_rsdt_t)); |
| 309 | |
Stefan Reinauer | c02b4fc | 2010-03-22 11:42:32 +0000 | [diff] [blame] | 310 | printk(BIOS_DEBUG, "madt\n"); |
Yinghai Lu | c34e3ab | 2006-10-12 00:58:20 +0000 | [diff] [blame] | 311 | dump_mem(madt, ((void *)madt) + madt->header.length); |
| 312 | |
Stefan Reinauer | c02b4fc | 2010-03-22 11:42:32 +0000 | [diff] [blame] | 313 | printk(BIOS_DEBUG, "srat\n"); |
Yinghai Lu | c34e3ab | 2006-10-12 00:58:20 +0000 | [diff] [blame] | 314 | dump_mem(srat, ((void *)srat) + srat->header.length); |
| 315 | |
Stefan Reinauer | c02b4fc | 2010-03-22 11:42:32 +0000 | [diff] [blame] | 316 | printk(BIOS_DEBUG, "slit\n"); |
Yinghai Lu | c34e3ab | 2006-10-12 00:58:20 +0000 | [diff] [blame] | 317 | dump_mem(slit, ((void *)slit) + slit->header.length); |
| 318 | |
Stefan Reinauer | c02b4fc | 2010-03-22 11:42:32 +0000 | [diff] [blame] | 319 | printk(BIOS_DEBUG, "ssdt\n"); |
Yinghai Lu | c34e3ab | 2006-10-12 00:58:20 +0000 | [diff] [blame] | 320 | dump_mem(ssdt, ((void *)ssdt) + ssdt->length); |
| 321 | |
Stefan Reinauer | c02b4fc | 2010-03-22 11:42:32 +0000 | [diff] [blame] | 322 | printk(BIOS_DEBUG, "fadt\n"); |
Yinghai Lu | c34e3ab | 2006-10-12 00:58:20 +0000 | [diff] [blame] | 323 | dump_mem(fadt, ((void *)fadt) + fadt->header.length); |
| 324 | #endif |
| 325 | |
Stefan Reinauer | c02b4fc | 2010-03-22 11:42:32 +0000 | [diff] [blame] | 326 | printk(BIOS_INFO, "ACPI: done.\n"); |
Yinghai Lu | c34e3ab | 2006-10-12 00:58:20 +0000 | [diff] [blame] | 327 | return current; |
| 328 | } |
| 329 | |