ACPICA: Use uintptr_t and offsetof() in Linux kernel builds
[sfrench/cifs-2.6.git] / include / acpi / platform / aclinux.h
index b3ffb9bbf664ba6c25acec4430a272896b9f7c67..cec41e004ecf70c00fe749f57b9175c67276e62f 100644 (file)
 #define acpi_raw_spinlock                   raw_spinlock_t *
 #define acpi_cpu_flags                      unsigned long
 
+#define acpi_uintptr_t                      uintptr_t
+
+#define ACPI_TO_INTEGER(p)                  ((uintptr_t)(p))
+#define ACPI_OFFSET(d, f)                   offsetof(d, f)
+
 /* Use native linux version of acpi_os_allocate_zeroed */
 
 #define USE_NATIVE_ALLOCATE_ZEROED