aboutsummaryrefslogtreecommitdiffstats
path: root/include/acpi/platform/aclinux.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/acpi/platform/aclinux.h')
-rw-r--r--include/acpi/platform/aclinux.h36
1 files changed, 34 insertions, 2 deletions
diff --git a/include/acpi/platform/aclinux.h b/include/acpi/platform/aclinux.h
index 93c55ed7c53d..4c2f9e78001c 100644
--- a/include/acpi/platform/aclinux.h
+++ b/include/acpi/platform/aclinux.h
@@ -73,6 +73,37 @@
73#endif 73#endif
74#include <asm/acpi.h> 74#include <asm/acpi.h>
75 75
76#ifndef CONFIG_ACPI
77
78/* External globals for __KERNEL__, stubs is needed */
79
80#define ACPI_GLOBAL(t,a)
81#define ACPI_INIT_GLOBAL(t,a,b)
82
83/* Generating stubs for configurable ACPICA macros */
84
85#define ACPI_NO_MEM_ALLOCATIONS
86
87/* Generating stubs for configurable ACPICA functions */
88
89#define ACPI_NO_ERROR_MESSAGES
90#undef ACPI_DEBUG_OUTPUT
91
92/* External interface for __KERNEL__, stub is needed */
93
94#define ACPI_EXTERNAL_RETURN_STATUS(prototype) \
95 static ACPI_INLINE prototype {return(AE_NOT_CONFIGURED);}
96#define ACPI_EXTERNAL_RETURN_OK(prototype) \
97 static ACPI_INLINE prototype {return(AE_OK);}
98#define ACPI_EXTERNAL_RETURN_VOID(prototype) \
99 static ACPI_INLINE prototype {return;}
100#define ACPI_EXTERNAL_RETURN_UINT32(prototype) \
101 static ACPI_INLINE prototype {return(0);}
102#define ACPI_EXTERNAL_RETURN_PTR(prototype) \
103 static ACPI_INLINE prototype {return(NULL);}
104
105#endif /* CONFIG_ACPI */
106
76/* Host-dependent types and defines for in-kernel ACPICA */ 107/* Host-dependent types and defines for in-kernel ACPICA */
77 108
78#define ACPI_MACHINE_WIDTH BITS_PER_LONG 109#define ACPI_MACHINE_WIDTH BITS_PER_LONG
@@ -91,7 +122,7 @@
91#include <ctype.h> 122#include <ctype.h>
92#include <unistd.h> 123#include <unistd.h>
93 124
94/* Disable kernel specific declarators */ 125/* Define/disable kernel-specific declarators */
95 126
96#ifndef __init 127#ifndef __init
97#define __init 128#define __init
@@ -106,7 +137,8 @@
106#define ACPI_FLUSH_CPU_CACHE() 137#define ACPI_FLUSH_CPU_CACHE()
107#define ACPI_CAST_PTHREAD_T(pthread) ((acpi_thread_id) (pthread)) 138#define ACPI_CAST_PTHREAD_T(pthread) ((acpi_thread_id) (pthread))
108 139
109#if defined(__ia64__) || defined(__x86_64__) || defined(__aarch64__) 140#if defined(__ia64__) || defined(__x86_64__) ||\
141 defined(__aarch64__) || defined(__PPC64__)
110#define ACPI_MACHINE_WIDTH 64 142#define ACPI_MACHINE_WIDTH 64
111#define COMPILER_DEPENDENT_INT64 long 143#define COMPILER_DEPENDENT_INT64 long
112#define COMPILER_DEPENDENT_UINT64 unsigned long 144#define COMPILER_DEPENDENT_UINT64 unsigned long