nsnames.c (102550) | nsnames.c (114237) |
---|---|
1/******************************************************************************* 2 * 3 * Module Name: nsnames - Name manipulation and search | 1/******************************************************************************* 2 * 3 * Module Name: nsnames - Name manipulation and search |
4 * $Revision: 79 $ | 4 * $Revision: 82 $ |
5 * 6 ******************************************************************************/ 7 8/****************************************************************************** 9 * 10 * 1. Copyright Notice 11 * | 5 * 6 ******************************************************************************/ 7 8/****************************************************************************** 9 * 10 * 1. Copyright Notice 11 * |
12 * Some or all of this work - Copyright (c) 1999 - 2002, Intel Corp. | 12 * Some or all of this work - Copyright (c) 1999 - 2003, Intel Corp. |
13 * All rights reserved. 14 * 15 * 2. License 16 * 17 * 2.1. This is your license from Intel Corp. under its intellectual property 18 * rights. You may have additional license terms from the party that provided 19 * you this software, covering your right to use that party's intellectual 20 * property rights. --- 118 unchanged lines hidden (view full) --- 139 * DESCRIPTION: Generate a full pathaname 140 * 141 ******************************************************************************/ 142 143void 144AcpiNsBuildExternalPath ( 145 ACPI_NAMESPACE_NODE *Node, 146 ACPI_SIZE Size, | 13 * All rights reserved. 14 * 15 * 2. License 16 * 17 * 2.1. This is your license from Intel Corp. under its intellectual property 18 * rights. You may have additional license terms from the party that provided 19 * you this software, covering your right to use that party's intellectual 20 * property rights. --- 118 unchanged lines hidden (view full) --- 139 * DESCRIPTION: Generate a full pathaname 140 * 141 ******************************************************************************/ 142 143void 144AcpiNsBuildExternalPath ( 145 ACPI_NAMESPACE_NODE *Node, 146 ACPI_SIZE Size, |
147 NATIVE_CHAR *NameBuffer) | 147 char *NameBuffer) |
148{ 149 ACPI_SIZE Index; 150 ACPI_NAMESPACE_NODE *ParentNode; 151 152 153 ACPI_FUNCTION_NAME ("NsBuildExternalPath"); 154 155 --- 19 unchanged lines hidden (view full) --- 175 /* Put the name into the buffer */ 176 177 ACPI_MOVE_UNALIGNED32_TO_32 ((NameBuffer + Index), &ParentNode->Name); 178 ParentNode = AcpiNsGetParentNode (ParentNode); 179 180 /* Prefix name with the path separator */ 181 182 Index--; | 148{ 149 ACPI_SIZE Index; 150 ACPI_NAMESPACE_NODE *ParentNode; 151 152 153 ACPI_FUNCTION_NAME ("NsBuildExternalPath"); 154 155 --- 19 unchanged lines hidden (view full) --- 175 /* Put the name into the buffer */ 176 177 ACPI_MOVE_UNALIGNED32_TO_32 ((NameBuffer + Index), &ParentNode->Name); 178 ParentNode = AcpiNsGetParentNode (ParentNode); 179 180 /* Prefix name with the path separator */ 181 182 Index--; |
183 NameBuffer[Index] = PATH_SEPARATOR; | 183 NameBuffer[Index] = ACPI_PATH_SEPARATOR; |
184 } 185 186 /* Overwrite final separator with the root prefix character */ 187 188 NameBuffer[Index] = AML_ROOT_PREFIX; 189 190 if (Index != 0) 191 { --- 16 unchanged lines hidden (view full) --- 208 * RETURN: Pointer to storage containing the fully qualified name of 209 * the node, In external format (name segments separated by path 210 * separators.) 211 * 212 * DESCRIPTION: Used for debug printing in AcpiNsSearchTable(). 213 * 214 ******************************************************************************/ 215 | 184 } 185 186 /* Overwrite final separator with the root prefix character */ 187 188 NameBuffer[Index] = AML_ROOT_PREFIX; 189 190 if (Index != 0) 191 { --- 16 unchanged lines hidden (view full) --- 208 * RETURN: Pointer to storage containing the fully qualified name of 209 * the node, In external format (name segments separated by path 210 * separators.) 211 * 212 * DESCRIPTION: Used for debug printing in AcpiNsSearchTable(). 213 * 214 ******************************************************************************/ 215 |
216NATIVE_CHAR * | 216char * |
217AcpiNsGetExternalPathname ( 218 ACPI_NAMESPACE_NODE *Node) 219{ | 217AcpiNsGetExternalPathname ( 218 ACPI_NAMESPACE_NODE *Node) 219{ |
220 NATIVE_CHAR *NameBuffer; | 220 char *NameBuffer; |
221 ACPI_SIZE Size; 222 223 224 ACPI_FUNCTION_TRACE_PTR ("NsGetExternalPathname", Node); 225 226 227 /* Calculate required buffer size based on depth below root */ 228 --- 43 unchanged lines hidden (view full) --- 272 * Compute length of pathname as 5 * number of name segments. 273 * Go back up the parent tree to the root 274 */ 275 Size = 0; 276 NextNode = Node; 277 278 while (NextNode && (NextNode != AcpiGbl_RootNode)) 279 { | 221 ACPI_SIZE Size; 222 223 224 ACPI_FUNCTION_TRACE_PTR ("NsGetExternalPathname", Node); 225 226 227 /* Calculate required buffer size based on depth below root */ 228 --- 43 unchanged lines hidden (view full) --- 272 * Compute length of pathname as 5 * number of name segments. 273 * Go back up the parent tree to the root 274 */ 275 Size = 0; 276 NextNode = Node; 277 278 while (NextNode && (NextNode != AcpiGbl_RootNode)) 279 { |
280 Size += PATH_SEGMENT_LENGTH; | 280 Size += ACPI_PATH_SEGMENT_LENGTH; |
281 NextNode = AcpiNsGetParentNode (NextNode); 282 } 283 284 return (Size + 1); 285} 286 287 288/******************************************************************************* --- 53 unchanged lines hidden --- | 281 NextNode = AcpiNsGetParentNode (NextNode); 282 } 283 284 return (Size + 1); 285} 286 287 288/******************************************************************************* --- 53 unchanged lines hidden --- |