Rev 1498 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1498 | Rev 2216 | ||
---|---|---|---|
Line 6... | Line 6... | ||
6 | 6 | ||
7 | /****************************************************************************** |
7 | /****************************************************************************** |
8 | * |
8 | * |
9 | * 1. Copyright Notice |
9 | * 1. Copyright Notice |
10 | * |
10 | * |
11 | * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
11 | * Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
12 | * All rights reserved. |
12 | * All rights reserved. |
13 | * |
13 | * |
14 | * 2. License |
14 | * 2. License |
15 | * |
15 | * |
Line 310... | Line 310... | ||
310 | } |
310 | } |
Line 311... | Line 311... | ||
311 | 311 | ||
312 | 312 | ||
- | 313 | /******************************************************************************* |
|
- | 314 | * |
|
- | 315 | * FUNCTION: AcpiDmAddToExternalFileList |
|
- | 316 | * |
|
- | 317 | * PARAMETERS: PathList - Single path or list separated by comma |
|
- | 318 | * |
|
- | 319 | * RETURN: None |
|
- | 320 | * |
|
- | 321 | * DESCRIPTION: Add external files to global list |
|
- | 322 | * |
|
- | 323 | ******************************************************************************/ |
|
- | 324 | ||
- | 325 | ACPI_STATUS |
|
- | 326 | AcpiDmAddToExternalFileList ( |
|
- | 327 | char *PathList) |
|
- | 328 | { |
|
- | 329 | ACPI_EXTERNAL_FILE *ExternalFile; |
|
- | 330 | char *Path; |
|
- | 331 | char *TmpPath; |
|
- | 332 | ||
- | 333 | ||
- | 334 | if (!PathList) |
|
- | 335 | { |
|
- | 336 | return (AE_OK); |
|
- | 337 | } |
|
- | 338 | ||
- | 339 | Path = strtok (PathList, ","); |
|
- | 340 | ||
- | 341 | while (Path) |
|
- | 342 | { |
|
- | 343 | TmpPath = ACPI_ALLOCATE_ZEROED (ACPI_STRLEN (Path) + 1); |
|
- | 344 | if (!TmpPath) |
|
- | 345 | { |
|
- | 346 | return (AE_NO_MEMORY); |
|
- | 347 | } |
|
- | 348 | ||
- | 349 | ACPI_STRCPY (TmpPath, Path); |
|
- | 350 | ||
- | 351 | ExternalFile = ACPI_ALLOCATE_ZEROED (sizeof (ACPI_EXTERNAL_FILE)); |
|
- | 352 | if (!ExternalFile) |
|
- | 353 | { |
|
- | 354 | ACPI_FREE (TmpPath); |
|
- | 355 | return (AE_NO_MEMORY); |
|
- | 356 | } |
|
- | 357 | ||
- | 358 | ExternalFile->Path = TmpPath; |
|
- | 359 | ||
- | 360 | if (AcpiGbl_ExternalFileList) |
|
- | 361 | { |
|
- | 362 | ExternalFile->Next = AcpiGbl_ExternalFileList; |
|
- | 363 | } |
|
- | 364 | ||
- | 365 | AcpiGbl_ExternalFileList = ExternalFile; |
|
- | 366 | Path = strtok (NULL, ","); |
|
- | 367 | } |
|
- | 368 | ||
- | 369 | return (AE_OK); |
|
- | 370 | } |
|
- | 371 | ||
- | 372 | ||
- | 373 | /******************************************************************************* |
|
- | 374 | * |
|
- | 375 | * FUNCTION: AcpiDmClearExternalFileList |
|
- | 376 | * |
|
- | 377 | * PARAMETERS: None |
|
- | 378 | * |
|
- | 379 | * RETURN: None |
|
- | 380 | * |
|
- | 381 | * DESCRIPTION: Clear the external file list |
|
- | 382 | * |
|
- | 383 | ******************************************************************************/ |
|
- | 384 | ||
- | 385 | void |
|
- | 386 | AcpiDmClearExternalFileList ( |
|
- | 387 | void) |
|
- | 388 | { |
|
- | 389 | ACPI_EXTERNAL_FILE *NextExternal; |
|
- | 390 | ||
- | 391 | ||
- | 392 | while (AcpiGbl_ExternalFileList) |
|
- | 393 | { |
|
- | 394 | NextExternal = AcpiGbl_ExternalFileList->Next; |
|
- | 395 | ACPI_FREE (AcpiGbl_ExternalFileList->Path); |
|
- | 396 | ACPI_FREE (AcpiGbl_ExternalFileList); |
|
- | 397 | AcpiGbl_ExternalFileList = NextExternal; |
|
- | 398 | } |
|
- | 399 | } |
|
- | 400 | ||
- | 401 | ||
313 | /******************************************************************************* |
402 | /******************************************************************************* |
314 | * |
403 | * |
315 | * FUNCTION: AcpiDmAddToExternalList |
404 | * FUNCTION: AcpiDmAddToExternalList |
316 | * |
405 | * |
317 | * PARAMETERS: Op - Current parser Op |
406 | * PARAMETERS: Op - Current parser Op |