diff options
Diffstat (limited to 'drivers/acpi/tables/tbutils.c')
-rw-r--r-- | drivers/acpi/tables/tbutils.c | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/drivers/acpi/tables/tbutils.c b/drivers/acpi/tables/tbutils.c index 1033748e73ec..0cb743962faf 100644 --- a/drivers/acpi/tables/tbutils.c +++ b/drivers/acpi/tables/tbutils.c | |||
@@ -462,49 +462,3 @@ acpi_tb_parse_root_table(acpi_physical_address rsdp_address, u8 flags) | |||
462 | 462 | ||
463 | return_ACPI_STATUS(AE_OK); | 463 | return_ACPI_STATUS(AE_OK); |
464 | } | 464 | } |
465 | |||
466 | /****************************************************************************** | ||
467 | * | ||
468 | * FUNCTION: acpi_tb_map | ||
469 | * | ||
470 | * PARAMETERS: Address - Address to be mapped | ||
471 | * Length - Length to be mapped | ||
472 | * Flags - Logical or physical addressing mode | ||
473 | * | ||
474 | * RETURN: Pointer to mapped region | ||
475 | * | ||
476 | * DESCRIPTION: Maps memory according to flag | ||
477 | * | ||
478 | *****************************************************************************/ | ||
479 | |||
480 | void *acpi_tb_map(acpi_physical_address address, u32 length, u32 flags) | ||
481 | { | ||
482 | |||
483 | if (flags == ACPI_TABLE_ORIGIN_MAPPED) { | ||
484 | return (acpi_os_map_memory(address, length)); | ||
485 | } else { | ||
486 | return (ACPI_CAST_PTR(void, address)); | ||
487 | } | ||
488 | } | ||
489 | |||
490 | /****************************************************************************** | ||
491 | * | ||
492 | * FUNCTION: acpi_tb_unmap | ||
493 | * | ||
494 | * PARAMETERS: Pointer - To mapped region | ||
495 | * Length - Length to be unmapped | ||
496 | * Flags - Logical or physical addressing mode | ||
497 | * | ||
498 | * RETURN: None | ||
499 | * | ||
500 | * DESCRIPTION: Unmaps memory according to flag | ||
501 | * | ||
502 | *****************************************************************************/ | ||
503 | |||
504 | void acpi_tb_unmap(void *pointer, u32 length, u32 flags) | ||
505 | { | ||
506 | |||
507 | if (flags == ACPI_TABLE_ORIGIN_MAPPED) { | ||
508 | acpi_os_unmap_memory(pointer, length); | ||
509 | } | ||
510 | } | ||