aboutsummaryrefslogtreecommitdiff
path: root/source/include/platform
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2014-04-25 16:53:42 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2014-04-25 16:53:42 +0000
commit6b8f78e0a6a7880856440b372097482adb326592 (patch)
tree643f58d38011b3076bfc6a234d83f22c69487b8c /source/include/platform
parent7c6f304a2eb855cf2d71ca0638d4f3c72f436fcd (diff)
downloadsrc-6b8f78e0a6a7880856440b372097482adb326592.tar.gz
src-6b8f78e0a6a7880856440b372097482adb326592.zip
Import ACPICA 20140424.vendor/acpica/20140424
Notes
Notes: svn path=/vendor-sys/acpica/dist/; revision=264919 svn path=/vendor-sys/acpica/20140424/; revision=264920; tag=vendor/acpica/20140424
Diffstat (limited to 'source/include/platform')
-rw-r--r--source/include/platform/aclinux.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/source/include/platform/aclinux.h b/source/include/platform/aclinux.h
index 994c9415a42d..a57f7f00db32 100644
--- a/source/include/platform/aclinux.h
+++ b/source/include/platform/aclinux.h
@@ -53,6 +53,8 @@
#ifdef __KERNEL__
+#define ACPI_USE_SYSTEM_INTTYPES
+
#include <linux/string.h>
#include <linux/kernel.h>
#include <linux/ctype.h>
@@ -66,6 +68,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