/** @file\r
Mtftp routines for PxeBc.\r
\r
-Copyright (c) 2007, Intel Corporation.<BR>\r
-All rights reserved. This program and the accompanying materials\r
+Copyright (c) 2007 - 2009, 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
#ifndef __EFI_PXEBC_MTFTP_H__\r
#define __EFI_PXEBC_MTFTP_H__\r
\r
-typedef enum {\r
- PXE_MTFTP_OPTION_BLKSIZE_INDEX,\r
- PXE_MTFTP_OPTION_TIMEOUT_INDEX,\r
- PXE_MTFTP_OPTION_TSIZE_INDEX,\r
- PXE_MTFTP_OPTION_MULTICAST_INDEX,\r
- PXE_MTFTP_OPTION_MAXIMUM_INDEX\r
-} PXE_MTFTP_OPTION_ENUM_TYPES;\r
+#define PXE_MTFTP_OPTION_BLKSIZE_INDEX 0\r
+#define PXE_MTFTP_OPTION_TIMEOUT_INDEX 1\r
+#define PXE_MTFTP_OPTION_TSIZE_INDEX 2\r
+#define PXE_MTFTP_OPTION_MULTICAST_INDEX 3\r
+#define PXE_MTFTP_OPTION_MAXIMUM_INDEX 4\r
\r
\r
/**\r
IN UINT8 *Filename,\r
IN UINTN *BlockSize,\r
IN OUT UINT64 *BufferSize\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
@retval EFI_SUCCESS Read the data success from the special file.\r
@retval EFI_DEVICE_ERROR The network device encountered an error during this operation.\r
@retval other Read data from file failed.\r
+ \r
**/\r
EFI_STATUS\r
PxeBcTftpReadFile (\r
IN UINT8 *BufferPtr,\r
IN OUT UINT64 *BufferSize,\r
IN BOOLEAN DontUseBuffer\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
@retval EFI_SUCCESS Write the data success into the special file.\r
@retval EFI_DEVICE_ERROR The network device encountered an error during this operation.\r
@retval other Write data into file failed.\r
-\r
+ \r
**/\r
EFI_STATUS\r
PxeBcTftpWriteFile (\r
IN UINTN *BlockSize,\r
IN UINT8 *BufferPtr,\r
IN OUT UINT64 *BufferSize\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
IN UINT8 *BufferPtr,\r
IN OUT UINT64 *BufferSize,\r
IN BOOLEAN DontUseBuffer\r
- )\r
-;\r
+ );\r
\r
#endif\r
\r