X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FInclude%2FProtocol%2FAcpiTable.h;h=6149b7e4533584b7ee259001582db5eafe9b4169;hb=6440385b17def888544c2454ffba58384b929a22;hp=9ccf2ecea0a207656b6d2dd1c48c6dfa6f48c0a3;hpb=4ca9b6c4e7dbbcf94f21b54f41f761cefc6b1086;p=mirror_edk2.git diff --git a/MdePkg/Include/Protocol/AcpiTable.h b/MdePkg/Include/Protocol/AcpiTable.h index 9ccf2ecea0..6149b7e453 100644 --- a/MdePkg/Include/Protocol/AcpiTable.h +++ b/MdePkg/Include/Protocol/AcpiTable.h @@ -2,8 +2,8 @@ The file provides the protocol to install or remove an ACPI table from a platform. - Copyright (c) 2006 - 2008, Intel Corporation - All rights reserved. This program and the accompanying materials + Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.
+ This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php @@ -31,7 +31,12 @@ typedef struct _EFI_ACPI_TABLE_PROTOCOL EFI_ACPI_TABLE_PROTOCOL; copy into the RSDT/XSDT. InstallAcpiTable() must insert the new table at the end of the RSDT/XSDT. To prevent namespace collision, ACPI tables may be created using UEFI ACPI table - format. See Appendix O. On successful output, TableKey is + format. If this protocol is used to install a table with a + signature already present in the system, the new table will not + replace the existing table. It is a platform implementation + decision to add a new table with a signature matching an + existing table or disallow duplicate table signatures and + return EFI_ACCESS_DENIED. On successful output, TableKey is initialized with a unique key. Its value may be used in a subsequent call to UninstallAcpiTable to remove an ACPI table. If an EFI application is running at the time of this call, the @@ -61,13 +66,16 @@ typedef struct _EFI_ACPI_TABLE_PROTOCOL EFI_ACPI_TABLE_PROTOCOL; @retval EFI_OUT_OF_RESOURCES Insufficient resources exist to complete the request. - + @retval EFI_ACCESS_DENIED The table signature matches a table already + present in the system and platform policy + does not allow duplicate tables of this type. + **/ typedef EFI_STATUS (EFIAPI *EFI_ACPI_TABLE_INSTALL_ACPI_TABLE)( - IN CONST EFI_ACPI_TABLE_PROTOCOL *This, - IN CONST VOID *AcpiTableBuffer, + IN EFI_ACPI_TABLE_PROTOCOL *This, + IN VOID *AcpiTableBuffer, IN UINTN AcpiTableBufferSize, OUT UINTN *TableKey ); @@ -100,22 +108,14 @@ EFI_STATUS typedef EFI_STATUS (EFIAPI *EFI_ACPI_TABLE_UNINSTALL_ACPI_TABLE)( - IN CONST EFI_ACPI_TABLE_PROTOCOL *This, - IN UINTN TableKey + IN EFI_ACPI_TABLE_PROTOCOL *This, + IN UINTN TableKey ); -/** - @par Protocol Description: - The EFI_ACPI_TABLE_PROTOCOL provides the ability for a component - to install and uninstall ACPI tables from a platform. - - - @param InstallAcpiTable Installs an ACPI table into the system. - - @param UninstallAcpiTable Removes a previously installed ACPI - table from the system. - -**/ +/// +/// The EFI_ACPI_TABLE_PROTOCOL provides the ability for a component +/// to install and uninstall ACPI tables from a platform. +/// struct _EFI_ACPI_TABLE_PROTOCOL { EFI_ACPI_TABLE_INSTALL_ACPI_TABLE InstallAcpiTable; EFI_ACPI_TABLE_UNINSTALL_ACPI_TABLE UninstallAcpiTable;