]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Option.h
Update to support to produce Component Name and & Component Name 2 protocol based...
[mirror_edk2.git] / MdeModulePkg / Universal / Network / Mtftp4Dxe / Mtftp4Option.h
index 3bd7574eb25e1c0535616922eb8b9a32c672d80d..2595dc2795a42cb6175a821e6f6e790c108e8683 100644 (file)
@@ -1,73 +1,73 @@
-/** @file
-
-Copyright (c) 2006, 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
-
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-
-Module Name:
-
-  Mtftp4Option.h
-
-Abstract:
-
-  Mtftp4 option process routines.
-
-
-**/
-
-#ifndef __EFI_MTFTP4_OPTION_H__
-#define __EFI_MTFTP4_OPTION_H__
-
-enum {
-  MTFTP4_SUPPORTED_OPTIONS = 4,
-  MTFTP4_OPCODE_LEN        = 2,
-  MTFTP4_ERRCODE_LEN       = 2,
-  MTFTP4_BLKNO_LEN         = 2,
-  MTFTP4_DATA_HEAD_LEN     = 4,
-
-  MTFTP4_BLKSIZE_EXIST     = 0x01,
-  MTFTP4_TIMEOUT_EXIST     = 0x02,
-  MTFTP4_TSIZE_EXIST       = 0x04,
-  MTFTP4_MCAST_EXIST       = 0x08
-};
-
-typedef struct {
-  UINT16                    BlkSize;
-  UINT8                     Timeout;
-  UINT32                    Tsize;
-  IP4_ADDR                  McastIp;
-  UINT16                    McastPort;
-  BOOLEAN                   Master;
-  UINT32                    Exist;
-} MTFTP4_OPTION;
-
-EFI_STATUS
-Mtftp4ExtractOptions (
-  IN  EFI_MTFTP4_PACKET     *Packet,
-  IN  UINT32                PacketLen,
-  IN  OUT UINT32            *OptionCount,
-  OUT EFI_MTFTP4_OPTION     **OptionList OPTIONAL
-  );
-
-EFI_STATUS
-Mtftp4ParseOption (
-  IN  EFI_MTFTP4_OPTION     *OptionList,
-  IN  UINT32                Count,
-  IN  BOOLEAN               Request,
-  OUT MTFTP4_OPTION         *Option
-  );
-
-EFI_STATUS
-Mtftp4ParseOptionOack (
-  IN  EFI_MTFTP4_PACKET     *Packet,
-  IN  UINT32                PacketLen,
-  OUT MTFTP4_OPTION         *Option
-  );
-
-extern UINT8  *mMtftp4SupportedOptions[MTFTP4_SUPPORTED_OPTIONS];
-#endif
+/** @file\r
+\r
+Copyright (c) 2006, Intel Corporation\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
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+Module Name:\r
+\r
+  Mtftp4Option.h\r
+\r
+Abstract:\r
+\r
+  Mtftp4 option process routines.\r
+\r
+\r
+**/\r
+\r
+#ifndef __EFI_MTFTP4_OPTION_H__\r
+#define __EFI_MTFTP4_OPTION_H__\r
+\r
+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
+};\r
+\r
+typedef struct {\r
+  UINT16                    BlkSize;\r
+  UINT8                     Timeout;\r
+  UINT32                    Tsize;\r
+  IP4_ADDR                  McastIp;\r
+  UINT16                    McastPort;\r
+  BOOLEAN                   Master;\r
+  UINT32                    Exist;\r
+} MTFTP4_OPTION;\r
+\r
+EFI_STATUS\r
+Mtftp4ExtractOptions (\r
+  IN  EFI_MTFTP4_PACKET     *Packet,\r
+  IN  UINT32                PacketLen,\r
+  IN  OUT UINT32            *OptionCount,\r
+  OUT EFI_MTFTP4_OPTION     **OptionList OPTIONAL\r
+  );\r
+\r
+EFI_STATUS\r
+Mtftp4ParseOption (\r
+  IN  EFI_MTFTP4_OPTION     *OptionList,\r
+  IN  UINT32                Count,\r
+  IN  BOOLEAN               Request,\r
+  OUT MTFTP4_OPTION         *Option\r
+  );\r
+\r
+EFI_STATUS\r
+Mtftp4ParseOptionOack (\r
+  IN  EFI_MTFTP4_PACKET     *Packet,\r
+  IN  UINT32                PacketLen,\r
+  OUT MTFTP4_OPTION         *Option\r
+  );\r
+\r
+extern UINT8  *mMtftp4SupportedOptions[MTFTP4_SUPPORTED_OPTIONS];\r
+#endif\r