]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Bus/Pci/NvmExpressPei/DevicePath.c
MdeModulePkg/NvmExpressPei: Use PCI_DEVICE_PPI to manage Nvme device
[mirror_edk2.git] / MdeModulePkg / Bus / Pci / NvmExpressPei / DevicePath.c
index 9b454a7dd8f42db009e0d2d902cacee42cf88347..307045be70ea0da13513eb5cc6677b260a4f8214 100644 (file)
@@ -37,50 +37,6 @@ EFI_DEVICE_PATH_PROTOCOL  mNvmeEndDevicePathNodeTemplate = {
   }\r
 };\r
 \r
-/**\r
-  Returns the 16-bit Length field of a device path node.\r
-\r
-  Returns the 16-bit Length field of the device path node specified by Node.\r
-  Node is not required to be aligned on a 16-bit boundary, so it is recommended\r
-  that a function such as ReadUnaligned16() be used to extract the contents of\r
-  the Length field.\r
-\r
-  If Node is NULL, then ASSERT().\r
-\r
-  @param  Node      A pointer to a device path node data structure.\r
-\r
-  @return The 16-bit Length field of the device path node specified by Node.\r
-\r
-**/\r
-UINTN\r
-DevicePathNodeLength (\r
-  IN CONST VOID  *Node\r
-  )\r
-{\r
-  ASSERT (Node != NULL);\r
-  return ReadUnaligned16 ((UINT16 *)&((EFI_DEVICE_PATH_PROTOCOL *)(Node))->Length[0]);\r
-}\r
-\r
-/**\r
-  Returns a pointer to the next node in a device path.\r
-\r
-  If Node is NULL, then ASSERT().\r
-\r
-  @param  Node    A pointer to a device path node data structure.\r
-\r
-  @return a pointer to the device path node that follows the device path node\r
-  specified by Node.\r
-\r
-**/\r
-EFI_DEVICE_PATH_PROTOCOL *\r
-NextDevicePathNode (\r
-  IN CONST VOID  *Node\r
-  )\r
-{\r
-  ASSERT (Node != NULL);\r
-  return (EFI_DEVICE_PATH_PROTOCOL *)((UINT8 *)(Node) + DevicePathNodeLength (Node));\r
-}\r
-\r
 /**\r
   Get the size of the current device path instance.\r
 \r