aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/osl.c
diff options
context:
space:
mode:
authorBob Moore <robert.moore@intel.com>2006-04-21 17:15:00 -0400
committerLen Brown <len.brown@intel.com>2006-06-14 02:30:55 -0400
commitb229cf92eee616c7cb5ad8cdb35a19b119f00bc8 (patch)
tree74b52bec6ec029859c2320aba227290a503af31a /drivers/acpi/osl.c
parent793c2388cae3fd023b3b5166354931752d42353c (diff)
ACPI: ACPICA 20060421
Removed a device initialization optimization introduced in 20051216 where the _STA method was not run unless an _INI was also present for the same device. This optimization could cause problems because it could allow _INI methods to be run within a not-present device subtree (If a not-present device had no _INI, _STA would not be run, the not-present status would not be discovered, and the children of the device would be incorrectly traversed.) Implemented a new _STA optimization where namespace subtrees that do not contain _INI are identified and ignored during device initialization. Selectively running _STA can significantly improve boot time on large machines (with assistance from Len Brown.) Implemented support for the device initialization case where the returned _STA flags indicate a device not-present but functioning. In this case, _INI is not run, but the device children are examined for presence, as per the ACPI specification. Implemented an additional change to the IndexField support in order to conform to MS behavior. The value written to the Index Register is not simply a byte offset, it is a byte offset in units of the access width of the parent Index Field. (Fiodor Suietov) Defined and deployed a new OSL interface, acpi_os_validate_address(). This interface is called during the creation of all AML operation regions, and allows the host OS to exert control over what addresses it will allow the AML code to access. Operation Regions whose addresses are disallowed will cause a runtime exception when they are actually accessed (will not affect or abort table loading.) Defined and deployed a new OSL interface, acpi_os_validate_interface(). This interface allows the host OS to match the various "optional" interface/behavior strings for the _OSI predefined control method as appropriate (with assistance from Bjorn Helgaas.) Restructured and corrected various problems in the exception handling code paths within DsCallControlMethod and DsTerminateControlMethod in dsmethod (with assistance from Takayoshi Kochi.) Modified the Linux source converter to ignore quoted string literals while converting identifiers from mixed to lower case. This will correct problems with the disassembler and other areas where such strings must not be modified. The ACPI_FUNCTION_* macros no longer require quotes around the function name. This allows the Linux source converter to convert the names, now that the converter ignores quoted strings. Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/osl.c')
-rw-r--r--drivers/acpi/osl.c63
1 files changed, 57 insertions, 6 deletions
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c
index 006b31a56559..109c3f8ae7df 100644
--- a/drivers/acpi/osl.c
+++ b/drivers/acpi/osl.c
@@ -1042,12 +1042,12 @@ void acpi_os_release_lock(acpi_handle handle, acpi_cpu_flags flags)
1042 * 1042 *
1043 * FUNCTION: acpi_os_create_cache 1043 * FUNCTION: acpi_os_create_cache
1044 * 1044 *
1045 * PARAMETERS: CacheName - Ascii name for the cache 1045 * PARAMETERS: name - Ascii name for the cache
1046 * ObjectSize - Size of each cached object 1046 * size - Size of each cached object
1047 * MaxDepth - Maximum depth of the cache (in objects) 1047 * depth - Maximum depth of the cache (in objects) <ignored>
1048 * ReturnCache - Where the new cache object is returned 1048 * cache - Where the new cache object is returned
1049 * 1049 *
1050 * RETURN: Status 1050 * RETURN: status
1051 * 1051 *
1052 * DESCRIPTION: Create a cache object 1052 * DESCRIPTION: Create a cache object
1053 * 1053 *
@@ -1057,7 +1057,10 @@ acpi_status
1057acpi_os_create_cache(char *name, u16 size, u16 depth, acpi_cache_t ** cache) 1057acpi_os_create_cache(char *name, u16 size, u16 depth, acpi_cache_t ** cache)
1058{ 1058{
1059 *cache = kmem_cache_create(name, size, 0, 0, NULL, NULL); 1059 *cache = kmem_cache_create(name, size, 0, 0, NULL, NULL);
1060 return AE_OK; 1060 if (cache == NULL)
1061 return AE_ERROR;
1062 else
1063 return AE_OK;
1061} 1064}
1062 1065
1063/******************************************************************************* 1066/*******************************************************************************
@@ -1137,4 +1140,52 @@ void *acpi_os_acquire_object(acpi_cache_t * cache)
1137 return object; 1140 return object;
1138} 1141}
1139 1142
1143/******************************************************************************
1144 *
1145 * FUNCTION: acpi_os_validate_interface
1146 *
1147 * PARAMETERS: interface - Requested interface to be validated
1148 *
1149 * RETURN: AE_OK if interface is supported, AE_SUPPORT otherwise
1150 *
1151 * DESCRIPTION: Match an interface string to the interfaces supported by the
1152 * host. Strings originate from an AML call to the _OSI method.
1153 *
1154 *****************************************************************************/
1155
1156acpi_status
1157acpi_os_validate_interface (char *interface)
1158{
1159
1160 return AE_SUPPORT;
1161}
1162
1163
1164/******************************************************************************
1165 *
1166 * FUNCTION: acpi_os_validate_address
1167 *
1168 * PARAMETERS: space_id - ACPI space ID
1169 * address - Physical address
1170 * length - Address length
1171 *
1172 * RETURN: AE_OK if address/length is valid for the space_id. Otherwise,
1173 * should return AE_AML_ILLEGAL_ADDRESS.
1174 *
1175 * DESCRIPTION: Validate a system address via the host OS. Used to validate
1176 * the addresses accessed by AML operation regions.
1177 *
1178 *****************************************************************************/
1179
1180acpi_status
1181acpi_os_validate_address (
1182 u8 space_id,
1183 acpi_physical_address address,
1184 acpi_size length)
1185{
1186
1187 return AE_OK;
1188}
1189
1190
1140#endif 1191#endif