summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/acpi/acexcep.h7
-rw-r--r--include/acpi/acnames.h2
-rw-r--r--include/acpi/acoutput.h6
-rw-r--r--include/acpi/acpi.h2
-rw-r--r--include/acpi/acpi_bus.h12
-rw-r--r--include/acpi/acpiosxf.h4
-rw-r--r--include/acpi/acpixf.h25
-rw-r--r--include/acpi/acrestyp.h6
-rw-r--r--include/acpi/actbl.h10
-rw-r--r--include/acpi/actbl1.h10
-rw-r--r--include/acpi/actbl2.h10
-rw-r--r--include/acpi/actbl3.h2
-rw-r--r--include/acpi/actypes.h13
-rw-r--r--include/acpi/platform/acenv.h2
-rw-r--r--include/acpi/platform/acgcc.h2
-rw-r--r--include/acpi/platform/aclinux.h2
-rw-r--r--include/linux/acpi.h40
-rw-r--r--include/linux/cpuidle.h11
-rw-r--r--include/linux/platform_data/spear_thermal.h26
19 files changed, 124 insertions, 68 deletions
diff --git a/include/acpi/acexcep.h b/include/acpi/acexcep.h
index 92d6e1d701ff..19503449814f 100644
--- a/include/acpi/acexcep.h
+++ b/include/acpi/acexcep.h
@@ -5,7 +5,7 @@
5 *****************************************************************************/ 5 *****************************************************************************/
6 6
7/* 7/*
8 * Copyright (C) 2000 - 2011, Intel Corp. 8 * Copyright (C) 2000 - 2012, Intel Corp.
9 * All rights reserved. 9 * All rights reserved.
10 * 10 *
11 * Redistribution and use in source and binary forms, with or without 11 * Redistribution and use in source and binary forms, with or without
@@ -52,6 +52,7 @@
52#define AE_CODE_ACPI_TABLES 0x2000 52#define AE_CODE_ACPI_TABLES 0x2000
53#define AE_CODE_AML 0x3000 53#define AE_CODE_AML 0x3000
54#define AE_CODE_CONTROL 0x4000 54#define AE_CODE_CONTROL 0x4000
55#define AE_CODE_MAX 0x4000
55#define AE_CODE_MASK 0xF000 56#define AE_CODE_MASK 0xF000
56 57
57#define ACPI_SUCCESS(a) (!(a)) 58#define ACPI_SUCCESS(a) (!(a))
@@ -181,7 +182,7 @@
181 182
182/* Exception strings for acpi_format_exception */ 183/* Exception strings for acpi_format_exception */
183 184
184#ifdef DEFINE_ACPI_GLOBALS 185#ifdef ACPI_DEFINE_EXCEPTION_TABLE
185 186
186/* 187/*
187 * String versions of the exception codes above 188 * String versions of the exception codes above
@@ -295,6 +296,6 @@ char const *acpi_gbl_exception_names_ctrl[] = {
295 "AE_CTRL_PARSE_PENDING" 296 "AE_CTRL_PARSE_PENDING"
296}; 297};
297 298
298#endif /* ACPI GLOBALS */ 299#endif /* EXCEPTION_TABLE */
299 300
300#endif /* __ACEXCEP_H__ */ 301#endif /* __ACEXCEP_H__ */
diff --git a/include/acpi/acnames.h b/include/acpi/acnames.h
index 38f508816e4a..ef24d82c4a41 100644
--- a/include/acpi/acnames.h
+++ b/include/acpi/acnames.h
@@ -5,7 +5,7 @@
5 *****************************************************************************/ 5 *****************************************************************************/
6 6
7/* 7/*
8 * Copyright (C) 2000 - 2011, Intel Corp. 8 * Copyright (C) 2000 - 2012, Intel Corp.
9 * All rights reserved. 9 * All rights reserved.
10 * 10 *
11 * Redistribution and use in source and binary forms, with or without 11 * Redistribution and use in source and binary forms, with or without
diff --git a/include/acpi/acoutput.h b/include/acpi/acoutput.h
index d7bd661bfae7..2457ac849655 100644
--- a/include/acpi/acoutput.h
+++ b/include/acpi/acoutput.h
@@ -5,7 +5,7 @@
5 *****************************************************************************/ 5 *****************************************************************************/
6 6
7/* 7/*
8 * Copyright (C) 2000 - 2011, Intel Corp. 8 * Copyright (C) 2000 - 2012, Intel Corp.
9 * All rights reserved. 9 * All rights reserved.
10 * 10 *
11 * Redistribution and use in source and binary forms, with or without 11 * Redistribution and use in source and binary forms, with or without
@@ -213,6 +213,8 @@
213#define ACPI_WARNING(plist) acpi_warning plist 213#define ACPI_WARNING(plist) acpi_warning plist
214#define ACPI_EXCEPTION(plist) acpi_exception plist 214#define ACPI_EXCEPTION(plist) acpi_exception plist
215#define ACPI_ERROR(plist) acpi_error plist 215#define ACPI_ERROR(plist) acpi_error plist
216#define ACPI_BIOS_WARNING(plist) acpi_bios_warning plist
217#define ACPI_BIOS_ERROR(plist) acpi_bios_error plist
216#define ACPI_DEBUG_OBJECT(obj,l,i) acpi_ex_do_debug_object(obj,l,i) 218#define ACPI_DEBUG_OBJECT(obj,l,i) acpi_ex_do_debug_object(obj,l,i)
217 219
218#else 220#else
@@ -223,6 +225,8 @@
223#define ACPI_WARNING(plist) 225#define ACPI_WARNING(plist)
224#define ACPI_EXCEPTION(plist) 226#define ACPI_EXCEPTION(plist)
225#define ACPI_ERROR(plist) 227#define ACPI_ERROR(plist)
228#define ACPI_BIOS_WARNING(plist)
229#define ACPI_BIOS_ERROR(plist)
226#define ACPI_DEBUG_OBJECT(obj,l,i) 230#define ACPI_DEBUG_OBJECT(obj,l,i)
227 231
228#endif /* ACPI_NO_ERROR_MESSAGES */ 232#endif /* ACPI_NO_ERROR_MESSAGES */
diff --git a/include/acpi/acpi.h b/include/acpi/acpi.h
index de39915f6b7f..c433d5e27679 100644
--- a/include/acpi/acpi.h
+++ b/include/acpi/acpi.h
@@ -5,7 +5,7 @@
5 *****************************************************************************/ 5 *****************************************************************************/
6 6
7/* 7/*
8 * Copyright (C) 2000 - 2011, Intel Corp. 8 * Copyright (C) 2000 - 2012, Intel Corp.
9 * All rights reserved. 9 * All rights reserved.
10 * 10 *
11 * Redistribution and use in source and binary forms, with or without 11 * Redistribution and use in source and binary forms, with or without
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h
index 9e6e1c6eb60a..b22b77444b5c 100644
--- a/include/acpi/acpi_bus.h
+++ b/include/acpi/acpi_bus.h
@@ -50,6 +50,9 @@ acpi_evaluate_reference(acpi_handle handle,
50 acpi_string pathname, 50 acpi_string pathname,
51 struct acpi_object_list *arguments, 51 struct acpi_object_list *arguments,
52 struct acpi_handle_list *list); 52 struct acpi_handle_list *list);
53acpi_status
54acpi_evaluate_hotplug_ost(acpi_handle handle, u32 source_event,
55 u32 status_code, struct acpi_buffer *status_buf);
53 56
54struct acpi_pld { 57struct acpi_pld {
55 unsigned int revision:7; /* 0 */ 58 unsigned int revision:7; /* 0 */
@@ -179,7 +182,8 @@ struct acpi_device_flags {
179 u32 suprise_removal_ok:1; 182 u32 suprise_removal_ok:1;
180 u32 power_manageable:1; 183 u32 power_manageable:1;
181 u32 performance_manageable:1; 184 u32 performance_manageable:1;
182 u32 reserved:24; 185 u32 eject_pending:1;
186 u32 reserved:23;
183}; 187};
184 188
185/* File System */ 189/* File System */
@@ -331,6 +335,11 @@ struct acpi_bus_event {
331 u32 data; 335 u32 data;
332}; 336};
333 337
338struct acpi_eject_event {
339 acpi_handle handle;
340 u32 event;
341};
342
334extern struct kobject *acpi_kobj; 343extern struct kobject *acpi_kobj;
335extern int acpi_bus_generate_netlink_event(const char*, const char*, u8, int); 344extern int acpi_bus_generate_netlink_event(const char*, const char*, u8, int);
336void acpi_bus_private_data_handler(acpi_handle, void *); 345void acpi_bus_private_data_handler(acpi_handle, void *);
@@ -368,6 +377,7 @@ int acpi_bus_register_driver(struct acpi_driver *driver);
368void acpi_bus_unregister_driver(struct acpi_driver *driver); 377void acpi_bus_unregister_driver(struct acpi_driver *driver);
369int acpi_bus_add(struct acpi_device **child, struct acpi_device *parent, 378int acpi_bus_add(struct acpi_device **child, struct acpi_device *parent,
370 acpi_handle handle, int type); 379 acpi_handle handle, int type);
380void acpi_bus_hot_remove_device(void *context);
371int acpi_bus_trim(struct acpi_device *start, int rmdevice); 381int acpi_bus_trim(struct acpi_device *start, int rmdevice);
372int acpi_bus_start(struct acpi_device *device); 382int acpi_bus_start(struct acpi_device *device);
373acpi_status acpi_bus_get_ejd(acpi_handle handle, acpi_handle * ejd); 383acpi_status acpi_bus_get_ejd(acpi_handle handle, acpi_handle * ejd);
diff --git a/include/acpi/acpiosxf.h b/include/acpi/acpiosxf.h
index 21a5548c6686..0650f5fa7ce9 100644
--- a/include/acpi/acpiosxf.h
+++ b/include/acpi/acpiosxf.h
@@ -8,7 +8,7 @@
8 *****************************************************************************/ 8 *****************************************************************************/
9 9
10/* 10/*
11 * Copyright (C) 2000 - 2011, Intel Corp. 11 * Copyright (C) 2000 - 2012, Intel Corp.
12 * All rights reserved. 12 * All rights reserved.
13 * 13 *
14 * Redistribution and use in source and binary forms, with or without 14 * Redistribution and use in source and binary forms, with or without
@@ -205,7 +205,7 @@ acpi_os_execute(acpi_execute_type type,
205acpi_status 205acpi_status
206acpi_os_hotplug_execute(acpi_osd_exec_callback function, void *context); 206acpi_os_hotplug_execute(acpi_osd_exec_callback function, void *context);
207 207
208void acpi_os_wait_events_complete(void *context); 208void acpi_os_wait_events_complete(void);
209 209
210void acpi_os_sleep(u64 milliseconds); 210void acpi_os_sleep(u64 milliseconds);
211 211
diff --git a/include/acpi/acpixf.h b/include/acpi/acpixf.h
index 982110134672..2c744c7a5b3d 100644
--- a/include/acpi/acpixf.h
+++ b/include/acpi/acpixf.h
@@ -6,7 +6,7 @@
6 *****************************************************************************/ 6 *****************************************************************************/
7 7
8/* 8/*
9 * Copyright (C) 2000 - 2011, Intel Corp. 9 * Copyright (C) 2000 - 2012, Intel Corp.
10 * All rights reserved. 10 * All rights reserved.
11 * 11 *
12 * Redistribution and use in source and binary forms, with or without 12 * Redistribution and use in source and binary forms, with or without
@@ -47,7 +47,7 @@
47 47
48/* Current ACPICA subsystem version in YYYYMMDD format */ 48/* Current ACPICA subsystem version in YYYYMMDD format */
49 49
50#define ACPI_CA_VERSION 0x20120320 50#define ACPI_CA_VERSION 0x20120711
51 51
52#include "acconfig.h" 52#include "acconfig.h"
53#include "actypes.h" 53#include "actypes.h"
@@ -154,15 +154,20 @@ void *acpi_callocate(u32 size);
154void acpi_free(void *address); 154void acpi_free(void *address);
155 155
156/* 156/*
157 * ACPI table manipulation interfaces 157 * ACPI table load/unload interfaces
158 */ 158 */
159acpi_status acpi_reallocate_root_table(void); 159acpi_status acpi_load_table(struct acpi_table_header *table);
160 160
161acpi_status acpi_find_root_pointer(acpi_size *rsdp_address); 161acpi_status acpi_unload_parent_table(acpi_handle object);
162 162
163acpi_status acpi_load_tables(void); 163acpi_status acpi_load_tables(void);
164 164
165acpi_status acpi_load_table(struct acpi_table_header *table_ptr); 165/*
166 * ACPI table manipulation interfaces
167 */
168acpi_status acpi_reallocate_root_table(void);
169
170acpi_status acpi_find_root_pointer(acpi_size *rsdp_address);
166 171
167acpi_status acpi_unload_table_id(acpi_owner_id id); 172acpi_status acpi_unload_table_id(acpi_owner_id id);
168 173
@@ -529,6 +534,14 @@ void ACPI_INTERNAL_VAR_XFACE
529acpi_info(const char *module_name, 534acpi_info(const char *module_name,
530 u32 line_number, const char *format, ...) ACPI_PRINTF_LIKE(3); 535 u32 line_number, const char *format, ...) ACPI_PRINTF_LIKE(3);
531 536
537void ACPI_INTERNAL_VAR_XFACE
538acpi_bios_error(const char *module_name,
539 u32 line_number, const char *format, ...) ACPI_PRINTF_LIKE(3);
540
541void ACPI_INTERNAL_VAR_XFACE
542acpi_bios_warning(const char *module_name,
543 u32 line_number, const char *format, ...) ACPI_PRINTF_LIKE(3);
544
532/* 545/*
533 * Debug output 546 * Debug output
534 */ 547 */
diff --git a/include/acpi/acrestyp.h b/include/acpi/acrestyp.h
index 3506e39a66b1..40349ae65464 100644
--- a/include/acpi/acrestyp.h
+++ b/include/acpi/acrestyp.h
@@ -5,7 +5,7 @@
5 *****************************************************************************/ 5 *****************************************************************************/
6 6
7/* 7/*
8 * Copyright (C) 2000 - 2011, Intel Corp. 8 * Copyright (C) 2000 - 2012, Intel Corp.
9 * All rights reserved. 9 * All rights reserved.
10 * 10 *
11 * Redistribution and use in source and binary forms, with or without 11 * Redistribution and use in source and binary forms, with or without
@@ -48,7 +48,7 @@
48 * Definitions for Resource Attributes 48 * Definitions for Resource Attributes
49 */ 49 */
50typedef u16 acpi_rs_length; /* Resource Length field is fixed at 16 bits */ 50typedef u16 acpi_rs_length; /* Resource Length field is fixed at 16 bits */
51typedef u32 acpi_rsdesc_size; /* Max Resource Descriptor size is (Length+3) = (64_k-1)+3 */ 51typedef u32 acpi_rsdesc_size; /* Max Resource Descriptor size is (Length+3) = (64K-1)+3 */
52 52
53/* 53/*
54 * Memory Attributes 54 * Memory Attributes
@@ -332,7 +332,7 @@ struct acpi_resource_address64 {
332}; 332};
333 333
334struct acpi_resource_extended_address64 { 334struct acpi_resource_extended_address64 {
335 ACPI_RESOURCE_ADDRESS_COMMON u8 revision_iD; 335 ACPI_RESOURCE_ADDRESS_COMMON u8 revision_ID;
336 u64 granularity; 336 u64 granularity;
337 u64 minimum; 337 u64 minimum;
338 u64 maximum; 338 u64 maximum;
diff --git a/include/acpi/actbl.h b/include/acpi/actbl.h
index 8dea54665dcf..59a73e1b2845 100644
--- a/include/acpi/actbl.h
+++ b/include/acpi/actbl.h
@@ -5,7 +5,7 @@
5 *****************************************************************************/ 5 *****************************************************************************/
6 6
7/* 7/*
8 * Copyright (C) 2000 - 2011, Intel Corp. 8 * Copyright (C) 2000 - 2012, Intel Corp.
9 * All rights reserved. 9 * All rights reserved.
10 * 10 *
11 * Redistribution and use in source and binary forms, with or without 11 * Redistribution and use in source and binary forms, with or without
@@ -212,7 +212,7 @@ struct acpi_table_fadt {
212 u32 smi_command; /* 32-bit Port address of SMI command port */ 212 u32 smi_command; /* 32-bit Port address of SMI command port */
213 u8 acpi_enable; /* Value to write to smi_cmd to enable ACPI */ 213 u8 acpi_enable; /* Value to write to smi_cmd to enable ACPI */
214 u8 acpi_disable; /* Value to write to smi_cmd to disable ACPI */ 214 u8 acpi_disable; /* Value to write to smi_cmd to disable ACPI */
215 u8 S4bios_request; /* Value to write to SMI CMD to enter S4BIOS state */ 215 u8 s4_bios_request; /* Value to write to SMI CMD to enter S4BIOS state */
216 u8 pstate_control; /* Processor performance state control */ 216 u8 pstate_control; /* Processor performance state control */
217 u32 pm1a_event_block; /* 32-bit Port address of Power Mgt 1a Event Reg Blk */ 217 u32 pm1a_event_block; /* 32-bit Port address of Power Mgt 1a Event Reg Blk */
218 u32 pm1b_event_block; /* 32-bit Port address of Power Mgt 1b Event Reg Blk */ 218 u32 pm1b_event_block; /* 32-bit Port address of Power Mgt 1b Event Reg Blk */
@@ -230,8 +230,8 @@ struct acpi_table_fadt {
230 u8 gpe1_block_length; /* Byte Length of ports at gpe1_block */ 230 u8 gpe1_block_length; /* Byte Length of ports at gpe1_block */
231 u8 gpe1_base; /* Offset in GPE number space where GPE1 events start */ 231 u8 gpe1_base; /* Offset in GPE number space where GPE1 events start */
232 u8 cst_control; /* Support for the _CST object and C States change notification */ 232 u8 cst_control; /* Support for the _CST object and C States change notification */
233 u16 C2latency; /* Worst case HW latency to enter/exit C2 state */ 233 u16 c2_latency; /* Worst case HW latency to enter/exit C2 state */
234 u16 C3latency; /* Worst case HW latency to enter/exit C3 state */ 234 u16 c3_latency; /* Worst case HW latency to enter/exit C3 state */
235 u16 flush_size; /* Processor's memory cache line width, in bytes */ 235 u16 flush_size; /* Processor's memory cache line width, in bytes */
236 u16 flush_stride; /* Number of flush strides that need to be read */ 236 u16 flush_stride; /* Number of flush strides that need to be read */
237 u8 duty_offset; /* Processor duty cycle index in processor's P_CNT reg */ 237 u8 duty_offset; /* Processor duty cycle index in processor's P_CNT reg */
@@ -291,7 +291,7 @@ struct acpi_table_fadt {
291#define ACPI_FADT_S4_RTC_VALID (1<<16) /* 16: [V4] Contents of RTC_STS valid after S4 wake (ACPI 3.0) */ 291#define ACPI_FADT_S4_RTC_VALID (1<<16) /* 16: [V4] Contents of RTC_STS valid after S4 wake (ACPI 3.0) */
292#define ACPI_FADT_REMOTE_POWER_ON (1<<17) /* 17: [V4] System is compatible with remote power on (ACPI 3.0) */ 292#define ACPI_FADT_REMOTE_POWER_ON (1<<17) /* 17: [V4] System is compatible with remote power on (ACPI 3.0) */
293#define ACPI_FADT_APIC_CLUSTER (1<<18) /* 18: [V4] All local APICs must use cluster model (ACPI 3.0) */ 293#define ACPI_FADT_APIC_CLUSTER (1<<18) /* 18: [V4] All local APICs must use cluster model (ACPI 3.0) */
294#define ACPI_FADT_APIC_PHYSICAL (1<<19) /* 19: [V4] All local x_aPICs must use physical dest mode (ACPI 3.0) */ 294#define ACPI_FADT_APIC_PHYSICAL (1<<19) /* 19: [V4] All local xAPICs must use physical dest mode (ACPI 3.0) */
295#define ACPI_FADT_HW_REDUCED (1<<20) /* 20: [V5] ACPI hardware is not implemented (ACPI 5.0) */ 295#define ACPI_FADT_HW_REDUCED (1<<20) /* 20: [V5] ACPI hardware is not implemented (ACPI 5.0) */
296#define ACPI_FADT_LOW_POWER_S0 (1<<21) /* 21: [V5] S0 power savings are equal or better than S3 (ACPI 5.0) */ 296#define ACPI_FADT_LOW_POWER_S0 (1<<21) /* 21: [V5] S0 power savings are equal or better than S3 (ACPI 5.0) */
297 297
diff --git a/include/acpi/actbl1.h b/include/acpi/actbl1.h
index 71e747beac8f..300d14e7c5d5 100644
--- a/include/acpi/actbl1.h
+++ b/include/acpi/actbl1.h
@@ -5,7 +5,7 @@
5 *****************************************************************************/ 5 *****************************************************************************/
6 6
7/* 7/*
8 * Copyright (C) 2000 - 2011, Intel Corp. 8 * Copyright (C) 2000 - 2012, Intel Corp.
9 * All rights reserved. 9 * All rights reserved.
10 * 10 *
11 * Redistribution and use in source and binary forms, with or without 11 * Redistribution and use in source and binary forms, with or without
@@ -676,7 +676,7 @@ struct acpi_madt_local_apic {
676struct acpi_madt_io_apic { 676struct acpi_madt_io_apic {
677 struct acpi_subtable_header header; 677 struct acpi_subtable_header header;
678 u8 id; /* I/O APIC ID */ 678 u8 id; /* I/O APIC ID */
679 u8 reserved; /* Reserved - must be zero */ 679 u8 reserved; /* reserved - must be zero */
680 u32 address; /* APIC physical address */ 680 u32 address; /* APIC physical address */
681 u32 global_irq_base; /* Global system interrupt where INTI lines start */ 681 u32 global_irq_base; /* Global system interrupt where INTI lines start */
682}; 682};
@@ -794,11 +794,11 @@ struct acpi_madt_generic_interrupt {
794 794
795struct acpi_madt_generic_distributor { 795struct acpi_madt_generic_distributor {
796 struct acpi_subtable_header header; 796 struct acpi_subtable_header header;
797 u16 reserved; /* Reserved - must be zero */ 797 u16 reserved; /* reserved - must be zero */
798 u32 gic_id; 798 u32 gic_id;
799 u64 base_address; 799 u64 base_address;
800 u32 global_irq_base; 800 u32 global_irq_base;
801 u32 reserved2; /* Reserved - must be zero */ 801 u32 reserved2; /* reserved - must be zero */
802}; 802};
803 803
804/* 804/*
@@ -841,7 +841,7 @@ struct acpi_table_msct {
841 u64 max_address; /* Max physical address in system */ 841 u64 max_address; /* Max physical address in system */
842}; 842};
843 843
844/* Subtable - Maximum Proximity Domain Information. Version 1 */ 844/* subtable - Maximum Proximity Domain Information. Version 1 */
845 845
846struct acpi_msct_proximity { 846struct acpi_msct_proximity {
847 u8 revision; 847 u8 revision;
diff --git a/include/acpi/actbl2.h b/include/acpi/actbl2.h
index 58bdd0545c5a..d9ceb3d31629 100644
--- a/include/acpi/actbl2.h
+++ b/include/acpi/actbl2.h
@@ -5,7 +5,7 @@
5 *****************************************************************************/ 5 *****************************************************************************/
6 6
7/* 7/*
8 * Copyright (C) 2000 - 2011, Intel Corp. 8 * Copyright (C) 2000 - 2012, Intel Corp.
9 * All rights reserved. 9 * All rights reserved.
10 * 10 *
11 * Redistribution and use in source and binary forms, with or without 11 * Redistribution and use in source and binary forms, with or without
@@ -66,7 +66,7 @@
66#define ACPI_SIG_DBGP "DBGP" /* Debug Port table */ 66#define ACPI_SIG_DBGP "DBGP" /* Debug Port table */
67#define ACPI_SIG_DMAR "DMAR" /* DMA Remapping table */ 67#define ACPI_SIG_DMAR "DMAR" /* DMA Remapping table */
68#define ACPI_SIG_HPET "HPET" /* High Precision Event Timer table */ 68#define ACPI_SIG_HPET "HPET" /* High Precision Event Timer table */
69#define ACPI_SIG_IBFT "IBFT" /* i_sCSI Boot Firmware Table */ 69#define ACPI_SIG_IBFT "IBFT" /* iSCSI Boot Firmware Table */
70#define ACPI_SIG_IVRS "IVRS" /* I/O Virtualization Reporting Structure */ 70#define ACPI_SIG_IVRS "IVRS" /* I/O Virtualization Reporting Structure */
71#define ACPI_SIG_MCFG "MCFG" /* PCI Memory Mapped Configuration table */ 71#define ACPI_SIG_MCFG "MCFG" /* PCI Memory Mapped Configuration table */
72#define ACPI_SIG_MCHI "MCHI" /* Management Controller Host Interface table */ 72#define ACPI_SIG_MCHI "MCHI" /* Management Controller Host Interface table */
@@ -334,8 +334,8 @@ struct acpi_dmar_reserved_memory {
334 struct acpi_dmar_header header; 334 struct acpi_dmar_header header;
335 u16 reserved; 335 u16 reserved;
336 u16 segment; 336 u16 segment;
337 u64 base_address; /* 4_k aligned base address */ 337 u64 base_address; /* 4K aligned base address */
338 u64 end_address; /* 4_k aligned limit address */ 338 u64 end_address; /* 4K aligned limit address */
339}; 339};
340 340
341/* Masks for Flags field above */ 341/* Masks for Flags field above */
@@ -565,7 +565,7 @@ struct acpi_ivrs_hardware {
565/* Masks for Info field above */ 565/* Masks for Info field above */
566 566
567#define ACPI_IVHD_MSI_NUMBER_MASK 0x001F /* 5 bits, MSI message number */ 567#define ACPI_IVHD_MSI_NUMBER_MASK 0x001F /* 5 bits, MSI message number */
568#define ACPI_IVHD_UNIT_ID_MASK 0x1F00 /* 5 bits, unit_iD */ 568#define ACPI_IVHD_UNIT_ID_MASK 0x1F00 /* 5 bits, unit_ID */
569 569
570/* 570/*
571 * Device Entries for IVHD subtable, appear after struct acpi_ivrs_hardware structure. 571 * Device Entries for IVHD subtable, appear after struct acpi_ivrs_hardware structure.
diff --git a/include/acpi/actbl3.h b/include/acpi/actbl3.h
index c22ce80e9535..f65a0ed869eb 100644
--- a/include/acpi/actbl3.h
+++ b/include/acpi/actbl3.h
@@ -5,7 +5,7 @@
5 *****************************************************************************/ 5 *****************************************************************************/
6 6
7/* 7/*
8 * Copyright (C) 2000 - 2011, Intel Corp. 8 * Copyright (C) 2000 - 2012, Intel Corp.
9 * All rights reserved. 9 * All rights reserved.
10 * 10 *
11 * Redistribution and use in source and binary forms, with or without 11 * Redistribution and use in source and binary forms, with or without
diff --git a/include/acpi/actypes.h b/include/acpi/actypes.h
index e8bcc4742e0e..3af87de6a68c 100644
--- a/include/acpi/actypes.h
+++ b/include/acpi/actypes.h
@@ -5,7 +5,7 @@
5 *****************************************************************************/ 5 *****************************************************************************/
6 6
7/* 7/*
8 * Copyright (C) 2000 - 2011, Intel Corp. 8 * Copyright (C) 2000 - 2012, Intel Corp.
9 * All rights reserved. 9 * All rights reserved.
10 * 10 *
11 * Redistribution and use in source and binary forms, with or without 11 * Redistribution and use in source and binary forms, with or without
@@ -173,7 +173,7 @@ typedef u64 acpi_physical_address;
173 * to indicate that special precautions must be taken to avoid alignment faults. 173 * to indicate that special precautions must be taken to avoid alignment faults.
174 * (IA64 or ia64 is currently used by existing compilers to indicate IPF.) 174 * (IA64 or ia64 is currently used by existing compilers to indicate IPF.)
175 * 175 *
176 * Note: Em64_t and other X86-64 processors support misaligned transfers, 176 * Note: EM64T and other X86-64 processors support misaligned transfers,
177 * so there is no need to define this flag. 177 * so there is no need to define this flag.
178 */ 178 */
179#if defined (__IA64__) || defined (__ia64__) 179#if defined (__IA64__) || defined (__ia64__)
@@ -636,7 +636,7 @@ typedef u32 acpi_event_type;
636#define ACPI_NUM_FIXED_EVENTS ACPI_EVENT_MAX + 1 636#define ACPI_NUM_FIXED_EVENTS ACPI_EVENT_MAX + 1
637 637
638/* 638/*
639 * Event Status - Per event 639 * Event status - Per event
640 * ------------- 640 * -------------
641 * The encoding of acpi_event_status is illustrated below. 641 * The encoding of acpi_event_status is illustrated below.
642 * Note that a set bit (1) indicates the property is TRUE 642 * Note that a set bit (1) indicates the property is TRUE
@@ -706,10 +706,14 @@ typedef u32 acpi_event_status;
706#define ACPI_DEVICE_NOTIFY 0x2 706#define ACPI_DEVICE_NOTIFY 0x2
707#define ACPI_ALL_NOTIFY (ACPI_SYSTEM_NOTIFY | ACPI_DEVICE_NOTIFY) 707#define ACPI_ALL_NOTIFY (ACPI_SYSTEM_NOTIFY | ACPI_DEVICE_NOTIFY)
708#define ACPI_MAX_NOTIFY_HANDLER_TYPE 0x3 708#define ACPI_MAX_NOTIFY_HANDLER_TYPE 0x3
709#define ACPI_NUM_NOTIFY_TYPES 2
709 710
710#define ACPI_MAX_SYS_NOTIFY 0x7F 711#define ACPI_MAX_SYS_NOTIFY 0x7F
711#define ACPI_MAX_DEVICE_SPECIFIC_NOTIFY 0xBF 712#define ACPI_MAX_DEVICE_SPECIFIC_NOTIFY 0xBF
712 713
714#define ACPI_SYSTEM_HANDLER_LIST 0 /* Used as index, must be SYSTEM_NOTIFY -1 */
715#define ACPI_DEVICE_HANDLER_LIST 1 /* Used as index, must be DEVICE_NOTIFY -1 */
716
713/* Address Space (Operation Region) Types */ 717/* Address Space (Operation Region) Types */
714 718
715typedef u8 acpi_adr_space_type; 719typedef u8 acpi_adr_space_type;
@@ -724,8 +728,9 @@ typedef u8 acpi_adr_space_type;
724#define ACPI_ADR_SPACE_IPMI (acpi_adr_space_type) 7 728#define ACPI_ADR_SPACE_IPMI (acpi_adr_space_type) 7
725#define ACPI_ADR_SPACE_GPIO (acpi_adr_space_type) 8 729#define ACPI_ADR_SPACE_GPIO (acpi_adr_space_type) 8
726#define ACPI_ADR_SPACE_GSBUS (acpi_adr_space_type) 9 730#define ACPI_ADR_SPACE_GSBUS (acpi_adr_space_type) 9
731#define ACPI_ADR_SPACE_PLATFORM_COMM (acpi_adr_space_type) 10
727 732
728#define ACPI_NUM_PREDEFINED_REGIONS 10 733#define ACPI_NUM_PREDEFINED_REGIONS 11
729 734
730/* 735/*
731 * Special Address Spaces 736 * Special Address Spaces
diff --git a/include/acpi/platform/acenv.h b/include/acpi/platform/acenv.h
index 5af3ed52ef98..560a9f272f34 100644
--- a/include/acpi/platform/acenv.h
+++ b/include/acpi/platform/acenv.h
@@ -5,7 +5,7 @@
5 *****************************************************************************/ 5 *****************************************************************************/
6 6
7/* 7/*
8 * Copyright (C) 2000 - 2011, Intel Corp. 8 * Copyright (C) 2000 - 2012, Intel Corp.
9 * All rights reserved. 9 * All rights reserved.
10 * 10 *
11 * Redistribution and use in source and binary forms, with or without 11 * Redistribution and use in source and binary forms, with or without
diff --git a/include/acpi/platform/acgcc.h b/include/acpi/platform/acgcc.h
index e228893591a9..72553b0c9f33 100644
--- a/include/acpi/platform/acgcc.h
+++ b/include/acpi/platform/acgcc.h
@@ -5,7 +5,7 @@
5 *****************************************************************************/ 5 *****************************************************************************/
6 6
7/* 7/*
8 * Copyright (C) 2000 - 2011, Intel Corp. 8 * Copyright (C) 2000 - 2012, Intel Corp.
9 * All rights reserved. 9 * All rights reserved.
10 * 10 *
11 * Redistribution and use in source and binary forms, with or without 11 * Redistribution and use in source and binary forms, with or without
diff --git a/include/acpi/platform/aclinux.h b/include/acpi/platform/aclinux.h
index 6fbc4cab5834..7509be30ca01 100644
--- a/include/acpi/platform/aclinux.h
+++ b/include/acpi/platform/aclinux.h
@@ -5,7 +5,7 @@
5 *****************************************************************************/ 5 *****************************************************************************/
6 6
7/* 7/*
8 * Copyright (C) 2000 - 2011, Intel Corp. 8 * Copyright (C) 2000 - 2012, Intel Corp.
9 * All rights reserved. 9 * All rights reserved.
10 * 10 *
11 * Redistribution and use in source and binary forms, with or without 11 * Redistribution and use in source and binary forms, with or without
diff --git a/include/linux/acpi.h b/include/linux/acpi.h
index f421dd84f29d..b2b4d2ad7103 100644
--- a/include/linux/acpi.h
+++ b/include/linux/acpi.h
@@ -277,7 +277,7 @@ acpi_status acpi_run_osc(acpi_handle handle, struct acpi_osc_context *context);
277#define OSC_SB_PAD_SUPPORT 1 277#define OSC_SB_PAD_SUPPORT 1
278#define OSC_SB_PPC_OST_SUPPORT 2 278#define OSC_SB_PPC_OST_SUPPORT 2
279#define OSC_SB_PR3_SUPPORT 4 279#define OSC_SB_PR3_SUPPORT 4
280#define OSC_SB_CPUHP_OST_SUPPORT 8 280#define OSC_SB_HOTPLUG_OST_SUPPORT 8
281#define OSC_SB_APEI_SUPPORT 16 281#define OSC_SB_APEI_SUPPORT 16
282 282
283extern bool osc_sb_apei_support_acked; 283extern bool osc_sb_apei_support_acked;
@@ -309,6 +309,44 @@ extern bool osc_sb_apei_support_acked;
309 309
310extern acpi_status acpi_pci_osc_control_set(acpi_handle handle, 310extern acpi_status acpi_pci_osc_control_set(acpi_handle handle,
311 u32 *mask, u32 req); 311 u32 *mask, u32 req);
312
313/* Enable _OST when all relevant hotplug operations are enabled */
314#if defined(CONFIG_ACPI_HOTPLUG_CPU) && \
315 (defined(CONFIG_ACPI_HOTPLUG_MEMORY) || \
316 defined(CONFIG_ACPI_HOTPLUG_MEMORY_MODULE)) && \
317 (defined(CONFIG_ACPI_CONTAINER) || \
318 defined(CONFIG_ACPI_CONTAINER_MODULE))
319#define ACPI_HOTPLUG_OST
320#endif
321
322/* _OST Source Event Code (OSPM Action) */
323#define ACPI_OST_EC_OSPM_SHUTDOWN 0x100
324#define ACPI_OST_EC_OSPM_EJECT 0x103
325#define ACPI_OST_EC_OSPM_INSERTION 0x200
326
327/* _OST General Processing Status Code */
328#define ACPI_OST_SC_SUCCESS 0x0
329#define ACPI_OST_SC_NON_SPECIFIC_FAILURE 0x1
330#define ACPI_OST_SC_UNRECOGNIZED_NOTIFY 0x2
331
332/* _OST OS Shutdown Processing (0x100) Status Code */
333#define ACPI_OST_SC_OS_SHUTDOWN_DENIED 0x80
334#define ACPI_OST_SC_OS_SHUTDOWN_IN_PROGRESS 0x81
335#define ACPI_OST_SC_OS_SHUTDOWN_COMPLETED 0x82
336#define ACPI_OST_SC_OS_SHUTDOWN_NOT_SUPPORTED 0x83
337
338/* _OST Ejection Request (0x3, 0x103) Status Code */
339#define ACPI_OST_SC_EJECT_NOT_SUPPORTED 0x80
340#define ACPI_OST_SC_DEVICE_IN_USE 0x81
341#define ACPI_OST_SC_DEVICE_BUSY 0x82
342#define ACPI_OST_SC_EJECT_DEPENDENCY_BUSY 0x83
343#define ACPI_OST_SC_EJECT_IN_PROGRESS 0x84
344
345/* _OST Insertion Request (0x200) Status Code */
346#define ACPI_OST_SC_INSERT_IN_PROGRESS 0x80
347#define ACPI_OST_SC_DRIVER_LOAD_FAILURE 0x81
348#define ACPI_OST_SC_INSERT_NOT_SUPPORTED 0x82
349
312extern void acpi_early_init(void); 350extern void acpi_early_init(void);
313 351
314extern int acpi_nvs_register(__u64 start, __u64 size); 352extern int acpi_nvs_register(__u64 start, __u64 size);
diff --git a/include/linux/cpuidle.h b/include/linux/cpuidle.h
index 6c26a3da0e03..5ab7183313ce 100644
--- a/include/linux/cpuidle.h
+++ b/include/linux/cpuidle.h
@@ -57,6 +57,7 @@ struct cpuidle_state {
57 57
58/* Idle State Flags */ 58/* Idle State Flags */
59#define CPUIDLE_FLAG_TIME_VALID (0x01) /* is residency time measurable? */ 59#define CPUIDLE_FLAG_TIME_VALID (0x01) /* is residency time measurable? */
60#define CPUIDLE_FLAG_COUPLED (0x02) /* state applies to multiple cpus */
60 61
61#define CPUIDLE_DRIVER_FLAGS_MASK (0xFFFF0000) 62#define CPUIDLE_DRIVER_FLAGS_MASK (0xFFFF0000)
62 63
@@ -100,6 +101,12 @@ struct cpuidle_device {
100 struct list_head device_list; 101 struct list_head device_list;
101 struct kobject kobj; 102 struct kobject kobj;
102 struct completion kobj_unregister; 103 struct completion kobj_unregister;
104
105#ifdef CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED
106 int safe_state_index;
107 cpumask_t coupled_cpus;
108 struct cpuidle_coupled *coupled;
109#endif
103}; 110};
104 111
105DECLARE_PER_CPU(struct cpuidle_device *, cpuidle_devices); 112DECLARE_PER_CPU(struct cpuidle_device *, cpuidle_devices);
@@ -176,6 +183,10 @@ static inline int cpuidle_play_dead(void) {return -ENODEV; }
176 183
177#endif 184#endif
178 185
186#ifdef CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED
187void cpuidle_coupled_parallel_barrier(struct cpuidle_device *dev, atomic_t *a);
188#endif
189
179/****************************** 190/******************************
180 * CPUIDLE GOVERNOR INTERFACE * 191 * CPUIDLE GOVERNOR INTERFACE *
181 ******************************/ 192 ******************************/
diff --git a/include/linux/platform_data/spear_thermal.h b/include/linux/platform_data/spear_thermal.h
deleted file mode 100644
index 724f2e1cbbcb..000000000000
--- a/include/linux/platform_data/spear_thermal.h
+++ /dev/null
@@ -1,26 +0,0 @@
1/*
2 * SPEAr thermal driver platform data.
3 *
4 * Copyright (C) 2011-2012 ST Microelectronics
5 * Author: Vincenzo Frascino <vincenzo.frascino@st.com>
6 *
7 * This software is licensed under the terms of the GNU General Public
8 * License version 2, as published by the Free Software Foundation, and
9 * may be copied, distributed, and modified under those terms.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 */
17#ifndef SPEAR_THERMAL_H
18#define SPEAR_THERMAL_H
19
20/* SPEAr Thermal Sensor Platform Data */
21struct spear_thermal_pdata {
22 /* flags used to enable thermal sensor */
23 unsigned int thermal_flags;
24};
25
26#endif /* SPEAR_THERMAL_H */