aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/tables/tbutils.c
diff options
context:
space:
mode:
authorAlexey Starikovskiy <alexey.y.starikovskiy@intel.com>2007-02-02 11:48:22 -0500
committerLen Brown <len.brown@intel.com>2007-02-02 21:14:29 -0500
commit428f211297bc95fd41f23830eab4180339020dd0 (patch)
tree81537f25f9add9e727e9d764fdcb333a1af07528 /drivers/acpi/tables/tbutils.c
parent77f6a9fca39f4f19d2d9d5fff1ff5c2ccf20629c (diff)
ACPICA: Miscellaneous table manager updates and optimizations
Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/tables/tbutils.c')
-rw-r--r--drivers/acpi/tables/tbutils.c46
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
480void *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
504void 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}