utxface.c (217365) | utxface.c (229989) |
---|---|
1/****************************************************************************** 2 * 3 * Module Name: utxface - External interfaces for "global" ACPI functions 4 * 5 *****************************************************************************/ 6 7/* | 1/****************************************************************************** 2 * 3 * Module Name: utxface - External interfaces for "global" ACPI functions 4 * 5 *****************************************************************************/ 6 7/* |
8 * Copyright (C) 2000 - 2011, Intel Corp. | 8 * Copyright (C) 2000 - 2012, Intel Corp. |
9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without 12 * modification, are permitted provided that the following conditions 13 * are met: 14 * 1. Redistributions of source code must retain the above copyright 15 * notice, this list of conditions, and the following disclaimer, 16 * without modification. --- 28 unchanged lines hidden (view full) --- 45#define __UTXFACE_C__ 46 47#include <contrib/dev/acpica/include/acpi.h> 48#include <contrib/dev/acpica/include/accommon.h> 49#include <contrib/dev/acpica/include/acevents.h> 50#include <contrib/dev/acpica/include/acnamesp.h> 51#include <contrib/dev/acpica/include/acdebug.h> 52#include <contrib/dev/acpica/include/actables.h> | 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without 12 * modification, are permitted provided that the following conditions 13 * are met: 14 * 1. Redistributions of source code must retain the above copyright 15 * notice, this list of conditions, and the following disclaimer, 16 * without modification. --- 28 unchanged lines hidden (view full) --- 45#define __UTXFACE_C__ 46 47#include <contrib/dev/acpica/include/acpi.h> 48#include <contrib/dev/acpica/include/accommon.h> 49#include <contrib/dev/acpica/include/acevents.h> 50#include <contrib/dev/acpica/include/acnamesp.h> 51#include <contrib/dev/acpica/include/acdebug.h> 52#include <contrib/dev/acpica/include/actables.h> |
53#include <contrib/dev/acpica/include/acinterp.h> |
|
53 54#define _COMPONENT ACPI_UTILITIES 55 ACPI_MODULE_NAME ("utxface") 56 57 58#ifndef ACPI_ASL_COMPILER 59 60/******************************************************************************* --- 719 unchanged lines hidden (view full) --- 780 } 781 782 AcpiOsReleaseMutex (AcpiGbl_OsiMutex); 783 return (Status); 784} 785 786ACPI_EXPORT_SYMBOL (AcpiInstallInterfaceHandler) 787 | 54 55#define _COMPONENT ACPI_UTILITIES 56 ACPI_MODULE_NAME ("utxface") 57 58 59#ifndef ACPI_ASL_COMPILER 60 61/******************************************************************************* --- 719 unchanged lines hidden (view full) --- 781 } 782 783 AcpiOsReleaseMutex (AcpiGbl_OsiMutex); 784 return (Status); 785} 786 787ACPI_EXPORT_SYMBOL (AcpiInstallInterfaceHandler) 788 |
788#endif /* !ACPI_ASL_COMPILER */ | |
789 | 789 |
790/***************************************************************************** 791 * 792 * FUNCTION: AcpiCheckAddressRange 793 * 794 * PARAMETERS: SpaceId - Address space ID 795 * Address - Start address 796 * Length - Length 797 * Warn - TRUE if warning on overlap desired 798 * 799 * RETURN: Count of the number of conflicts detected. 800 * 801 * DESCRIPTION: Check if the input address range overlaps any of the 802 * ASL operation region address ranges. 803 * 804 ****************************************************************************/ 805 806UINT32 807AcpiCheckAddressRange ( 808 ACPI_ADR_SPACE_TYPE SpaceId, 809 ACPI_PHYSICAL_ADDRESS Address, 810 ACPI_SIZE Length, 811 BOOLEAN Warn) 812{ 813 UINT32 Overlaps; 814 ACPI_STATUS Status; 815 816 817 Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE); 818 if (ACPI_FAILURE (Status)) 819 { 820 return (0); 821 } 822 823 Overlaps = AcpiUtCheckAddressRange (SpaceId, Address, 824 (UINT32) Length, Warn); 825 826 (void) AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE); 827 return (Overlaps); 828} 829 830ACPI_EXPORT_SYMBOL (AcpiCheckAddressRange) 831 832#endif /* !ACPI_ASL_COMPILER */ |
|