]> xenbits.xensource.com Git - people/aperard/ovmf.git/commitdiff
DynamicTablesPkg: Remove deprecated APIs
authorPierre Gondois <pierre.gondois@arm.com>
Mon, 10 Oct 2022 09:20:51 +0000 (11:20 +0200)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 31 Oct 2022 12:32:32 +0000 (12:32 +0000)
commit 691c5f776274 ("DynamicTablesPkg: Deprecate Crs specific methods
in AmlLib")
deprecates some APIs. Finally remove them.

Signed-off-by: Pierre Gondois <Pierre.Gondois@arm.com>
Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
DynamicTablesPkg/Include/Library/AmlLib/AmlLib.h
DynamicTablesPkg/Library/Common/AmlLib/Api/AmlApi.c
DynamicTablesPkg/Library/Common/AmlLib/CodeGen/AmlResourceDataCodeGen.c

index 0d8446d782564fbbb0d3c785aa420f11e7dd1261..9210c509154854845450b2ca856ce496071626d6 100644 (file)
@@ -1390,142 +1390,4 @@ AmlCreateCpcNode (
   OUT AML_OBJECT_NODE_HANDLE  *NewCpcNode   OPTIONAL\r
   );\r
 \r
-// DEPRECATED APIS\r
-#ifndef DISABLE_NEW_DEPRECATED_INTERFACES\r
-\r
-/** DEPRECATED API\r
-\r
-  Get the first Resource Data element contained in a "_CRS" object.\r
-\r
-  In the following ASL code, the function will return the Resource Data\r
-  node corresponding to the "QWordMemory ()" ASL macro.\r
-  Name (_CRS, ResourceTemplate() {\r
-      QWordMemory (...) {...},\r
-      Interrupt (...) {...}\r
-    }\r
-  )\r
-\r
-  Note:\r
-   - The "_CRS" object must be declared using ASL "Name (Declare Named Object)".\r
-   - "_CRS" declared using ASL "Method (Declare Control Method)" is not\r
-     supported.\r
-\r
-  @ingroup UserApis\r
-\r
-  @param  [in] NameOpCrsNode  NameOp object node defining a "_CRS" object.\r
-                              Must have an OpCode=AML_NAME_OP, SubOpCode=0.\r
-                              NameOp object nodes are defined in ASL\r
-                              using the "Name ()" function.\r
-  @param  [out] OutRdNode     Pointer to the first Resource Data element of\r
-                              the "_CRS" object. A Resource Data element\r
-                              is stored in a data node.\r
-\r
-  @retval EFI_SUCCESS             The function completed successfully.\r
-  @retval EFI_INVALID_PARAMETER   Invalid parameter.\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-AmlNameOpCrsGetFirstRdNode (\r
-  IN  AML_OBJECT_NODE_HANDLE  NameOpCrsNode,\r
-  OUT AML_DATA_NODE_HANDLE    *OutRdNode\r
-  );\r
-\r
-/** DEPRECATED API\r
-\r
-  Get the Resource Data element following the CurrRdNode Resource Data.\r
-\r
-  In the following ASL code, if CurrRdNode corresponds to the first\r
-  "QWordMemory ()" ASL macro, the function will return the Resource Data\r
-  node corresponding to the "Interrupt ()" ASL macro.\r
-  Name (_CRS, ResourceTemplate() {\r
-      QwordMemory (...) {...},\r
-      Interrupt (...) {...}\r
-    }\r
-  )\r
-\r
-  The CurrRdNode Resource Data node must be defined in an object named "_CRS"\r
-  and defined by a "Name ()" ASL function.\r
-\r
-  @ingroup UserApis\r
-\r
-  @param  [in]  CurrRdNode   Pointer to the current Resource Data element of\r
-                             the "_CRS" variable.\r
-  @param  [out] OutRdNode    Pointer to the Resource Data element following\r
-                             the CurrRdNode.\r
-                             Contain a NULL pointer if CurrRdNode is the\r
-                             last Resource Data element in the list.\r
-                             The "End Tag" is not considered as a resource\r
-                             data element and is not returned.\r
-\r
-  @retval EFI_SUCCESS             The function completed successfully.\r
-  @retval EFI_INVALID_PARAMETER   Invalid parameter.\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-AmlNameOpCrsGetNextRdNode (\r
-  IN  AML_DATA_NODE_HANDLE  CurrRdNode,\r
-  OUT AML_DATA_NODE_HANDLE  *OutRdNode\r
-  );\r
-\r
-/** DEPRECATED API\r
-\r
-  Add an Interrupt Resource Data node.\r
-\r
-  This function creates a Resource Data element corresponding to the\r
-  "Interrupt ()" ASL function, stores it in an AML Data Node.\r
-\r
-  It then adds it after the input CurrRdNode in the list of resource data\r
-  element.\r
-\r
-  The Resource Data effectively created is an Extended Interrupt Resource\r
-  Data. See ACPI 6.3 specification, s6.4.3.6 "Extended Interrupt Descriptor"\r
-  for more information about Extended Interrupt Resource Data.\r
-\r
-  The Extended Interrupt contains one single interrupt.\r
-\r
-  This function allocates memory to create a data node. It is the caller's\r
-  responsibility to either:\r
-   - attach this node to an AML tree;\r
-   - delete this node.\r
-\r
-  Note: The _CRS node must be defined using the ASL Name () function.\r
-        e.g. Name (_CRS, ResourceTemplate () {\r
-               ...\r
-             }\r
-\r
-  @ingroup CodeGenApis\r
-\r
-  @param  [in]  NameOpCrsNode    NameOp object node defining a "_CRS" object.\r
-                                 Must have an OpCode=AML_NAME_OP, SubOpCode=0.\r
-                                 NameOp object nodes are defined in ASL\r
-                                 using the "Name ()" function.\r
-  @param  [in]  ResourceConsumer The device consumes the specified interrupt\r
-                                 or produces it for use by a child device.\r
-  @param  [in]  EdgeTriggered    The interrupt is edge triggered or\r
-                                 level triggered.\r
-  @param  [in]  ActiveLow        The interrupt is active-high or active-low.\r
-  @param  [in]  Shared           The interrupt can be shared with other\r
-                                 devices or not (Exclusive).\r
-  @param  [in]  IrqList          Interrupt list. Must be non-NULL.\r
-  @param  [in]  IrqCount         Interrupt count. Must be non-zero.\r
-\r
-\r
-  @retval EFI_SUCCESS             The function completed successfully.\r
-  @retval EFI_INVALID_PARAMETER   Invalid parameter.\r
-  @retval EFI_OUT_OF_RESOURCES    Could not allocate memory.\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-AmlCodeGenCrsAddRdInterrupt (\r
-  IN  AML_OBJECT_NODE_HANDLE  NameOpCrsNode,\r
-  IN  BOOLEAN                 ResourceConsumer,\r
-  IN  BOOLEAN                 EdgeTriggered,\r
-  IN  BOOLEAN                 ActiveLow,\r
-  IN  BOOLEAN                 Shared,\r
-  IN  UINT32                  *IrqList,\r
-  IN  UINT8                   IrqCount\r
-  );\r
-\r
-#endif // DISABLE_NEW_DEPRECATED_INTERFACES\r
-\r
 #endif // AML_LIB_H_\r
index 519afdc1eafa4de89ea97f4468941bddec09801f..9f162abe2d090be16d09579415ee8fe58d794813 100644 (file)
@@ -429,88 +429,3 @@ AmlAttachNode (
 {\r
   return AmlVarListAddTail (ParentNode, NewNode);\r
 }\r
-\r
-// DEPRECATED APIS\r
-#ifndef DISABLE_NEW_DEPRECATED_INTERFACES\r
-\r
-/** DEPRECATED API\r
-\r
-  Get the first Resource Data element contained in a "_CRS" object.\r
-\r
-  In the following ASL code, the function will return the Resource Data\r
-  node corresponding to the "QWordMemory ()" ASL macro.\r
-  Name (_CRS, ResourceTemplate() {\r
-      QWordMemory (...) {...},\r
-      Interrupt (...) {...}\r
-    }\r
-  )\r
-\r
-  Note:\r
-   - The "_CRS" object must be declared using ASL "Name (Declare Named Object)".\r
-   - "_CRS" declared using ASL "Method (Declare Control Method)" is not\r
-     supported.\r
-\r
-  @ingroup UserApis\r
-\r
-  @param  [in] NameOpCrsNode  NameOp object node defining a "_CRS" object.\r
-                              Must have an OpCode=AML_NAME_OP, SubOpCode=0.\r
-                              NameOp object nodes are defined in ASL\r
-                              using the "Name ()" function.\r
-  @param  [out] OutRdNode     Pointer to the first Resource Data element of\r
-                              the "_CRS" object. A Resource Data element\r
-                              is stored in a data node.\r
-\r
-  @retval EFI_SUCCESS             The function completed successfully.\r
-  @retval EFI_INVALID_PARAMETER   Invalid parameter.\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-AmlNameOpCrsGetFirstRdNode (\r
-  IN  AML_OBJECT_NODE_HANDLE  NameOpCrsNode,\r
-  OUT AML_DATA_NODE_HANDLE    *OutRdNode\r
-  )\r
-{\r
-  return AmlNameOpGetFirstRdNode (NameOpCrsNode, OutRdNode);\r
-}\r
-\r
-/** DEPRECATED API\r
-\r
-  Get the Resource Data element following the CurrRdNode Resource Data.\r
-\r
-  In the following ASL code, if CurrRdNode corresponds to the first\r
-  "QWordMemory ()" ASL macro, the function will return the Resource Data\r
-  node corresponding to the "Interrupt ()" ASL macro.\r
-  Name (_CRS, ResourceTemplate() {\r
-      QwordMemory (...) {...},\r
-      Interrupt (...) {...}\r
-    }\r
-  )\r
-\r
-  The CurrRdNode Resource Data node must be defined in an object named "_CRS"\r
-  and defined by a "Name ()" ASL function.\r
-\r
-  @ingroup UserApis\r
-\r
-  @param  [in]  CurrRdNode   Pointer to the current Resource Data element of\r
-                             the "_CRS" variable.\r
-  @param  [out] OutRdNode    Pointer to the Resource Data element following\r
-                             the CurrRdNode.\r
-                             Contain a NULL pointer if CurrRdNode is the\r
-                             last Resource Data element in the list.\r
-                             The "End Tag" is not considered as a resource\r
-                             data element and is not returned.\r
-\r
-  @retval EFI_SUCCESS             The function completed successfully.\r
-  @retval EFI_INVALID_PARAMETER   Invalid parameter.\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-AmlNameOpCrsGetNextRdNode (\r
-  IN  AML_DATA_NODE_HANDLE  CurrRdNode,\r
-  OUT AML_DATA_NODE_HANDLE  *OutRdNode\r
-  )\r
-{\r
-  return AmlNameOpGetNextRdNode (CurrRdNode, OutRdNode);\r
-}\r
-\r
-#endif // DISABLE_NEW_DEPRECATED_INTERFACES\r
index 32c3ab534d0b7e40286f812f6ce2f22b0dac774b..332962bed441ee03f1f31cef4e07b7d189d71ce9 100644 (file)
@@ -1406,79 +1406,3 @@ error_handler:
 \r
   return Status;\r
 }\r
-\r
-// DEPRECATED APIS\r
-#ifndef DISABLE_NEW_DEPRECATED_INTERFACES\r
-\r
-/** DEPRECATED API\r
-\r
-  Add an Interrupt Resource Data node.\r
-\r
-  This function creates a Resource Data element corresponding to the\r
-  "Interrupt ()" ASL function, stores it in an AML Data Node.\r
-\r
-  It then adds it after the input CurrRdNode in the list of resource data\r
-  element.\r
-\r
-  The Resource Data effectively created is an Extended Interrupt Resource\r
-  Data. See ACPI 6.3 specification, s6.4.3.6 "Extended Interrupt Descriptor"\r
-  for more information about Extended Interrupt Resource Data.\r
-\r
-  The Extended Interrupt contains one single interrupt.\r
-\r
-  This function allocates memory to create a data node. It is the caller's\r
-  responsibility to either:\r
-   - attach this node to an AML tree;\r
-   - delete this node.\r
-\r
-  Note: The _CRS node must be defined using the ASL Name () function.\r
-        e.g. Name (_CRS, ResourceTemplate () {\r
-               ...\r
-             }\r
-\r
-  @ingroup UserApis\r
-\r
-  @param  [in]  NameOpCrsNode    NameOp object node defining a "_CRS" object.\r
-                                 Must have an OpCode=AML_NAME_OP, SubOpCode=0.\r
-                                 NameOp object nodes are defined in ASL\r
-                                 using the "Name ()" function.\r
-  @param  [in]  ResourceConsumer The device consumes the specified interrupt\r
-                                 or produces it for use by a child device.\r
-  @param  [in]  EdgeTriggered    The interrupt is edge triggered or\r
-                                 level triggered.\r
-  @param  [in]  ActiveLow        The interrupt is active-high or active-low.\r
-  @param  [in]  Shared           The interrupt can be shared with other\r
-                                 devices or not (Exclusive).\r
-  @param  [in]  IrqList          Interrupt list. Must be non-NULL.\r
-  @param  [in]  IrqCount         Interrupt count. Must be non-zero.\r
-\r
-\r
-  @retval EFI_SUCCESS             The function completed successfully.\r
-  @retval EFI_INVALID_PARAMETER   Invalid parameter.\r
-  @retval EFI_OUT_OF_RESOURCES    Could not allocate memory.\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-AmlCodeGenCrsAddRdInterrupt (\r
-  IN  AML_OBJECT_NODE_HANDLE  NameOpCrsNode,\r
-  IN  BOOLEAN                 ResourceConsumer,\r
-  IN  BOOLEAN                 EdgeTriggered,\r
-  IN  BOOLEAN                 ActiveLow,\r
-  IN  BOOLEAN                 Shared,\r
-  IN  UINT32                  *IrqList,\r
-  IN  UINT8                   IrqCount\r
-  )\r
-{\r
-  return AmlCodeGenRdInterrupt (\r
-           ResourceConsumer,\r
-           EdgeTriggered,\r
-           ActiveLow,\r
-           Shared,\r
-           IrqList,\r
-           IrqCount,\r
-           NameOpCrsNode,\r
-           NULL\r
-           );\r
-}\r
-\r
-#endif // DISABLE_NEW_DEPRECATED_INTERFACES\r