]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/linux/acpi.h
printk: when dumping regs, show the stack, not thread_info
[karo-tx-linux.git] / include / linux / acpi.h
index db680e8788c4aee2a1ee6f2519dd95f81066001e..db7c8bd39a3cb661cf5b7b74417fce997f9f2a20 100644 (file)
@@ -231,12 +231,26 @@ int acpi_table_parse_madt(enum acpi_madt_type id,
 int acpi_parse_mcfg (struct acpi_table_header *header);
 void acpi_table_print_madt_entry (struct acpi_subtable_header *madt);
 
-/* the following four functions are architecture-dependent */
+/* the following numa functions are architecture-dependent */
 void acpi_numa_slit_init (struct acpi_table_slit *slit);
+
+#if defined(CONFIG_X86) || defined(CONFIG_IA64)
 void acpi_numa_processor_affinity_init (struct acpi_srat_cpu_affinity *pa);
+#else
+static inline void
+acpi_numa_processor_affinity_init(struct acpi_srat_cpu_affinity *pa) { }
+#endif
+
 void acpi_numa_x2apic_affinity_init(struct acpi_srat_x2apic_cpu_affinity *pa);
+
+#ifdef CONFIG_ARM64
+void acpi_numa_gicc_affinity_init(struct acpi_srat_gicc_affinity *pa);
+#else
+static inline void
+acpi_numa_gicc_affinity_init(struct acpi_srat_gicc_affinity *pa) { }
+#endif
+
 int acpi_numa_memory_affinity_init (struct acpi_srat_mem_affinity *ma);
-void acpi_numa_arch_fixup(void);
 
 #ifndef PHYS_CPUID_INVALID
 typedef u32 phys_cpuid_t;
@@ -443,8 +457,12 @@ acpi_status acpi_run_osc(acpi_handle handle, struct acpi_osc_context *context);
 #define OSC_SB_HOTPLUG_OST_SUPPORT             0x00000008
 #define OSC_SB_APEI_SUPPORT                    0x00000010
 #define OSC_SB_CPC_SUPPORT                     0x00000020
+#define OSC_SB_CPCV2_SUPPORT                   0x00000040
+#define OSC_SB_PCLPI_SUPPORT                   0x00000080
+#define OSC_SB_OSLPI_SUPPORT                   0x00000100
 
 extern bool osc_sb_apei_support_acked;
+extern bool osc_pc_lpi_support_confirmed;
 
 /* PCI Host Bridge _OSC: Capabilities DWORD 2: Support Field */
 #define OSC_PCI_EXT_CONFIG_SUPPORT             0x00000001
@@ -541,6 +559,14 @@ static inline void acpi_device_clear_enumerated(struct acpi_device *adev)
        adev->flags.visited = false;
 }
 
+enum acpi_reconfig_event  {
+       ACPI_RECONFIG_DEVICE_ADD = 0,
+       ACPI_RECONFIG_DEVICE_REMOVE,
+};
+
+int acpi_reconfig_notifier_register(struct notifier_block *nb);
+int acpi_reconfig_notifier_unregister(struct notifier_block *nb);
+
 #else  /* !CONFIG_ACPI */
 
 #define acpi_disabled 1
@@ -552,6 +578,11 @@ static inline void acpi_device_clear_enumerated(struct acpi_device *adev)
 
 struct fwnode_handle;
 
+static inline bool acpi_dev_found(const char *hid)
+{
+       return false;
+}
+
 static inline bool is_acpi_node(struct fwnode_handle *fwnode)
 {
        return false;
@@ -662,6 +693,14 @@ static inline bool acpi_driver_match_device(struct device *dev,
        return false;
 }
 
+static inline union acpi_object *acpi_evaluate_dsm(acpi_handle handle,
+                                                  const u8 *uuid,
+                                                  int rev, int func,
+                                                  union acpi_object *argv4)
+{
+       return NULL;
+}
+
 static inline int acpi_device_uevent_modalias(struct device *dev,
                                struct kobj_uevent_env *env)
 {
@@ -694,6 +733,16 @@ static inline void acpi_device_clear_enumerated(struct acpi_device *adev)
 {
 }
 
+static inline int acpi_reconfig_notifier_register(struct notifier_block *nb)
+{
+       return -EINVAL;
+}
+
+static inline int acpi_reconfig_notifier_unregister(struct notifier_block *nb)
+{
+       return -EINVAL;
+}
+
 #endif /* !CONFIG_ACPI */
 
 #ifdef CONFIG_ACPI