diff options
author | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2009-01-30 02:05:20 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2009-01-30 02:05:20 +0000 |
commit | 1c49bc9744c2e9044ddd1c8d20a1728f57eda85c (patch) | |
tree | b4b5affcabd13ce36fc7b38026cb8baad0627bbf /src/northbridge/amd/amdfam10 | |
parent | b6dc72303cceab0b06b613f800b5db413b2aa7b4 (diff) | |
download | coreboot-1c49bc9744c2e9044ddd1c8d20a1728f57eda85c.tar.xz |
Bring AMD K8 ACPI mangling more in line with Fam10 ACPI mangling. No
functional changes, only a little bit of (mostly formatting) cleanup to
make merging easier.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3924 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/northbridge/amd/amdfam10')
-rw-r--r-- | src/northbridge/amd/amdfam10/amdfam10_acpi.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/northbridge/amd/amdfam10/amdfam10_acpi.c b/src/northbridge/amd/amdfam10/amdfam10_acpi.c index f16b7339d9..b33ea488cf 100644 --- a/src/northbridge/amd/amdfam10/amdfam10_acpi.c +++ b/src/northbridge/amd/amdfam10/amdfam10_acpi.c @@ -66,7 +66,6 @@ unsigned long acpi_create_madt_lapic_nmis(unsigned long current, u16 flags, u8 l return current; } - unsigned long acpi_create_srat_lapics(unsigned long current) { device_t cpu; @@ -98,7 +97,6 @@ static unsigned long resk(uint64_t value) return resultk; } - struct acpi_srat_mem_state { unsigned long current; }; @@ -113,10 +111,10 @@ void set_srat_mem(void *gp, struct device *dev, struct resource *res) printk_debug("set_srat_mem: dev %s, res->index=%04x startk=%08x, sizek=%08x\n", dev_path(dev), res->index, basek, sizek); /* - 0-640K must be on node 0 - next range is from 1M--- - So will cut off before 1M in the mem range - */ + * 0-640K must be on node 0 + * next range is from 1M--- + * So will cut off before 1M in the mem range + */ if((basek+sizek)<1024) return; if(basek<1024) { @@ -128,7 +126,6 @@ void set_srat_mem(void *gp, struct device *dev, struct resource *res) state->current += acpi_create_srat_mem((acpi_srat_mem_t *)state->current, (res->index & 0xf), basek, sizek, 1); } - unsigned long acpi_fill_srat(unsigned long current) { struct acpi_srat_mem_state srat_mem_state; @@ -184,7 +181,6 @@ unsigned long acpi_fill_slit(unsigned long current) return current; } - // moved from mb acpi_tables.c static void intx_to_stream(u32 val, u32 len, u8 *dest) { @@ -194,13 +190,11 @@ static void intx_to_stream(u32 val, u32 len, u8 *dest) } } - static void int_to_stream(u32 val, u8 *dest) { return intx_to_stream(val, 4, dest); } - // used by acpi_tables.h void update_ssdt(void *ssdt) { @@ -293,7 +287,6 @@ void update_ssdt(void *ssdt) } - void update_sspr(void *sspr, u32 nodeid, u32 cpuindex) { u8 *CPU; |