|
@@ -73,6 +73,37 @@
|
|
|
#endif
|
|
|
#include <asm/acpi.h>
|
|
|
|
|
|
+#ifndef CONFIG_ACPI
|
|
|
+
|
|
|
+/* External globals for __KERNEL__, stubs is needed */
|
|
|
+
|
|
|
+#define ACPI_GLOBAL(t,a)
|
|
|
+#define ACPI_INIT_GLOBAL(t,a,b)
|
|
|
+
|
|
|
+/* Generating stubs for configurable ACPICA macros */
|
|
|
+
|
|
|
+#define ACPI_NO_MEM_ALLOCATIONS
|
|
|
+
|
|
|
+/* Generating stubs for configurable ACPICA functions */
|
|
|
+
|
|
|
+#define ACPI_NO_ERROR_MESSAGES
|
|
|
+#undef ACPI_DEBUG_OUTPUT
|
|
|
+
|
|
|
+/* External interface for __KERNEL__, stub is needed */
|
|
|
+
|
|
|
+#define ACPI_EXTERNAL_RETURN_STATUS(prototype) \
|
|
|
+ static ACPI_INLINE prototype {return(AE_NOT_CONFIGURED);}
|
|
|
+#define ACPI_EXTERNAL_RETURN_OK(prototype) \
|
|
|
+ static ACPI_INLINE prototype {return(AE_OK);}
|
|
|
+#define ACPI_EXTERNAL_RETURN_VOID(prototype) \
|
|
|
+ static ACPI_INLINE prototype {return;}
|
|
|
+#define ACPI_EXTERNAL_RETURN_UINT32(prototype) \
|
|
|
+ static ACPI_INLINE prototype {return(0);}
|
|
|
+#define ACPI_EXTERNAL_RETURN_PTR(prototype) \
|
|
|
+ static ACPI_INLINE prototype {return(NULL);}
|
|
|
+
|
|
|
+#endif /* CONFIG_ACPI */
|
|
|
+
|
|
|
/* Host-dependent types and defines for in-kernel ACPICA */
|
|
|
|
|
|
#define ACPI_MACHINE_WIDTH BITS_PER_LONG
|