nsutils.c (241973) | nsutils.c (243347) |
---|---|
1/****************************************************************************** 2 * 3 * Module Name: nsutils - Utilities for accessing ACPI namespace, accessing 4 * parents and siblings and Scope manipulation 5 * 6 *****************************************************************************/ 7 8/* --- 763 unchanged lines hidden (view full) --- 772 * to the ACPI specification, else 0 773 * 774 ******************************************************************************/ 775 776UINT32 777AcpiNsOpensScope ( 778 ACPI_OBJECT_TYPE Type) 779{ | 1/****************************************************************************** 2 * 3 * Module Name: nsutils - Utilities for accessing ACPI namespace, accessing 4 * parents and siblings and Scope manipulation 5 * 6 *****************************************************************************/ 7 8/* --- 763 unchanged lines hidden (view full) --- 772 * to the ACPI specification, else 0 773 * 774 ******************************************************************************/ 775 776UINT32 777AcpiNsOpensScope ( 778 ACPI_OBJECT_TYPE Type) 779{ |
780 ACPI_FUNCTION_TRACE_STR (NsOpensScope, AcpiUtGetTypeName (Type)); | 780 ACPI_FUNCTION_ENTRY (); |
781 782 | 781 782 |
783 if (!AcpiUtValidObjectType (Type)) | 783 if (Type > ACPI_TYPE_LOCAL_MAX) |
784 { 785 /* type code out of range */ 786 787 ACPI_WARNING ((AE_INFO, "Invalid Object Type 0x%X", Type)); | 784 { 785 /* type code out of range */ 786 787 ACPI_WARNING ((AE_INFO, "Invalid Object Type 0x%X", Type)); |
788 return_UINT32 (ACPI_NS_NORMAL); | 788 return (ACPI_NS_NORMAL); |
789 } 790 | 789 } 790 |
791 return_UINT32 (((UINT32) AcpiGbl_NsProperties[Type]) & ACPI_NS_NEWSCOPE); | 791 return (((UINT32) AcpiGbl_NsProperties[Type]) & ACPI_NS_NEWSCOPE); |
792} 793 794 795/******************************************************************************* 796 * 797 * FUNCTION: AcpiNsGetNode 798 * 799 * PARAMETERS: *Pathname - Name to be found, in external (ASL) format. The --- 79 unchanged lines hidden --- | 792} 793 794 795/******************************************************************************* 796 * 797 * FUNCTION: AcpiNsGetNode 798 * 799 * PARAMETERS: *Pathname - Name to be found, in external (ASL) format. The --- 79 unchanged lines hidden --- |