]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/DevicePathDxe/DevicePath.h
Code scrub DxeIpl, Runtime, DevicePath, FvbServicesLib, DiskIo, Partition, English...
[mirror_edk2.git] / MdeModulePkg / Universal / DevicePathDxe / DevicePath.h
index b1f398ddad4a29780d8c7b743c67dd037c3f8b35..7baa48bca72d80b445185bf93b7a75870a4d4b58 100644 (file)
@@ -31,14 +31,9 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include <Library/DevicePathLib.h>\r
 #include <Library/PcdLib.h>\r
 \r
-extern const EFI_GUID mEfiDevicePathMessagingUartFlowControlGuid;\r
-extern const EFI_GUID mEfiDevicePathMessagingSASGuid;\r
 \r
 #define MAX_CHAR                   480\r
 \r
-#define MIN_ALIGNMENT_SIZE         sizeof(UINTN)\r
-#define ALIGN_SIZE(a)              ((a % MIN_ALIGNMENT_SIZE) ? MIN_ALIGNMENT_SIZE - (a % MIN_ALIGNMENT_SIZE) : 0)\r
-\r
 #define IS_COMMA(a)                ((a) == L',')\r
 #define IS_HYPHEN(a)               ((a) == L'-')\r
 #define IS_DOT(a)                  ((a) == L'.')\r
@@ -47,11 +42,8 @@ extern const EFI_GUID mEfiDevicePathMessagingSASGuid;
 #define IS_SLASH(a)                ((a) == L'/')\r
 #define IS_NULL(a)                 ((a) == L'\0')\r
 \r
-#define DEVICE_NODE_END            1\r
-#define DEVICE_PATH_INSTANCE_END   2\r
-#define DEVICE_PATH_END            3\r
 \r
-#define SET_DEVICE_PATH_INSTANCE_END_NODE(a) {                \\r
+#define SET_DEVICE_PATH_INSTANCE_END_NODE(a) {           \\r
     (a)->Type       = END_DEVICE_PATH_TYPE;              \\r
     (a)->SubType    = END_INSTANCE_DEVICE_PATH_SUBTYPE;  \\r
     (a)->Length[0]  = sizeof (EFI_DEVICE_PATH_PROTOCOL); \\r