]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Option.h
[Change summary]:
[mirror_edk2.git] / MdeModulePkg / Universal / Network / Mtftp4Dxe / Mtftp4Option.h
index 3e450101cd1b042d445e0877a9506898b63deada..48687c18141ef1c5da8e9f40e86751f4a6381bd9 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Routines to process MTFTP4 options.\r
   \r
-Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
+Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -16,20 +16,16 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #ifndef __EFI_MTFTP4_OPTION_H__\r
 #define __EFI_MTFTP4_OPTION_H__\r
 \r
+#define MTFTP4_SUPPORTED_OPTIONS  4\r
+#define MTFTP4_OPCODE_LEN         2\r
+#define MTFTP4_ERRCODE_LEN        2\r
+#define MTFTP4_BLKNO_LEN          2\r
+#define MTFTP4_DATA_HEAD_LEN      4\r
 \r
-\r
-typedef enum {\r
-  MTFTP4_SUPPORTED_OPTIONS = 4,\r
-  MTFTP4_OPCODE_LEN        = 2,\r
-  MTFTP4_ERRCODE_LEN       = 2,\r
-  MTFTP4_BLKNO_LEN         = 2,\r
-  MTFTP4_DATA_HEAD_LEN     = 4,\r
-\r
-  MTFTP4_BLKSIZE_EXIST     = 0x01,\r
-  MTFTP4_TIMEOUT_EXIST     = 0x02,\r
-  MTFTP4_TSIZE_EXIST       = 0x04,\r
-  MTFTP4_MCAST_EXIST       = 0x08\r
-} MTFTP4_OPTION_CONST_VALUE;\r
+#define MTFTP4_BLKSIZE_EXIST      0x01\r
+#define MTFTP4_TIMEOUT_EXIST      0x02\r
+#define MTFTP4_TSIZE_EXIST        0x04\r
+#define MTFTP4_MCAST_EXIST        0x08\r
 \r
 typedef struct {\r
   UINT16                    BlkSize;\r