patch-2.4.22 linux-2.4.22/drivers/char/ipmi/ipmi_kcs_intf.c
Next file: linux-2.4.22/drivers/char/ite_gpio.c
Previous file: linux-2.4.22/drivers/char/ip27-rtc.c
Back to the patch index
Back to the overall index
- Lines: 48
- Date:
2003-08-25 04:44:41.000000000 -0700
- Orig file:
linux-2.4.21/drivers/char/ipmi/ipmi_kcs_intf.c
- Orig date:
2003-06-13 07:51:33.000000000 -0700
diff -urN linux-2.4.21/drivers/char/ipmi/ipmi_kcs_intf.c linux-2.4.22/drivers/char/ipmi/ipmi_kcs_intf.c
@@ -1025,16 +1025,16 @@
return rv;
}
-#ifdef CONFIG_ACPI
+#ifdef CONFIG_ACPI_INTERPRETER
/* Retrieve the base physical address from ACPI tables. Originally
from Hewlett-Packard simple bmc.c, a GPL KCS driver. */
#include <linux/acpi.h>
/* A real hack, but everything's not there yet in 2.4. */
-#define COMPILER_DEPENDENT_UINT64 unsigned long
-#include <../drivers/acpi/include/acpi.h>
-#include <../drivers/acpi/include/actypes.h>
+#include <acpi/acpi.h>
+#include <acpi/actypes.h>
+#include <acpi/actbl.h>
struct SPMITable {
s8 Signature[4];
@@ -1059,7 +1059,7 @@
static unsigned long acpi_find_bmc(void)
{
acpi_status status;
- acpi_table_header *spmi;
+ struct acpi_table_header *spmi;
static unsigned long io_base = 0;
if (io_base != 0)
@@ -1085,7 +1085,7 @@
int rv = 0;
int pos = 0;
int i = 0;
-#ifdef CONFIG_ACPI
+#ifdef CONFIG_ACPI_INTERPRETER
unsigned long physaddr = 0;
#endif
@@ -1115,7 +1115,7 @@
(because they weren't already specified above). */
if (kcs_trydefaults) {
-#ifdef CONFIG_ACPI
+#ifdef CONFIG_ACPI_INTERPRETER
if ((physaddr = acpi_find_bmc())) {
if (!check_mem_region(physaddr, 2)) {
rv = init_one_kcs(0,
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)