use acpi.h include instead of manually adding acpi_slp_type.

Change-Id: I2a3aaf10e453fa6cce8a993356f2a0587178209a
Signed-off-by: Stefan Reinauer <reinauer@google.com>
Reviewed-on: http://review.coreboot.org/276
Tested-by: build bot (Jenkins)
Reviewed-by: Uwe Hermann <uwe@hermann-uwe.de>
This commit is contained in:
Stefan Reinauer 2011-10-14 15:18:29 -07:00 committed by Uwe Hermann
parent 2d17299395
commit ab87254b61
4 changed files with 4 additions and 9 deletions

View File

@ -29,6 +29,7 @@
#include <bitops.h> #include <bitops.h>
#include <cpu/cpu.h> #include <cpu/cpu.h>
#include <boot/tables.h> #include <boot/tables.h>
#include <arch/acpi.h>
#include "chip.h" #include "chip.h"
#include "i945.h" #include "i945.h"
@ -252,8 +253,6 @@ static void intel_set_subsystem(device_t dev, unsigned vendor, unsigned device)
} }
#if CONFIG_HAVE_ACPI_RESUME #if CONFIG_HAVE_ACPI_RESUME
extern u8 acpi_slp_type;
static void northbridge_init(struct device *dev) static void northbridge_init(struct device *dev)
{ {
switch (pci_read_config32(dev, SKPAD)) { switch (pci_read_config32(dev, SKPAD)) {

View File

@ -29,6 +29,7 @@
#include <bitops.h> #include <bitops.h>
#include <cpu/cpu.h> #include <cpu/cpu.h>
#include <boot/tables.h> #include <boot/tables.h>
#include <arch/acpi.h>
#include "chip.h" #include "chip.h"
#include "sch.h" #include "sch.h"
@ -267,8 +268,6 @@ static void intel_set_subsystem(device_t dev, unsigned vendor, unsigned device)
} }
#if CONFIG_HAVE_ACPI_RESUME #if CONFIG_HAVE_ACPI_RESUME
extern u8 acpi_slp_type;
static void northbridge_init(struct device *dev) static void northbridge_init(struct device *dev)
{ {
switch (pci_read_config32(dev, SKPAD)) { switch (pci_read_config32(dev, SKPAD)) {

View File

@ -27,6 +27,7 @@
#include <pc80/i8259.h> #include <pc80/i8259.h>
#include <arch/io.h> #include <arch/io.h>
#include <arch/ioapic.h> #include <arch/ioapic.h>
#include <arch/acpi.h>
#include <cpu/cpu.h> #include <cpu/cpu.h>
#include "i82801gx.h" #include "i82801gx.h"
#include <cpu/x86/smm.h> #include <cpu/x86/smm.h>
@ -170,8 +171,6 @@ static void i82801gx_gpi_routing(device_t dev)
pci_write_config32(dev, 0xb8, reg32); pci_write_config32(dev, 0xb8, reg32);
} }
extern u8 acpi_slp_type;
static void i82801gx_power_options(device_t dev) static void i82801gx_power_options(device_t dev)
{ {
u8 reg8; u8 reg8;

View File

@ -32,6 +32,7 @@
#include <pc80/keyboard.h> #include <pc80/keyboard.h>
#include <pc80/i8259.h> #include <pc80/i8259.h>
#include <stdlib.h> #include <stdlib.h>
#include <arch/acpi.h>
#include "vt8237r.h" #include "vt8237r.h"
#include "chip.h" #include "chip.h"
@ -147,9 +148,6 @@ static void pci_routing_fixup(struct device *dev)
* This avoids having to handle any System Management Interrupts (SMIs). * This avoids having to handle any System Management Interrupts (SMIs).
*/ */
extern u8 acpi_slp_type;
static void setup_pm(device_t dev) static void setup_pm(device_t dev)
{ {
u16 tmp; u16 tmp;