]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Protocol/Mtftp6.h
MdePkg: introduce MM communicate 2 protocol
[mirror_edk2.git] / MdePkg / Include / Protocol / Mtftp6.h
index b06a6719d535cd4655ae24bdec6144f146ab32b5..bb9f2d2f2137a36f63a20f1445c106f7c034f781 100644 (file)
@@ -1,16 +1,12 @@
 /** @file\r
-  UEFI Multicast Trivial File Tranfer Protocol v6 Definition, which is built upon\r
+  UEFI Multicast Trivial File Transfer Protocol v6 Definition, which is built upon\r
   the EFI UDPv6 Protocol and provides basic services for client-side unicast and/or\r
   multicast TFTP operations.\r
 \r
-  Copyright (c) 2008 - 2010, Intel Corporation. All rights reserved.<BR>\r
-  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
+  Copyright (c) 2008 - 2011, Intel Corporation. All rights reserved.<BR>\r
+  (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>\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
+  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
   @par Revision Reference:\r
   This Protocol is introduced in UEFI Specification 2.2\r
@@ -70,7 +66,7 @@ typedef struct _EFI_MTFTP6_TOKEN    EFI_MTFTP6_TOKEN;
 ///\r
 /// The MTFTPv6 operation was illegal.\r
 ///\r
-#define EFI_MTFTP6_ERRORCODE_ILLEGAL_OPERATION     6\r
+#define EFI_MTFTP6_ERRORCODE_ILLEGAL_OPERATION     4\r
 ///\r
 /// The transfer ID is unknown.\r
 ///\r
@@ -265,7 +261,7 @@ typedef struct {
   ///\r
   UINT8                   SupportedOptionCount;\r
   ///\r
-  /// An array of option strings that are recognized and supported by\r
+  /// An array of null-terminated ASCII option strings that are recognized and supported by\r
   /// this EFI MTFTPv6 Protocol driver implementation. The buffer is\r
   /// read only to the caller and the caller should NOT free the buffer.\r
   ///\r
@@ -304,8 +300,8 @@ typedef struct {
 /// EFI_MTFTP6_OPTION\r
 ///\r
 typedef struct {\r
-  UINT8                  *OptionStr; ///< Pointer to the ASCIIZ MTFTPv6 option string.\r
-  UINT8                  *ValueStr;  ///< Pointer to the ASCIIZ MTFTPv6 value string.\r
+  UINT8                  *OptionStr; ///< Pointer to the null-terminated ASCII MTFTPv6 option string.\r
+  UINT8                  *ValueStr;  ///< Pointer to the null-terminated ASCII MTFTPv6 value string.\r
 } EFI_MTFTP6_OPTION;\r
 \r
 /**\r
@@ -323,7 +319,7 @@ typedef struct {
   @param[in] PacketLen     Indicates the length of the packet.\r
   @param[in] Packet        Pointer to an MTFTPv6 packet.\r
 \r
-  @retval EFI_SUCCESS      Operation sucess.\r
+  @retval EFI_SUCCESS      Operation success.\r
   @retval Others           Aborts session.\r
 \r
 **/\r
@@ -350,7 +346,7 @@ EFI_STATUS
                            EFI_MTFTP6_PROTOCOL.WriteFile() or EFI_MTFTP6_PROTOCOL.ReadDirectory()\r
                            functions by the caller.\r
 \r
-  @retval EFI_SUCCESS      Operation sucess.\r
+  @retval EFI_SUCCESS      Operation success.\r
   @retval Others           Aborts session.\r
 \r
 **/\r
@@ -377,7 +373,7 @@ EFI_STATUS
                            length the data available on output.\r
   @param[out]     Buffer   Pointer to the buffer where the data is stored.\r
 \r
-  @retval EFI_SUCCESS      Operation sucess.\r
+  @retval EFI_SUCCESS      Operation success.\r
   @retval Others           Aborts session.\r
 \r
 **/\r
@@ -409,11 +405,11 @@ struct _EFI_MTFTP6_TOKEN {
   ///\r
   EFI_MTFTP6_OVERRIDE_DATA    *OverrideData;\r
   ///\r
-  /// Pointer to the ASCIIZ file name string.\r
+  /// Pointer to the null-terminated ASCII file name string.\r
   ///\r
   UINT8                       *Filename;\r
   ///\r
-  /// Pointer to the ASCIIZ mode string. If NULL, octet is used.\r
+  /// Pointer to the null-terminated ASCII mode string. If NULL, octet is used.\r
   ///\r
   UINT8                       *ModeStr;\r
   ///\r
@@ -534,8 +530,8 @@ EFI_STATUS
   @param[in]  OverrideData       Data that is used to override the existing parameters. If NULL, the\r
                                  default parameters that were set in the EFI_MTFTP6_PROTOCOL.Configure()\r
                                  function are used.\r
-  @param[in]  Filename           Pointer to ASCIIZ file name string.\r
-  @param[in]  ModeStr            Pointer to ASCIIZ mode string. If NULL, octet will be used\r
+  @param[in]  Filename           Pointer to null-terminated ASCII file name string.\r
+  @param[in]  ModeStr            Pointer to null-terminated ASCII mode string. If NULL, octet will be used\r
   @param[in]  OptionCount        Number of option/value string pairs in OptionList.\r
   @param[in]  OptionList         Pointer to array of option/value string pairs. Ignored if\r
                                  OptionCount is zero.\r