]> git.proxmox.com Git - mirror_edk2.git/commitdiff
apply for doxgen format comments.
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 22 Oct 2008 09:27:42 +0000 (09:27 +0000)
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 22 Oct 2008 09:27:42 +0000 (09:27 +0000)
move 2 structure around PXE Base Code Protocol from UefiPxe.h to PxeBaseCode.h.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6187 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Include/Protocol/PxeBaseCode.h
MdePkg/Include/Uefi/UefiMultiPhase.h
MdePkg/Include/Uefi/UefiPxe.h
MdePkg/Include/Uefi/UefiTcgPlatform.h

index 615007535f90740e07569e0f294846695d05d139..afc0b664dff937aacba63ae01c707ebc8e83b76d 100644 (file)
@@ -182,6 +182,38 @@ typedef struct {
   UINT16                      TransmitTimeout;\r
 } EFI_PXE_BASE_CODE_MTFTP_INFO;\r
 \r
+///\r
+/// Packet definitions\r
+///\r
+typedef struct {\r
+  UINT8   BootpOpcode;\r
+  UINT8   BootpHwType;\r
+  UINT8   BootpHwAddrLen;\r
+  UINT8   BootpGateHops;\r
+  UINT32  BootpIdent;\r
+  UINT16  BootpSeconds;\r
+  UINT16  BootpFlags;\r
+  UINT8   BootpCiAddr[4];\r
+  UINT8   BootpYiAddr[4];\r
+  UINT8   BootpSiAddr[4];\r
+  UINT8   BootpGiAddr[4];\r
+  UINT8   BootpHwAddr[16];\r
+  UINT8   BootpSrvName[64];\r
+  UINT8   BootpBootFile[128];\r
+  UINT32  DhcpMagik;\r
+  UINT8   DhcpOptions[56];\r
+} EFI_PXE_BASE_CODE_DHCPV4_PACKET;\r
+\r
+typedef union {\r
+  UINT8                           Raw[1472];\r
+  EFI_PXE_BASE_CODE_DHCPV4_PACKET Dhcpv4;\r
+\r
+  ///\r
+  ///  EFI_PXE_BASE_CODE_DHCPV6_PACKET     Dhcpv6;\r
+  ///\r
+} EFI_PXE_BASE_CODE_PACKET;\r
+\r
+\r
 //\r
 // PXE Base Code Mode structure\r
 //\r
index 4fc02197fcf94990ca3b26edb1190d9cb8094d24..87f2fcc7aac7e79cd6e7758dd578dcacd76f9ee8 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   This includes some definitions introduced in UEFI that will be used in both PEI and DXE phases.\r
 \r
-  Copyright (c) 2006, Intel Corporation                                                         \r
+  Copyright (c) 2006 - 2008, 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
@@ -70,38 +70,32 @@ typedef struct {
 #define WIN_CERT_TYPE_EFI_PKCS115   0x0EF0\r
 #define WIN_CERT_TYPE_EFI_GUID      0x0EF1\r
 \r
-/**\r
-   \r
-  The WIN_CERTIFICATE structure is part of the PE/COFF\r
-  specification and has the following definition:\r
-\r
-  @param dwLength   The length of the entire certificate,\r
-                    including the length of the header, in\r
-                    bytes.\r
-\r
-  @param wRevision  The revision level of the WIN_CERTIFICATE\r
-                    structure. The current revision level is\r
-                    0x0200.\r
-\r
-  @param wCertificateType   The certificate type. See\r
-                            WIN_CERT_TYPE_xxx for the UEFI\r
-                            certificate types. The UEFI\r
-                            specification reserves the range of\r
-                            certificate type values from 0x0EF0\r
-                            to 0x0EFF.\r
-\r
-  @param bCertificate   The actual certificate. The format of\r
-                        the certificate depends on\r
-                        wCertificateType. The format of the UEFI\r
-                        certificates is defined below.\r
-\r
-\r
-**/\r
+///\r
+/// The WIN_CERTIFICATE structure is part of the PE/COFF specification.\r
+///\r
 typedef struct _WIN_CERTIFICATE {\r
+  ///\r
+  /// The length of the entire certificate,  \r
+  /// including the length of the header, in bytes.                                \r
+  ///\r
   UINT32  dwLength;\r
+  ///\r
+  /// The revision level of the WIN_CERTIFICATE \r
+  /// structure. The current revision level is 0x0200.                                   \r
+  ///\r
   UINT16  wRevision;\r
+  ///\r
+  /// The certificate type. See WIN_CERT_TYPE_xxx for the UEFI      \r
+  /// certificate types. The UEFI specification reserves the range of \r
+  /// certificate type values from 0x0EF0 to 0x0EFF.                          \r
+  ///\r
   UINT16  wCertificateType;\r
-  //UINT8 bCertificate[ANYSIZE_ARRAY];\r
+  ///\r
+  /// The following is the actual certificate. The format of   \r
+  /// the certificate depends on wCertificateType.\r
+  ///\r
+  /// UINT8 bCertificate[ANYSIZE_ARRAY];\r
+  ///\r
 } WIN_CERTIFICATE;\r
 \r
 ///\r
@@ -110,9 +104,9 @@ typedef struct _WIN_CERTIFICATE {
 #define EFI_CERT_TYPE_RSA2048_SHA256_GUID \\r
   {0xa7717414, 0xc616, 0x4977, {0x94, 0x20, 0x84, 0x47, 0x12, 0xa7, 0x35, 0xbf } }\r
 \r
-///\r
-/// WIN_CERTIFICATE_UEFI_GUID.CertData\r
-/// \r
+//\r
+// WIN_CERTIFICATE_UEFI_GUID.CertData\r
+// \r
 typedef struct _EFI_CERT_BLOCK_RSA_2048_SHA256 {\r
   UINT32  HashType;\r
   UINT8   PublicKey[256];\r
@@ -120,97 +114,95 @@ typedef struct _EFI_CERT_BLOCK_RSA_2048_SHA256 {
 } EFI_CERT_BLOCK_RSA_2048_SHA256;\r
 \r
 \r
-/**\r
-   \r
-  @param Hdr  This is the standard WIN_CERTIFICATE header, where\r
-              wCertificateType is set to\r
-              WIN_CERT_TYPE_UEFI_GUID.\r
-\r
-  @param CertType   This is the unique id which determines the\r
-                    format of the CertData. In this case, the\r
-                    value is EFI_CERT_TYPE_RSA2048_SHA256_GUID.\r
-\r
-  @param CertData   This is the certificate data. The format of\r
-                    the data is determined by the CertType. In\r
-                    this case the value is\r
-                    EFI_CERT_BLOCK_RSA_2048_SHA256.\r
-\r
-**/\r
+///\r
+/// Certificate which encapsulates a GUID-specific digital signature\r
+///\r
 typedef struct _WIN_CERTIFICATE_UEFI_GUID {\r
+  ///\r
+  /// This is the standard WIN_CERTIFICATE header, where\r
+  /// wCertificateType is set to WIN_CERT_TYPE_UEFI_GUID. \r
+  ///                         \r
   WIN_CERTIFICATE   Hdr;\r
+  ///\r
+  /// This is the unique id which determines the \r
+  /// format of the CertData. In this case, the  \r
+  /// value is EFI_CERT_TYPE_RSA2048_SHA256_GUID.\r
+  ///\r
   EFI_GUID          CertType;\r
-  // UINT8            CertData[ANYSIZE_ARRAY];\r
+  /// \r
+  /// The following is the certificate data. The format of\r
+  /// the data is determined by the CertType. In this case the value is                     \r
+  /// EFI_CERT_BLOCK_RSA_2048_SHA256.            \r
+  ///\r
+  /// UINT8            CertData[ANYSIZE_ARRAY];\r
+  ///\r
 } WIN_CERTIFICATE_UEFI_GUID;\r
 \r
 \r
-/**\r
-   \r
-  Certificate which encapsulates the RSASSA_PKCS1-v1_5 digital\r
-  signature.\r
-  \r
-  The WIN_CERTIFICATE_UEFI_PKCS1_15 structure is derived from\r
-  WIN_CERTIFICATE and encapsulate the information needed to  \r
-  implement the RSASSA-PKCS1-v1_5 digital signature algorithm as  \r
-  specified in RFC2437.  \r
-  \r
-  @param Hdr  This is the standard WIN_CERTIFICATE header, where\r
-              wCertificateType is set to\r
-              WIN_CERT_TYPE_UEFI_PKCS1_15.\r
-  \r
-  @param HashAlgorithm  This is the hashing algorithm which was\r
-                        performed on the UEFI executable when\r
-                        creating the digital signature. It is\r
-                        one of the enumerated values pre-defined\r
-                        in Section 26.4.1. See\r
-                        EFI_HASH_ALGORITHM_x.\r
-  \r
-  @param Signature  This is the actual digital signature. The\r
-                    size of the signature is the same size as\r
-                    the key (1024-bit key is 128 bytes) and can\r
-                    be determined by subtracting the length of\r
-                    the other parts of this header from the\r
-                    total length of the certificate as found in\r
-                    Hdr.dwLength.\r
-\r
-**/\r
-typedef struct _WIN_CERTIFICATE_EFI_PKCS1_15 {\r
+///   \r
+/// Certificate which encapsulates the RSASSA_PKCS1-v1_5 digital signature.\r
+///  \r
+/// The WIN_CERTIFICATE_UEFI_PKCS1_15 structure is derived from\r
+/// WIN_CERTIFICATE and encapsulate the information needed to  \r
+/// implement the RSASSA-PKCS1-v1_5 digital signature algorithm as  \r
+/// specified in RFC2437.  \r
+///  \r
+typedef struct _WIN_CERTIFICATE_EFI_PKCS1_15 {     \r
+  ///\r
+  /// This is the standard WIN_CERTIFICATE header, where \r
+  /// wCertificateType is set to WIN_CERT_TYPE_UEFI_PKCS1_15.                       \r
+  ///\r
   WIN_CERTIFICATE Hdr;\r
+  ///\r
+  /// This is the hashing algorithm which was performed on the\r
+  /// UEFI executable when creating the digital signature. \r
+  ///\r
   EFI_GUID        HashAlgorithm;\r
-  // UINT8 Signature[ANYSIZE_ARRAY];\r
+  ///\r
+  /// The following is the actual digital signature. The   \r
+  /// size of the signature is the same size as the key \r
+  /// (1024-bit key is 128 bytes) and can be determined by \r
+  /// subtracting the length of the other parts of this header\r
+  /// from the total length of the certificate as found in \r
+  /// Hdr.dwLength.                               \r
+  ///\r
+  /// UINT8 Signature[ANYSIZE_ARRAY];\r
+  ///\r
 } WIN_CERTIFICATE_EFI_PKCS1_15;\r
 \r
 \r
-/**\r
-   \r
-  AuthInfo is a WIN_CERTIFICATE using the wCertificateType\r
-  WIN_CERTIFICATE_UEFI_GUID and the CertType\r
-  EFI_CERT_TYPE_RSA2048_SHA256. If the attribute specifies\r
-  authenticated access, then the Data buffer should begin with an\r
-  authentication descriptor prior to the data payload and DataSize\r
-  should reflect the the data.and descriptor size. The caller\r
-  shall digest the Monotonic Count value and the associated data\r
-  for the variable update using the SHA-256 1-way hash algorithm.\r
-  The ensuing the 32-byte digest will be signed using the private\r
-  key associated w/ the public/private 2048-bit RSA key-pair. The\r
-  WIN_CERTIFICATE shall be used to describe the signature of the\r
-  Variable data *Data. In addition, the signature will also\r
-  include the MonotonicCount value to guard against replay attacks\r
-  \r
-  @param  MonotonicCount  Included in the signature of\r
-                          AuthInfo.Used to ensure freshness/no\r
-                          replay. Incremented during each\r
-                          "Write" access.\r
-  \r
-  @param AuthInfo   Provides the authorization for the variable\r
-                    access. It is a signature across the\r
-                    variable data and the  Monotonic Count\r
-                    value. Caller uses Private key that is\r
-                    associated with a public key that has been\r
-                    provisioned via the key exchange.\r
 \r
-**/\r
+///   \r
+/// AuthInfo is a WIN_CERTIFICATE using the wCertificateType\r
+/// WIN_CERTIFICATE_UEFI_GUID and the CertType\r
+/// EFI_CERT_TYPE_RSA2048_SHA256. If the attribute specifies\r
+/// authenticated access, then the Data buffer should begin with an\r
+/// authentication descriptor prior to the data payload and DataSize\r
+/// should reflect the the data.and descriptor size. The caller\r
+/// shall digest the Monotonic Count value and the associated data\r
+/// for the variable update using the SHA-256 1-way hash algorithm.\r
+/// The ensuing the 32-byte digest will be signed using the private\r
+/// key associated w/ the public/private 2048-bit RSA key-pair. The\r
+/// WIN_CERTIFICATE shall be used to describe the signature of the\r
+/// Variable data *Data. In addition, the signature will also\r
+/// include the MonotonicCount value to guard against replay attacks\r
+///  \r
 typedef struct {\r
+  ///\r
+  /// Included in the signature of        \r
+  /// AuthInfo.Used to ensure freshness/no\r
+  /// replay. Incremented during each     \r
+  /// "Write" access.   \r
+  ///                  \r
   UINT64                      MonotonicCount;\r
+  ///\r
+  /// Provides the authorization for the variable \r
+  /// access. It is a signature across the        \r
+  /// variable data and the  Monotonic Count      \r
+  /// value. Caller uses Private key that is      \r
+  /// associated with a public key that has been  \r
+  /// provisioned via the key exchange.           \r
+  ///\r
   WIN_CERTIFICATE_UEFI_GUID   AuthInfo;\r
 } EFI_VARIABLE_AUTHENTICATION;\r
 \r
index ec4245239f5f6ed4a7cff499b3cb432473851428..5fe479ae1204f70e69403d113cf2fbf98222943b 100644 (file)
@@ -3,7 +3,7 @@
   structure prototypes, global variables and constants that\r
   are needed for porting PXE to EFI.\r
   \r
-  Copyright (c) 2006, Intel Corporation                                                         \r
+  Copyright (c) 2006 - 2008, 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
@@ -23,8 +23,6 @@
 \r
 #pragma pack(1)\r
 \r
-\r
-\r
 #define PXE_BUSTYPE(a, b, c, d) \\r
     ( \\r
       (((PXE_UINT32) (d) & 0xFF) << 24) | (((PXE_UINT32) (c) & 0xFF) << 16) | (((PXE_UINT32) (b) & 0xFF) << 8) | \\r
    (((PXE_UINT64)(n) & 0xFF00000000000000ULL) >> 56))\r
 \r
 \r
-#define PXE_CPBSIZE_NOT_USED  0               // zero\r
-#define PXE_DBSIZE_NOT_USED   0               // zero\r
-#define PXE_CPBADDR_NOT_USED  (PXE_UINT64) 0  // zero\r
-#define PXE_DBADDR_NOT_USED   (PXE_UINT64) 0  // zero\r
-#define PXE_CONST             const\r
+#define PXE_CPBSIZE_NOT_USED  0               ///< zero\r
+#define PXE_DBSIZE_NOT_USED   0               ///< zero\r
+#define PXE_CPBADDR_NOT_USED  (PXE_UINT64) 0  ///< zero\r
+#define PXE_DBADDR_NOT_USED   (PXE_UINT64) 0  ///< zero\r
+#define PXE_CONST             CONST\r
 \r
 #define PXE_VOLATILE          volatile\r
 \r
@@ -83,7 +81,7 @@ typedef UINTN          PXE_UINTN;
 typedef UINT64      PXE_UINT64;\r
 \r
 typedef PXE_UINT8 PXE_BOOL;\r
-#define PXE_FALSE 0 // zero\r
+#define PXE_FALSE 0            ///< zero\r
 #define PXE_TRUE  (!PXE_FALSE)\r
 \r
 typedef PXE_UINT16      PXE_OPCODE;\r
@@ -213,33 +211,32 @@ typedef PXE_UINT16  PXE_OPFLAGS;
 //\r
 // No Opflags\r
 \r
-////////////////////////////////////////\r
-// UNDI Initialize\r
-//\r
+///\r
+/// UNDI Initialize\r
+///\r
 #define PXE_OPFLAGS_INITIALIZE_CABLE_DETECT_MASK    0x0001\r
 #define PXE_OPFLAGS_INITIALIZE_DETECT_CABLE         0x0000\r
 #define PXE_OPFLAGS_INITIALIZE_DO_NOT_DETECT_CABLE  0x0001\r
 \r
-//\r
-// //////////////////////////////////////\r
-// UNDI Reset\r
-//\r
+///\r
+///\r
+/// UNDI Reset\r
+///\r
 #define PXE_OPFLAGS_RESET_DISABLE_INTERRUPTS  0x0001\r
 #define PXE_OPFLAGS_RESET_DISABLE_FILTERS     0x0002\r
 \r
-//\r
-// //////////////////////////////////////\r
-// UNDI Shutdown\r
-//\r
-// No OpFlags\r
+///\r
+/// UNDI Shutdown\r
+///\r
+/// No OpFlags\r
 \r
-////////////////////////////////////////\r
-// UNDI Interrupt Enables\r
-//\r
-//\r
-// Select whether to enable or disable external interrupt signals.\r
-// Setting both enable and disable will return PXE_STATCODE_INVALID_OPFLAGS.\r
-//\r
+///\r
+/// UNDI Interrupt Enables\r
+///\r
+///\r
+/// Select whether to enable or disable external interrupt signals.\r
+/// Setting both enable and disable will return PXE_STATCODE_INVALID_OPFLAGS.\r
+///\r
 #define PXE_OPFLAGS_INTERRUPT_OPMASK  0xC000\r
 #define PXE_OPFLAGS_INTERRUPT_ENABLE  0x8000\r
 #define PXE_OPFLAGS_INTERRUPT_DISABLE 0x4000\r
@@ -269,14 +266,13 @@ typedef PXE_UINT16  PXE_OPFLAGS;
 ///\r
 #define PXE_OPFLAGS_INTERRUPT_SOFTWARE  0x0008\r
 \r
-//\r
-// //////////////////////////////////////\r
-// UNDI Receive Filters\r
-//\r
-//\r
-// Select whether to enable or disable receive filters.\r
-// Setting both enable and disable will return PXE_STATCODE_INVALID_OPCODE.\r
-//\r
+/// \r
+/// UNDI Receive Filters\r
+///\r
+///\r
+/// Select whether to enable or disable receive filters.\r
+/// Setting both enable and disable will return PXE_STATCODE_INVALID_OPCODE.\r
+///\r
 #define PXE_OPFLAGS_RECEIVE_FILTER_OPMASK   0xC000\r
 #define PXE_OPFLAGS_RECEIVE_FILTER_ENABLE   0x8000\r
 #define PXE_OPFLAGS_RECEIVE_FILTER_DISABLE  0x4000\r
@@ -318,293 +314,284 @@ typedef PXE_UINT16  PXE_OPFLAGS;
 ///\r
 #define PXE_OPFLAGS_RECEIVE_FILTER_ALL_MULTICAST  0x0010\r
 \r
-//\r
-// //////////////////////////////////////\r
-// UNDI Station Address\r
-//\r
+/// \r
+/// UNDI Station Address\r
+///\r
 #define PXE_OPFLAGS_STATION_ADDRESS_READ   0x0000\r
 #define PXE_OPFLAGS_STATION_ADDRESS_WRITE  0x0000\r
 #define PXE_OPFLAGS_STATION_ADDRESS_RESET  0x0001\r
 \r
-//\r
-// //////////////////////////////////////\r
-// UNDI Statistics\r
-//\r
+///\r
+/// UNDI Statistics\r
+///\r
 #define PXE_OPFLAGS_STATISTICS_READ   0x0000\r
 #define PXE_OPFLAGS_STATISTICS_RESET  0x0001\r
 \r
-//\r
-// //////////////////////////////////////\r
-// UNDI MCast IP to MAC\r
-//\r
-//\r
-// Identify the type of IP address in the CPB.\r
-//\r
+///\r
+/// UNDI MCast IP to MAC\r
+///\r
+///\r
+/// Identify the type of IP address in the CPB.\r
+///\r
 #define PXE_OPFLAGS_MCAST_IP_TO_MAC_OPMASK  0x0003\r
 #define PXE_OPFLAGS_MCAST_IPV4_TO_MAC       0x0000\r
 #define PXE_OPFLAGS_MCAST_IPV6_TO_MAC       0x0001\r
 \r
-//\r
-// //////////////////////////////////////\r
-// UNDI NvData\r
-//\r
-//\r
-// Select the type of non-volatile data operation.\r
-//\r
+///\r
+/// UNDI NvData\r
+///\r
+///\r
+/// Select the type of non-volatile data operation.\r
+///\r
 #define PXE_OPFLAGS_NVDATA_OPMASK 0x0001\r
 #define PXE_OPFLAGS_NVDATA_READ   0x0000\r
 #define PXE_OPFLAGS_NVDATA_WRITE  0x0001\r
 \r
-//\r
-// //////////////////////////////////////\r
-// UNDI Get Status\r
-//\r
-//\r
-// Return current interrupt status.  This will also clear any interrupts\r
-// that are currently set.  This can be used in a polling routine.  The\r
-// interrupt flags are still set and cleared even when the interrupts\r
-// are disabled.\r
-//\r
+///\r
+/// UNDI Get Status\r
+///\r
+///\r
+/// Return current interrupt status.  This will also clear any interrupts\r
+/// that are currently set.  This can be used in a polling routine.  The\r
+/// interrupt flags are still set and cleared even when the interrupts\r
+/// are disabled.\r
+///\r
 #define PXE_OPFLAGS_GET_INTERRUPT_STATUS  0x0001\r
 \r
-//\r
-// Return list of transmitted buffers for recycling.  Transmit buffers\r
-// must not be changed or unallocated until they have recycled.  After\r
-// issuing a transmit command, wait for a transmit complete interrupt.\r
-// When a transmit complete interrupt is received, read the transmitted\r
-// buffers.  Do not plan on getting one buffer per interrupt.  Some\r
-// NICs and UNDIs may transmit multiple buffers per interrupt.\r
-//\r
+///\r
+/// Return list of transmitted buffers for recycling.  Transmit buffers\r
+/// must not be changed or unallocated until they have recycled.  After\r
+/// issuing a transmit command, wait for a transmit complete interrupt.\r
+/// When a transmit complete interrupt is received, read the transmitted\r
+/// buffers.  Do not plan on getting one buffer per interrupt.  Some\r
+/// NICs and UNDIs may transmit multiple buffers per interrupt.\r
+///\r
 #define PXE_OPFLAGS_GET_TRANSMITTED_BUFFERS 0x0002\r
 \r
-//\r
-// //////////////////////////////////////\r
-// UNDI Fill Header\r
-//\r
+///\r
+/// UNDI Fill Header\r
+///\r
 #define PXE_OPFLAGS_FILL_HEADER_OPMASK      0x0001\r
 #define PXE_OPFLAGS_FILL_HEADER_FRAGMENTED  0x0001\r
 #define PXE_OPFLAGS_FILL_HEADER_WHOLE       0x0000\r
 \r
-//\r
-// //////////////////////////////////////\r
-// UNDI Transmit\r
-//\r
-//\r
-// S/W UNDI only.  Return after the packet has been transmitted.  A\r
-// transmit complete interrupt will still be generated and the transmit\r
-// buffer will have to be recycled.\r
-//\r
+///\r
+/// UNDI Transmit\r
+///\r
+///\r
+/// S/W UNDI only.  Return after the packet has been transmitted.  A\r
+/// transmit complete interrupt will still be generated and the transmit\r
+/// buffer will have to be recycled.\r
+///\r
 #define PXE_OPFLAGS_SWUNDI_TRANSMIT_OPMASK  0x0001\r
 #define PXE_OPFLAGS_TRANSMIT_BLOCK          0x0001\r
 #define PXE_OPFLAGS_TRANSMIT_DONT_BLOCK     0x0000\r
 \r
-//\r
-//\r
-//\r
 #define PXE_OPFLAGS_TRANSMIT_OPMASK     0x0002\r
 #define PXE_OPFLAGS_TRANSMIT_FRAGMENTED 0x0002\r
 #define PXE_OPFLAGS_TRANSMIT_WHOLE      0x0000\r
 \r
-//\r
-// //////////////////////////////////////\r
-// UNDI Receive\r
-//\r
-// No OpFlags\r
-//\r
+/// \r
+/// UNDI Receive\r
+///\r
+/// No OpFlags\r
+///\r
+\r
+///\r
+/// PXE STATFLAGS\r
+///\r
 typedef PXE_UINT16  PXE_STATFLAGS;\r
 \r
 #define PXE_STATFLAGS_INITIALIZE  0x0000\r
 \r
-//\r
-// //////////////////////////////////////\r
-// Common StatFlags that can be returned by all commands.\r
-//\r
-//\r
-// The COMMAND_COMPLETE and COMMAND_FAILED status flags must be\r
-// implemented by all UNDIs.  COMMAND_QUEUED is only needed by UNDIs\r
-// that support command queuing.\r
-//\r
+///\r
+/// Common StatFlags that can be returned by all commands.\r
+///\r
+///\r
+/// The COMMAND_COMPLETE and COMMAND_FAILED status flags must be\r
+/// implemented by all UNDIs.  COMMAND_QUEUED is only needed by UNDIs\r
+/// that support command queuing.\r
+///\r
 #define PXE_STATFLAGS_STATUS_MASK       0xC000\r
 #define PXE_STATFLAGS_COMMAND_COMPLETE  0xC000\r
 #define PXE_STATFLAGS_COMMAND_FAILED    0x8000\r
 #define PXE_STATFLAGS_COMMAND_QUEUED    0x4000\r
 \r
-//\r
-// //////////////////////////////////////\r
-// UNDI Get State\r
-//\r
+///\r
+/// UNDI Get State\r
+///\r
 #define PXE_STATFLAGS_GET_STATE_MASK        0x0003\r
 #define PXE_STATFLAGS_GET_STATE_INITIALIZED 0x0002\r
 #define PXE_STATFLAGS_GET_STATE_STARTED     0x0001\r
 #define PXE_STATFLAGS_GET_STATE_STOPPED     0x0000\r
 \r
-//\r
-// //////////////////////////////////////\r
-// UNDI Start\r
-//\r
-// No additional StatFlags\r
+///\r
+/// UNDI Start\r
+///\r
+/// No additional StatFlags\r
+///\r
 \r
-////////////////////////////////////////\r
-// UNDI Get Init Info\r
-//\r
+///\r
+/// UNDI Get Init Info\r
+///\r
 #define PXE_STATFLAGS_CABLE_DETECT_MASK           0x0001\r
 #define PXE_STATFLAGS_CABLE_DETECT_NOT_SUPPORTED  0x0000\r
 #define PXE_STATFLAGS_CABLE_DETECT_SUPPORTED      0x0001\r
 \r
-//\r
-// //////////////////////////////////////\r
-// UNDI Initialize\r
-//\r
+///\r
+/// UNDI Initialize\r
+///\r
 #define PXE_STATFLAGS_INITIALIZED_NO_MEDIA  0x0001\r
 \r
-//\r
-// //////////////////////////////////////\r
-// UNDI Reset\r
-//\r
+///\r
+/// UNDI Reset\r
+///\r
 #define PXE_STATFLAGS_RESET_NO_MEDIA  0x0001\r
 \r
-//\r
-// //////////////////////////////////////\r
-// UNDI Shutdown\r
-//\r
-// No additional StatFlags\r
+///\r
+/// UNDI Shutdown\r
+///\r
+/// No additional StatFlags\r
 \r
-////////////////////////////////////////\r
-// UNDI Interrupt Enables\r
-//\r
-//\r
-// If set, receive interrupts are enabled.\r
-//\r
+///\r
+/// UNDI Interrupt Enables\r
+///\r
+///\r
+/// If set, receive interrupts are enabled.\r
+///\r
 #define PXE_STATFLAGS_INTERRUPT_RECEIVE 0x0001\r
 \r
-//\r
-// If set, transmit interrupts are enabled.\r
-//\r
+///\r
+/// If set, transmit interrupts are enabled.\r
+///\r
 #define PXE_STATFLAGS_INTERRUPT_TRANSMIT  0x0002\r
 \r
-//\r
-// If set, command interrupts are enabled.\r
-//\r
+///\r
+/// If set, command interrupts are enabled.\r
+///\r
 #define PXE_STATFLAGS_INTERRUPT_COMMAND 0x0004\r
 \r
-//\r
-// //////////////////////////////////////\r
-// UNDI Receive Filters\r
-//\r
-//\r
-// If set, unicast packets will be received.\r
-//\r
+///\r
+/// UNDI Receive Filters\r
+///\r
+\r
+///\r
+/// If set, unicast packets will be received.\r
+///\r
 #define PXE_STATFLAGS_RECEIVE_FILTER_UNICAST  0x0001\r
 \r
-//\r
-// If set, broadcast packets will be received.\r
-//\r
+///\r
+/// If set, broadcast packets will be received.\r
+///\r
 #define PXE_STATFLAGS_RECEIVE_FILTER_BROADCAST  0x0002\r
 \r
-//\r
-// If set, multicast packets that match up with the multicast address\r
-// filter list will be received.\r
-//\r
+///\r
+/// If set, multicast packets that match up with the multicast address\r
+/// filter list will be received.\r
+///\r
 #define PXE_STATFLAGS_RECEIVE_FILTER_FILTERED_MULTICAST 0x0004\r
 \r
-//\r
-// If set, all packets will be received.\r
-//\r
+///\r
+/// If set, all packets will be received.\r
+///\r
 #define PXE_STATFLAGS_RECEIVE_FILTER_PROMISCUOUS  0x0008\r
 \r
-//\r
-// If set, all multicast packets will be received.\r
-//\r
+///\r
+/// If set, all multicast packets will be received.\r
+///\r
 #define PXE_STATFLAGS_RECEIVE_FILTER_ALL_MULTICAST  0x0010\r
 \r
-//\r
-// //////////////////////////////////////\r
-// UNDI Station Address\r
-//\r
-// No additional StatFlags\r
+///\r
+/// UNDI Station Address\r
+///\r
+/// No additional StatFlags\r
+///\r
 \r
-////////////////////////////////////////\r
-// UNDI Statistics\r
-//\r
-// No additional StatFlags\r
+///\r
+/// UNDI Statistics\r
+///\r
+/// No additional StatFlags\r
+///\r
 \r
-////////////////////////////////////////\r
-// UNDI MCast IP to MAC\r
-//\r
-// No additional StatFlags\r
+///\r
+//// UNDI MCast IP to MAC\r
+////\r
+//// No additional StatFlags\r
 \r
-////////////////////////////////////////\r
-// UNDI NvData\r
-//\r
-// No additional StatFlags\r
+///\r
+/// UNDI NvData\r
+///\r
+/// No additional StatFlags\r
+///\r
 \r
+///\r
+/// UNDI Get Status\r
+///\r
 \r
-////////////////////////////////////////\r
-// UNDI Get Status\r
-//\r
-//\r
-// Use to determine if an interrupt has occurred.\r
-//\r
+///\r
+/// Use to determine if an interrupt has occurred.\r
+///\r
 #define PXE_STATFLAGS_GET_STATUS_INTERRUPT_MASK 0x000F\r
 #define PXE_STATFLAGS_GET_STATUS_NO_INTERRUPTS  0x0000\r
 \r
-//\r
-// If set, at least one receive interrupt occurred.\r
-//\r
+///\r
+/// If set, at least one receive interrupt occurred.\r
+///\r
 #define PXE_STATFLAGS_GET_STATUS_RECEIVE  0x0001\r
 \r
-//\r
-// If set, at least one transmit interrupt occurred.\r
-//\r
+///\r
+/// If set, at least one transmit interrupt occurred.\r
+///\r
 #define PXE_STATFLAGS_GET_STATUS_TRANSMIT 0x0002\r
 \r
-//\r
-// If set, at least one command interrupt occurred.\r
-//\r
+///\r
+/// If set, at least one command interrupt occurred.\r
+///\r
 #define PXE_STATFLAGS_GET_STATUS_COMMAND  0x0004\r
 \r
-//\r
-// If set, at least one software interrupt occurred.\r
-//\r
+///\r
+/// If set, at least one software interrupt occurred.\r
+///\r
 #define PXE_STATFLAGS_GET_STATUS_SOFTWARE 0x0008\r
 \r
-//\r
-// This flag is set if the transmitted buffer queue is empty.  This flag\r
-// will be set if all transmitted buffer addresses get written into the DB.\r
-//\r
+///\r
+/// This flag is set if the transmitted buffer queue is empty.  This flag\r
+/// will be set if all transmitted buffer addresses get written into the DB.\r
+///\r
 #define PXE_STATFLAGS_GET_STATUS_TXBUF_QUEUE_EMPTY  0x0010\r
 \r
-//\r
-// This flag is set if no transmitted buffer addresses were written\r
-// into the DB.  (This could be because DBsize was too small.)\r
-//\r
+///\r
+/// This flag is set if no transmitted buffer addresses were written\r
+/// into the DB.  (This could be because DBsize was too small.)\r
+///\r
 #define PXE_STATFLAGS_GET_STATUS_NO_TXBUFS_WRITTEN  0x0020\r
 \r
-//\r
-// //////////////////////////////////////\r
-// UNDI Fill Header\r
-//\r
-// No additional StatFlags\r
+///\r
+/// UNDI Fill Header\r
+///\r
+/// No additional StatFlags\r
+///\r
 \r
-////////////////////////////////////////\r
-// UNDI Transmit\r
-//\r
-// No additional StatFlags.\r
+///\r
+/// UNDI Transmit\r
+///\r
+/// No additional StatFlags.\r
 \r
-////////////////////////////////////////\r
-// UNDI Receive\r
-//\r
-// No additional StatFlags.\r
-//\r
+///\r
+/// UNDI Receive\r
+///\r
+\r
+///\r
+/// No additional StatFlags.\r
+///\r
 typedef PXE_UINT16  PXE_STATCODE;\r
 \r
 #define PXE_STATCODE_INITIALIZE 0x0000\r
 \r
-//\r
-// //////////////////////////////////////\r
-// Common StatCodes returned by all UNDI commands, UNDI protocol functions\r
-// and BC protocol functions.\r
-//\r
+///\r
+/// Common StatCodes returned by all UNDI commands, UNDI protocol functions\r
+/// and BC protocol functions.\r
+///\r
 #define PXE_STATCODE_SUCCESS              0x0000\r
 \r
 #define PXE_STATCODE_INVALID_CDB          0x0001\r
@@ -629,35 +616,35 @@ typedef PXE_UINT16  PXE_STATCODE;
 \r
 typedef PXE_UINT16  PXE_IFNUM;\r
 \r
-//\r
-// This interface number must be passed to the S/W UNDI Start command.\r
-//\r
+///\r
+/// This interface number must be passed to the S/W UNDI Start command.\r
+///\r
 #define PXE_IFNUM_START 0x0000\r
 \r
-//\r
-// This interface number is returned by the S/W UNDI Get State and\r
-// Start commands if information in the CDB, CPB or DB is invalid.\r
-//\r
+///\r
+/// This interface number is returned by the S/W UNDI Get State and\r
+/// Start commands if information in the CDB, CPB or DB is invalid.\r
+///\r
 #define PXE_IFNUM_INVALID 0x0000\r
 \r
 typedef PXE_UINT16  PXE_CONTROL;\r
 \r
-//\r
-// Setting this flag directs the UNDI to queue this command for later\r
-// execution if the UNDI is busy and it supports command queuing.\r
-// If queuing is not supported, a PXE_STATCODE_INVALID_CONTROL error\r
-// is returned.  If the queue is full, a PXE_STATCODE_CDB_QUEUE_FULL\r
-// error is returned.\r
-//\r
+///\r
+/// Setting this flag directs the UNDI to queue this command for later\r
+/// execution if the UNDI is busy and it supports command queuing.\r
+/// If queuing is not supported, a PXE_STATCODE_INVALID_CONTROL error\r
+/// is returned.  If the queue is full, a PXE_STATCODE_CDB_QUEUE_FULL\r
+/// error is returned.\r
+///\r
 #define PXE_CONTROL_QUEUE_IF_BUSY 0x0002\r
 \r
-//\r
-// These two bit values are used to determine if there are more UNDI\r
-// CDB structures following this one.  If the link bit is set, there\r
-// must be a CDB structure following this one.  Execution will start\r
-// on the next CDB structure as soon as this one completes successfully.\r
-// If an error is generated by this command, execution will stop.\r
-//\r
+///\r
+/// These two bit values are used to determine if there are more UNDI\r
+/// CDB structures following this one.  If the link bit is set, there\r
+/// must be a CDB structure following this one.  Execution will start\r
+/// on the next CDB structure as soon as this one completes successfully.\r
+/// If an error is generated by this command, execution will stop.\r
+///\r
 #define PXE_CONTROL_LINK              0x0001\r
 #define PXE_CONTROL_LAST_CDB_IN_LIST  0x0000\r
 \r
@@ -682,145 +669,147 @@ typedef PXE_UINT8   PXE_MAC_ADDR[PXE_MAC_LENGTH];
 typedef PXE_UINT8   PXE_IFTYPE;\r
 typedef UINT16      PXE_MEDIA_PROTOCOL;\r
 \r
-//\r
-// This information is from the ARP section of RFC 1700.\r
-//\r
-//     1 Ethernet (10Mb)                                    [JBP]\r
-//     2 Experimental Ethernet (3Mb)                        [JBP]\r
-//     3 Amateur Radio AX.25                                [PXK]\r
-//     4 Proteon ProNET Token Ring                          [JBP]\r
-//     5 Chaos                                              [GXP]\r
-//     6 IEEE 802 Networks                                  [JBP]\r
-//     7 ARCNET                                             [JBP]\r
-//     8 Hyperchannel                                       [JBP]\r
-//     9 Lanstar                                             [TU]\r
-//    10 Autonet Short Address                             [MXB1]\r
-//    11 LocalTalk                                         [JKR1]\r
-//    12 LocalNet (IBM* PCNet or SYTEK* LocalNET)           [JXM]\r
-//    13 Ultra link                                        [RXD2]\r
-//    14 SMDS                                              [GXC1]\r
-//    15 Frame Relay                                        [AGM]\r
-//    16 Asynchronous Transmission Mode (ATM)              [JXB2]\r
-//    17 HDLC                                               [JBP]\r
-//    18 Fibre Channel                            [Yakov Rekhter]\r
-//    19 Asynchronous Transmission Mode (ATM)      [Mark Laubach]\r
-//    20 Serial Line                                        [JBP]\r
-//    21 Asynchronous Transmission Mode (ATM)              [MXB1]\r
-//\r
-// * Other names and brands may be claimed as the property of others.\r
-//\r
+///\r
+/// This information is from the ARP section of RFC 1700.\r
+///\r
+///     1 Ethernet (10Mb)                                    [JBP]\r
+///     2 Experimental Ethernet (3Mb)                        [JBP]\r
+///     3 Amateur Radio AX.25                                [PXK]\r
+///     4 Proteon ProNET Token Ring                          [JBP]\r
+///     5 Chaos                                              [GXP]\r
+///     6 IEEE 802 Networks                                  [JBP]\r
+///     7 ARCNET                                             [JBP]\r
+///     8 Hyperchannel                                       [JBP]\r
+///     9 Lanstar                                             [TU]\r
+///    10 Autonet Short Address                             [MXB1]\r
+///    11 LocalTalk                                         [JKR1]\r
+///    12 LocalNet (IBM* PCNet or SYTEK* LocalNET)           [JXM]\r
+///    13 Ultra link                                        [RXD2]\r
+///    14 SMDS                                              [GXC1]\r
+///    15 Frame Relay                                        [AGM]\r
+///    16 Asynchronous Transmission Mode (ATM)              [JXB2]\r
+///    17 HDLC                                               [JBP]\r
+///    18 Fibre Channel                            [Yakov Rekhter]\r
+///    19 Asynchronous Transmission Mode (ATM)      [Mark Laubach]\r
+///    20 Serial Line                                        [JBP]\r
+///    21 Asynchronous Transmission Mode (ATM)              [MXB1]\r
+///\r
+/// * Other names and brands may be claimed as the property of others.\r
+///\r
 #define PXE_IFTYPE_ETHERNET       0x01\r
 #define PXE_IFTYPE_TOKENRING      0x04\r
 #define PXE_IFTYPE_FIBRE_CHANNEL  0x12\r
 \r
 typedef struct s_pxe_hw_undi {\r
-  PXE_UINT32  Signature;      // PXE_ROMID_SIGNATURE\r
-  PXE_UINT8   Len;            // sizeof(PXE_HW_UNDI)\r
-  PXE_UINT8   Fudge;          // makes 8-bit cksum equal zero\r
-  PXE_UINT8   Rev;            // PXE_ROMID_REV\r
-  PXE_UINT8   IFcnt;          // physical connector count\r
-  PXE_UINT8   MajorVer;       // PXE_ROMID_MAJORVER\r
-  PXE_UINT8   MinorVer;       // PXE_ROMID_MINORVER\r
-  PXE_UINT16  reserved;       // zero, not used\r
-  PXE_UINT32  Implementation; // implementation flags\r
-  // reserved             // vendor use\r
-  // UINT32 Status;       // status port\r
-  // UINT32 Command;      // command port\r
-  // UINT64 CDBaddr;      // CDB address port\r
-  //\r
+  PXE_UINT32  Signature;      ///< PXE_ROMID_SIGNATURE\r
+  PXE_UINT8   Len;            ///< sizeof(PXE_HW_UNDI)\r
+  PXE_UINT8   Fudge;          ///< makes 8-bit cksum equal zero\r
+  PXE_UINT8   Rev;            ///< PXE_ROMID_REV\r
+  PXE_UINT8   IFcnt;          ///< physical connector count\r
+  PXE_UINT8   MajorVer;       ///< PXE_ROMID_MAJORVER\r
+  PXE_UINT8   MinorVer;       ///< PXE_ROMID_MINORVER\r
+  PXE_UINT16  reserved;       ///< zero, not used\r
+  PXE_UINT32  Implementation; ///< implementation flags\r
+  ///< reserved             ///< vendor use\r
+  ///< UINT32 Status;       ///< status port\r
+  ///< UINT32 Command;      ///< command port\r
+  ///< UINT64 CDBaddr;      ///< CDB address port\r
+  ///<\r
 } PXE_HW_UNDI;\r
 \r
-//\r
-// Status port bit definitions\r
-//\r
-//\r
-// UNDI operation state\r
-//\r
+///\r
+/// Status port bit definitions\r
+///\r
+\r
+///\r
+/// UNDI operation state\r
+///\r
 #define PXE_HWSTAT_STATE_MASK   0xC0000000\r
 #define PXE_HWSTAT_BUSY         0xC0000000\r
 #define PXE_HWSTAT_INITIALIZED  0x80000000\r
 #define PXE_HWSTAT_STARTED      0x40000000\r
 #define PXE_HWSTAT_STOPPED      0x00000000\r
 \r
-//\r
-// If set, last command failed\r
-//\r
+///\r
+/// If set, last command failed\r
+///\r
 #define PXE_HWSTAT_COMMAND_FAILED 0x20000000\r
 \r
-//\r
-// If set, identifies enabled receive filters\r
-//\r
+///\r
+/// If set, identifies enabled receive filters\r
+///\r
 #define PXE_HWSTAT_PROMISCUOUS_MULTICAST_RX_ENABLED 0x00001000\r
 #define PXE_HWSTAT_PROMISCUOUS_RX_ENABLED           0x00000800\r
 #define PXE_HWSTAT_BROADCAST_RX_ENABLED             0x00000400\r
 #define PXE_HWSTAT_MULTICAST_RX_ENABLED             0x00000200\r
 #define PXE_HWSTAT_UNICAST_RX_ENABLED               0x00000100\r
 \r
-//\r
-// If set, identifies enabled external interrupts\r
-//\r
+///\r
+/// If set, identifies enabled external interrupts\r
+///\r
 #define PXE_HWSTAT_SOFTWARE_INT_ENABLED     0x00000080\r
 #define PXE_HWSTAT_TX_COMPLETE_INT_ENABLED  0x00000040\r
 #define PXE_HWSTAT_PACKET_RX_INT_ENABLED    0x00000020\r
 #define PXE_HWSTAT_CMD_COMPLETE_INT_ENABLED 0x00000010\r
 \r
-//\r
-// If set, identifies pending interrupts\r
-//\r
+///\r
+/// If set, identifies pending interrupts\r
+///\r
 #define PXE_HWSTAT_SOFTWARE_INT_PENDING     0x00000008\r
 #define PXE_HWSTAT_TX_COMPLETE_INT_PENDING  0x00000004\r
 #define PXE_HWSTAT_PACKET_RX_INT_PENDING    0x00000002\r
 #define PXE_HWSTAT_CMD_COMPLETE_INT_PENDING 0x00000001\r
 \r
-//\r
-// Command port definitions\r
-//\r
-//\r
-// If set, CDB identified in CDBaddr port is given to UNDI.\r
-// If not set, other bits in this word will be processed.\r
-//\r
+///\r
+/// Command port definitions\r
+///\r
+\r
+///\r
+/// If set, CDB identified in CDBaddr port is given to UNDI.\r
+/// If not set, other bits in this word will be processed.\r
+///\r
 #define PXE_HWCMD_ISSUE_COMMAND   0x80000000\r
 #define PXE_HWCMD_INTS_AND_FILTS  0x00000000\r
 \r
-//\r
-// Use these to enable/disable receive filters.\r
-//\r
+///\r
+/// Use these to enable/disable receive filters.\r
+///\r
 #define PXE_HWCMD_PROMISCUOUS_MULTICAST_RX_ENABLE 0x00001000\r
 #define PXE_HWCMD_PROMISCUOUS_RX_ENABLE           0x00000800\r
 #define PXE_HWCMD_BROADCAST_RX_ENABLE             0x00000400\r
 #define PXE_HWCMD_MULTICAST_RX_ENABLE             0x00000200\r
 #define PXE_HWCMD_UNICAST_RX_ENABLE               0x00000100\r
 \r
-//\r
-// Use these to enable/disable external interrupts\r
-//\r
+///\r
+/// Use these to enable/disable external interrupts\r
+///\r
 #define PXE_HWCMD_SOFTWARE_INT_ENABLE     0x00000080\r
 #define PXE_HWCMD_TX_COMPLETE_INT_ENABLE  0x00000040\r
 #define PXE_HWCMD_PACKET_RX_INT_ENABLE    0x00000020\r
 #define PXE_HWCMD_CMD_COMPLETE_INT_ENABLE 0x00000010\r
 \r
-//\r
-// Use these to clear pending external interrupts\r
-//\r
+///\r
+/// Use these to clear pending external interrupts\r
+///\r
 #define PXE_HWCMD_CLEAR_SOFTWARE_INT      0x00000008\r
 #define PXE_HWCMD_CLEAR_TX_COMPLETE_INT   0x00000004\r
 #define PXE_HWCMD_CLEAR_PACKET_RX_INT     0x00000002\r
 #define PXE_HWCMD_CLEAR_CMD_COMPLETE_INT  0x00000001\r
 \r
 typedef struct s_pxe_sw_undi {\r
-  PXE_UINT32  Signature;      // PXE_ROMID_SIGNATURE\r
-  PXE_UINT8   Len;            // sizeof(PXE_SW_UNDI)\r
-  PXE_UINT8   Fudge;          // makes 8-bit cksum zero\r
-  PXE_UINT8   Rev;            // PXE_ROMID_REV\r
-  PXE_UINT8   IFcnt;          // physical connector count\r
-  PXE_UINT8   MajorVer;       // PXE_ROMID_MAJORVER\r
-  PXE_UINT8   MinorVer;       // PXE_ROMID_MINORVER\r
-  PXE_UINT16  reserved1;      // zero, not used\r
-  PXE_UINT32  Implementation; // Implementation flags\r
-  PXE_UINT64  EntryPoint;     // API entry point\r
-  PXE_UINT8   reserved2[3];   // zero, not used\r
-  PXE_UINT8   BusCnt;         // number of bustypes supported\r
-  PXE_UINT32  BusType[1];     // list of supported bustypes\r
+  PXE_UINT32  Signature;      ///< PXE_ROMID_SIGNATURE\r
+  PXE_UINT8   Len;            ///< sizeof(PXE_SW_UNDI)\r
+  PXE_UINT8   Fudge;          ///< makes 8-bit cksum zero\r
+  PXE_UINT8   Rev;            ///< PXE_ROMID_REV\r
+  PXE_UINT8   IFcnt;          ///< physical connector count\r
+  PXE_UINT8   MajorVer;       ///< PXE_ROMID_MAJORVER\r
+  PXE_UINT8   MinorVer;       ///< PXE_ROMID_MINORVER\r
+  PXE_UINT16  reserved1;      ///< zero, not used\r
+  PXE_UINT32  Implementation; ///< Implementation flags\r
+  PXE_UINT64  EntryPoint;     ///< API entry point\r
+  PXE_UINT8   reserved2[3];   ///< zero, not used\r
+  PXE_UINT8   BusCnt;         ///< number of bustypes supported\r
+  PXE_UINT32  BusType[1];     ///< list of supported bustypes\r
 } PXE_SW_UNDI;\r
 \r
 typedef union u_pxe_undi {\r
@@ -828,27 +817,27 @@ typedef union u_pxe_undi {
   PXE_SW_UNDI sw;\r
 } PXE_UNDI;\r
 \r
-//\r
-// Signature of !PXE structure\r
-//\r
+///\r
+/// Signature of !PXE structure\r
+///\r
 #define PXE_ROMID_SIGNATURE PXE_BUSTYPE ('!', 'P', 'X', 'E')\r
 \r
-//\r
-// !PXE structure format revision\r
-//\r
+///\r
+/// !PXE structure format revision\r
+///\r
 #define PXE_ROMID_REV 0x02\r
 \r
-//\r
-// UNDI command interface revision.  These are the values that get sent\r
-// in option 94 (Client Network Interface Identifier) in the DHCP Discover\r
-// and PXE Boot Server Request packets.\r
-//\r
+///\r
+/// UNDI command interface revision.  These are the values that get sent\r
+/// in option 94 (Client Network Interface Identifier) in the DHCP Discover\r
+/// and PXE Boot Server Request packets.\r
+///\r
 #define PXE_ROMID_MAJORVER    0x03\r
 #define PXE_ROMID_MINORVER    0x01\r
 \r
-//\r
-// Implementation flags\r
-//\r
+///\r
+/// Implementation flags\r
+///\r
 #define PXE_ROMID_IMP_HW_UNDI                             0x80000000\r
 #define PXE_ROMID_IMP_SW_VIRT_ADDR                        0x40000000\r
 #define PXE_ROMID_IMP_64BIT_DEVICE                        0x00010000\r
@@ -891,204 +880,194 @@ typedef union u_pxe_ip_addr {
 } PXE_IP_ADDR;\r
 \r
 typedef union pxe_device {\r
-  //\r
-  // PCI and PC Card NICs are both identified using bus, device\r
-  // and function numbers.  For PC Card, this may require PC\r
-  // Card services to be loaded in the BIOS or preboot\r
-  // environment.\r
-  //\r
+  ///\r
+  /// PCI and PC Card NICs are both identified using bus, device\r
+  /// and function numbers.  For PC Card, this may require PC\r
+  /// Card services to be loaded in the BIOS or preboot\r
+  /// environment.\r
+  ///\r
   struct {\r
-    //\r
-    // See S/W UNDI ROMID structure definition for PCI and\r
-    // PCC BusType definitions.\r
-    //\r
+    ///\r
+    /// See S/W UNDI ROMID structure definition for PCI and\r
+    /// PCC BusType definitions.\r
+    ///\r
     PXE_UINT32  BusType;\r
 \r
-    //\r
-    // Bus, device & function numbers that locate this device.\r
-    //\r
+    ///\r
+    /// Bus, device & function numbers that locate this device.\r
+    ///\r
     PXE_UINT16  Bus;\r
     PXE_UINT8   Device;\r
     PXE_UINT8   Function;\r
   }\r
   PCI, PCC;\r
 \r
-  //\r
-  // %%TBD - More information is needed about enumerating\r
-  // USB and 1394 devices.\r
-  //\r
-  struct {\r
-    PXE_UINT32  BusType;\r
-    PXE_UINT32  tdb;\r
-  }\r
-  USB, _1394;\r
 } PXE_DEVICE;\r
 \r
-//\r
-// cpb and db definitions\r
-//\r
-#define MAX_PCI_CONFIG_LEN    64  // # of dwords\r
-#define MAX_EEPROM_LEN        128 // #of dwords\r
-#define MAX_XMIT_BUFFERS      32  // recycling Q length for xmit_done\r
+///\r
+/// cpb and db definitions\r
+///\r
+#define MAX_PCI_CONFIG_LEN    64  ///< # of dwords\r
+#define MAX_EEPROM_LEN        128 ///< # of dwords\r
+#define MAX_XMIT_BUFFERS      32  ///< recycling Q length for xmit_done\r
 #define MAX_MCAST_ADDRESS_CNT 8\r
 \r
 typedef struct s_pxe_cpb_start_30 {\r
-  //\r
-  // PXE_VOID Delay(UINTN microseconds);\r
-  //\r
-  // UNDI will never request a delay smaller than 10 microseconds\r
-  // and will always request delays in increments of 10 microseconds.\r
-  // The Delay() CallBack routine must delay between n and n + 10\r
-  // microseconds before returning control to the UNDI.\r
-  //\r
-  // This field cannot be set to zero.\r
-  //\r
+  ///\r
+  /// PXE_VOID Delay(UINTN microseconds);\r
+  ///\r
+  /// UNDI will never request a delay smaller than 10 microseconds\r
+  /// and will always request delays in increments of 10 microseconds.\r
+  /// The Delay() CallBack routine must delay between n and n + 10\r
+  /// microseconds before returning control to the UNDI.\r
+  ///\r
+  /// This field cannot be set to zero.\r
+  ///\r
   UINT64  Delay;\r
 \r
-  //\r
-  // PXE_VOID Block(UINT32 enable);\r
-  //\r
-  // UNDI may need to block multi-threaded/multi-processor access to\r
-  // critical code sections when programming or accessing the network\r
-  // device.  To this end, a blocking service is needed by the UNDI.\r
-  // When UNDI needs a block, it will call Block() passing a non-zero\r
-  // value.  When UNDI no longer needs a block, it will call Block()\r
-  // with a zero value.  When called, if the Block() is already enabled,\r
-  // do not return control to the UNDI until the previous Block() is\r
-  // disabled.\r
-  //\r
-  // This field cannot be set to zero.\r
-  //\r
+  ///\r
+  /// PXE_VOID Block(UINT32 enable);\r
+  ///\r
+  /// UNDI may need to block multi-threaded/multi-processor access to\r
+  /// critical code sections when programming or accessing the network\r
+  /// device.  To this end, a blocking service is needed by the UNDI.\r
+  /// When UNDI needs a block, it will call Block() passing a non-zero\r
+  /// value.  When UNDI no longer needs a block, it will call Block()\r
+  /// with a zero value.  When called, if the Block() is already enabled,\r
+  /// do not return control to the UNDI until the previous Block() is\r
+  /// disabled.\r
+  ///\r
+  /// This field cannot be set to zero.\r
+  ///\r
   UINT64  Block;\r
 \r
-  //\r
-  // PXE_VOID Virt2Phys(UINT64 virtual, UINT64 physical_ptr);\r
-  //\r
-  // UNDI will pass the virtual address of a buffer and the virtual\r
-  // address of a 64-bit physical buffer.  Convert the virtual address\r
-  // to a physical address and write the result to the physical address\r
-  // buffer.  If virtual and physical addresses are the same, just\r
-  // copy the virtual address to the physical address buffer.\r
-  //\r
-  // This field can be set to zero if virtual and physical addresses\r
-  // are equal.\r
-  //\r
+  ///\r
+  /// PXE_VOID Virt2Phys(UINT64 virtual, UINT64 physical_ptr);\r
+  ///\r
+  /// UNDI will pass the virtual address of a buffer and the virtual\r
+  /// address of a 64-bit physical buffer.  Convert the virtual address\r
+  /// to a physical address and write the result to the physical address\r
+  /// buffer.  If virtual and physical addresses are the same, just\r
+  /// copy the virtual address to the physical address buffer.\r
+  ///\r
+  /// This field can be set to zero if virtual and physical addresses\r
+  /// are equal.\r
+  ///\r
   UINT64  Virt2Phys;\r
-  //\r
-  // PXE_VOID Mem_IO(UINT8 read_write, UINT8 len, UINT64 port,\r
-  //              UINT64 buf_addr);\r
-  //\r
-  // UNDI will read or write the device io space using this call back\r
-  // function. It passes the number of bytes as the len parameter and it\r
-  // will be either 1,2,4 or 8.\r
-  //\r
-  // This field can not be set to zero.\r
-  //\r
+  ///\r
+  /// PXE_VOID Mem_IO(UINT8 read_write, UINT8 len, UINT64 port,\r
+  ///              UINT64 buf_addr);\r
+  ///\r
+  /// UNDI will read or write the device io space using this call back\r
+  /// function. It passes the number of bytes as the len parameter and it\r
+  /// will be either 1,2,4 or 8.\r
+  ///\r
+  /// This field can not be set to zero.\r
+  ///\r
   UINT64  Mem_IO;\r
 } PXE_CPB_START_30;\r
 \r
 typedef struct s_pxe_cpb_start_31 {\r
-  //\r
-  // PXE_VOID Delay(UINT64 UnqId, UINTN microseconds);\r
-  //\r
-  // UNDI will never request a delay smaller than 10 microseconds\r
-  // and will always request delays in increments of 10 microseconds.\r
-  // The Delay() CallBack routine must delay between n and n + 10\r
-  // microseconds before returning control to the UNDI.\r
-  //\r
-  // This field cannot be set to zero.\r
-  //\r
+  ///\r
+  /// PXE_VOID Delay(UINT64 UnqId, UINTN microseconds);\r
+  ///\r
+  /// UNDI will never request a delay smaller than 10 microseconds\r
+  /// and will always request delays in increments of 10 microseconds.\r
+  /// The Delay() CallBack routine must delay between n and n + 10\r
+  /// microseconds before returning control to the UNDI.\r
+  ///\r
+  /// This field cannot be set to zero.\r
+  ///\r
   UINT64  Delay;\r
 \r
-  //\r
-  // PXE_VOID Block(UINT64 unq_id, UINT32 enable);\r
-  //\r
-  // UNDI may need to block multi-threaded/multi-processor access to\r
-  // critical code sections when programming or accessing the network\r
-  // device.  To this end, a blocking service is needed by the UNDI.\r
-  // When UNDI needs a block, it will call Block() passing a non-zero\r
-  // value.  When UNDI no longer needs a block, it will call Block()\r
-  // with a zero value.  When called, if the Block() is already enabled,\r
-  // do not return control to the UNDI until the previous Block() is\r
-  // disabled.\r
-  //\r
-  // This field cannot be set to zero.\r
-  //\r
+  ///\r
+  /// PXE_VOID Block(UINT64 unq_id, UINT32 enable);\r
+  ///\r
+  /// UNDI may need to block multi-threaded/multi-processor access to\r
+  /// critical code sections when programming or accessing the network\r
+  /// device.  To this end, a blocking service is needed by the UNDI.\r
+  /// When UNDI needs a block, it will call Block() passing a non-zero\r
+  /// value.  When UNDI no longer needs a block, it will call Block()\r
+  /// with a zero value.  When called, if the Block() is already enabled,\r
+  /// do not return control to the UNDI until the previous Block() is\r
+  /// disabled.\r
+  ///\r
+  /// This field cannot be set to zero.\r
+  ///\r
   UINT64  Block;\r
 \r
-  //\r
-  // PXE_VOID Virt2Phys(UINT64 UnqId, UINT64 virtual, UINT64 physical_ptr);\r
-  //\r
-  // UNDI will pass the virtual address of a buffer and the virtual\r
-  // address of a 64-bit physical buffer.  Convert the virtual address\r
-  // to a physical address and write the result to the physical address\r
-  // buffer.  If virtual and physical addresses are the same, just\r
-  // copy the virtual address to the physical address buffer.\r
-  //\r
-  // This field can be set to zero if virtual and physical addresses\r
-  // are equal.\r
-  //\r
+  ///\r
+  /// PXE_VOID Virt2Phys(UINT64 UnqId, UINT64 virtual, UINT64 physical_ptr);\r
+  ///\r
+  /// UNDI will pass the virtual address of a buffer and the virtual\r
+  /// address of a 64-bit physical buffer.  Convert the virtual address\r
+  /// to a physical address and write the result to the physical address\r
+  /// buffer.  If virtual and physical addresses are the same, just\r
+  /// copy the virtual address to the physical address buffer.\r
+  ///\r
+  /// This field can be set to zero if virtual and physical addresses\r
+  /// are equal.\r
+  ///\r
   UINT64  Virt2Phys;\r
-  //\r
-  // PXE_VOID Mem_IO(UINT64 UnqId, UINT8 read_write, UINT8 len, UINT64 port,\r
-  //              UINT64 buf_addr);\r
-  //\r
-  // UNDI will read or write the device io space using this call back\r
-  // function. It passes the number of bytes as the len parameter and it\r
-  // will be either 1,2,4 or 8.\r
-  //\r
-  // This field can not be set to zero.\r
-  //\r
+  ///\r
+  /// PXE_VOID Mem_IO(UINT64 UnqId, UINT8 read_write, UINT8 len, UINT64 port,\r
+  ///              UINT64 buf_addr);\r
+  ///\r
+  /// UNDI will read or write the device io space using this call back\r
+  /// function. It passes the number of bytes as the len parameter and it\r
+  /// will be either 1,2,4 or 8.\r
+  ///\r
+  /// This field can not be set to zero.\r
+  ///\r
   UINT64  Mem_IO;\r
-  //\r
-  // PXE_VOID Map_Mem(UINT64 unq_id, UINT64 virtual_addr, UINT32 size,\r
-  //                 UINT32 Direction, UINT64 mapped_addr);\r
-  //\r
-  // UNDI will pass the virtual address of a buffer, direction of the data\r
-  // flow from/to the mapped buffer (the constants are defined below)\r
-  // and a place holder (pointer) for the mapped address.\r
-  // This call will Map the given address to a physical DMA address and write\r
-  // the result to the mapped_addr pointer.  If there is no need to\r
-  // map the given address to a lower address (i.e. the given address is\r
-  // associated with a physical address that is already compatible to be\r
-  // used with the DMA, it converts the given virtual address to it's\r
-  // physical address and write that in the mapped address pointer.\r
-  //\r
-  // This field can be set to zero if there is no mapping service available\r
-  //\r
+  ///\r
+  /// PXE_VOID Map_Mem(UINT64 unq_id, UINT64 virtual_addr, UINT32 size,\r
+  ///                 UINT32 Direction, UINT64 mapped_addr);\r
+  ///\r
+  /// UNDI will pass the virtual address of a buffer, direction of the data\r
+  /// flow from/to the mapped buffer (the constants are defined below)\r
+  /// and a place holder (pointer) for the mapped address.\r
+  /// This call will Map the given address to a physical DMA address and write\r
+  /// the result to the mapped_addr pointer.  If there is no need to\r
+  /// map the given address to a lower address (i.e. the given address is\r
+  /// associated with a physical address that is already compatible to be\r
+  /// used with the DMA, it converts the given virtual address to it's\r
+  /// physical address and write that in the mapped address pointer.\r
+  ///\r
+  /// This field can be set to zero if there is no mapping service available\r
+  ///\r
   UINT64  Map_Mem;\r
 \r
-  //\r
-  // PXE_VOID UnMap_Mem(UINT64 unq_id, UINT64 virtual_addr, UINT32 size,\r
-  //            UINT32 Direction, UINT64 mapped_addr);\r
-  //\r
-  // UNDI will pass the virtual and mapped addresses of a buffer\r
-  // This call will un map the given address\r
-  //\r
-  // This field can be set to zero if there is no unmapping service available\r
-  //\r
+  ///\r
+  /// PXE_VOID UnMap_Mem(UINT64 unq_id, UINT64 virtual_addr, UINT32 size,\r
+  ///            UINT32 Direction, UINT64 mapped_addr);\r
+  ///\r
+  /// UNDI will pass the virtual and mapped addresses of a buffer\r
+  /// This call will un map the given address\r
+  ///\r
+  /// This field can be set to zero if there is no unmapping service available\r
+  ///\r
   UINT64  UnMap_Mem;\r
 \r
-  //\r
-  // PXE_VOID Sync_Mem(UINT64 unq_id, UINT64 virtual,\r
-  //            UINT32 size, UINT32 Direction, UINT64 mapped_addr);\r
-  //\r
-  // UNDI will pass the virtual and mapped addresses of a buffer\r
-  // This call will synchronize the contents of both the virtual and mapped\r
-  // buffers for the given Direction.\r
-  //\r
-  // This field can be set to zero if there is no service available\r
-  //\r
+  ///\r
+  /// PXE_VOID Sync_Mem(UINT64 unq_id, UINT64 virtual,\r
+  ///            UINT32 size, UINT32 Direction, UINT64 mapped_addr);\r
+  ///\r
+  /// UNDI will pass the virtual and mapped addresses of a buffer\r
+  /// This call will synchronize the contents of both the virtual and mapped\r
+  /// buffers for the given Direction.\r
+  ///\r
+  /// This field can be set to zero if there is no service available\r
+  ///\r
   UINT64  Sync_Mem;\r
 \r
-  //\r
-  // protocol driver can provide anything for this Unique_ID, UNDI remembers\r
-  // that as just a 64bit value assocaited to the interface specified by\r
-  // the ifnum and gives it back as a parameter to all the call-back routines\r
-  // when calling for that interface!\r
-  //\r
+  ///\r
+  /// protocol driver can provide anything for this Unique_ID, UNDI remembers\r
+  /// that as just a 64bit value assocaited to the interface specified by\r
+  /// the ifnum and gives it back as a parameter to all the call-back routines\r
+  /// when calling for that interface!\r
+  ///\r
   UINT64  Unique_ID;\r
-  //\r
 } PXE_CPB_START_31;\r
 \r
 #define TO_AND_FROM_DEVICE    0\r
@@ -1103,83 +1082,83 @@ typedef struct s_pxe_cpb_start_31 {
 #define PXE_MEM_WRITE         4\r
 \r
 typedef struct s_pxe_db_get_init_info {\r
-  //\r
-  // Minimum length of locked memory buffer that must be given to\r
-  // the Initialize command. Giving UNDI more memory will generally\r
-  // give better performance.\r
-  //\r
-  // If MemoryRequired is zero, the UNDI does not need and will not\r
-  // use system memory to receive and transmit packets.\r
-  //\r
+  ///\r
+  /// Minimum length of locked memory buffer that must be given to\r
+  /// the Initialize command. Giving UNDI more memory will generally\r
+  /// give better performance.\r
+  ///\r
+  /// If MemoryRequired is zero, the UNDI does not need and will not\r
+  /// use system memory to receive and transmit packets.\r
+  ///\r
   PXE_UINT32  MemoryRequired;\r
 \r
-  //\r
-  // Maximum frame data length for Tx/Rx excluding the media header.\r
-  //\r
+  ///\r
+  /// Maximum frame data length for Tx/Rx excluding the media header.\r
+  ///\r
   PXE_UINT32  FrameDataLen;\r
 \r
-  //\r
-  // Supported link speeds are in units of mega bits.  Common ethernet\r
-  // values are 10, 100 and 1000.  Unused LinkSpeeds[] entries are zero\r
-  // filled.\r
-  //\r
+  ///\r
+  /// Supported link speeds are in units of mega bits.  Common ethernet\r
+  /// values are 10, 100 and 1000.  Unused LinkSpeeds[] entries are zero\r
+  /// filled.\r
+  ///\r
   PXE_UINT32  LinkSpeeds[4];\r
 \r
-  //\r
-  // Number of non-volatile storage items.\r
-  //\r
+  ///\r
+  /// Number of non-volatile storage items.\r
+  ///\r
   PXE_UINT32  NvCount;\r
 \r
-  //\r
-  // Width of non-volatile storage item in bytes.  0, 1, 2 or 4\r
-  //\r
+  ///\r
+  /// Width of non-volatile storage item in bytes.  0, 1, 2 or 4\r
+  ///\r
   PXE_UINT16  NvWidth;\r
 \r
-  //\r
-  // Media header length.  This is the typical media header length for\r
-  // this UNDI.  This information is needed when allocating receive\r
-  // and transmit buffers.\r
-  //\r
+  ///\r
+  /// Media header length.  This is the typical media header length for\r
+  /// this UNDI.  This information is needed when allocating receive\r
+  /// and transmit buffers.\r
+  ///\r
   PXE_UINT16  MediaHeaderLen;\r
 \r
-  //\r
-  // Number of bytes in the NIC hardware (MAC) address.\r
-  //\r
+  ///\r
+  /// Number of bytes in the NIC hardware (MAC) address.\r
+  ///\r
   PXE_UINT16  HWaddrLen;\r
 \r
-  //\r
-  // Maximum number of multicast MAC addresses in the multicast\r
-  // MAC address filter list.\r
-  //\r
+  ///\r
+  /// Maximum number of multicast MAC addresses in the multicast\r
+  /// MAC address filter list.\r
+  ///\r
   PXE_UINT16  MCastFilterCnt;\r
 \r
-  //\r
-  // Default number and size of transmit and receive buffers that will\r
-  // be allocated by the UNDI.  If MemoryRequired is non-zero, this\r
-  // allocation will come out of the memory buffer given to the Initialize\r
-  // command.  If MemoryRequired is zero, this allocation will come out of\r
-  // memory on the NIC.\r
-  //\r
+  ///\r
+  /// Default number and size of transmit and receive buffers that will\r
+  /// be allocated by the UNDI.  If MemoryRequired is non-zero, this\r
+  /// allocation will come out of the memory buffer given to the Initialize\r
+  /// command.  If MemoryRequired is zero, this allocation will come out of\r
+  /// memory on the NIC.\r
+  ///\r
   PXE_UINT16  TxBufCnt;\r
   PXE_UINT16  TxBufSize;\r
   PXE_UINT16  RxBufCnt;\r
   PXE_UINT16  RxBufSize;\r
 \r
-  //\r
-  // Hardware interface types defined in the Assigned Numbers RFC\r
-  // and used in DHCP and ARP packets.\r
-  // See the PXE_IFTYPE typedef and PXE_IFTYPE_xxx macros.\r
-  //\r
+  ///\r
+  /// Hardware interface types defined in the Assigned Numbers RFC\r
+  /// and used in DHCP and ARP packets.\r
+  /// See the PXE_IFTYPE typedef and PXE_IFTYPE_xxx macros.\r
+  ///\r
   PXE_UINT8   IFtype;\r
 \r
-  //\r
-  // Supported duplex.  See PXE_DUPLEX_xxxxx #defines below.\r
-  //\r
+  ///\r
+  /// Supported duplex.  See PXE_DUPLEX_xxxxx #defines below.\r
+  ///\r
   PXE_UINT8   SupportedDuplexModes;\r
 \r
-  //\r
-  // Supported loopback options.  See PXE_LOOPBACK_xxxxx #defines below.\r
-  //\r
+  ///\r
+  /// Supported loopback options.  See PXE_LOOPBACK_xxxxx #defines below.\r
+  ///\r
   PXE_UINT8   SupportedLoopBackModes;\r
 } PXE_DB_GET_INIT_INFO;\r
 \r
@@ -1195,24 +1174,24 @@ typedef struct s_pxe_db_get_init_info {
 #define PXE_LOOPBACK_EXTERNAL_SUPPORTED   2\r
 \r
 typedef struct s_pxe_pci_config_info {\r
-  //\r
-  // This is the flag field for the PXE_DB_GET_CONFIG_INFO union.\r
-  // For PCI bus devices, this field is set to PXE_BUSTYPE_PCI.\r
-  //\r
+  ///\r
+  /// This is the flag field for the PXE_DB_GET_CONFIG_INFO union.\r
+  /// For PCI bus devices, this field is set to PXE_BUSTYPE_PCI.\r
+  ///\r
   UINT32  BusType;\r
 \r
-  //\r
-  // This identifies the PCI network device that this UNDI interface\r
-  // is bound to.\r
-  //\r
+  ///\r
+  /// This identifies the PCI network device that this UNDI interface\r
+  /// is bound to.\r
+  ///\r
   UINT16  Bus;\r
   UINT8   Device;\r
   UINT8   Function;\r
 \r
-  //\r
-  // This is a copy of the PCI configuration space for this\r
-  // network device.\r
-  //\r
+  ///\r
+  /// This is a copy of the PCI configuration space for this\r
+  /// network device.\r
+  ///\r
   union {\r
     UINT8   Byte[256];\r
     UINT16  Word[128];\r
@@ -1221,24 +1200,24 @@ typedef struct s_pxe_pci_config_info {
 } PXE_PCI_CONFIG_INFO;\r
 \r
 typedef struct s_pxe_pcc_config_info {\r
-  //\r
-  // This is the flag field for the PXE_DB_GET_CONFIG_INFO union.\r
-  // For PCC bus devices, this field is set to PXE_BUSTYPE_PCC.\r
-  //\r
+  ///\r
+  /// This is the flag field for the PXE_DB_GET_CONFIG_INFO union.\r
+  /// For PCC bus devices, this field is set to PXE_BUSTYPE_PCC.\r
+  ///\r
   PXE_UINT32  BusType;\r
 \r
-  //\r
-  // This identifies the PCC network device that this UNDI interface\r
-  // is bound to.\r
-  //\r
+  ///\r
+  /// This identifies the PCC network device that this UNDI interface\r
+  /// is bound to.\r
+  ///\r
   PXE_UINT16  Bus;\r
   PXE_UINT8   Device;\r
   PXE_UINT8   Function;\r
 \r
-  //\r
-  // This is a copy of the PCC configuration space for this\r
-  // network device.\r
-  //\r
+  ///\r
+  /// This is a copy of the PCC configuration space for this\r
+  /// network device.\r
+  ///\r
   union {\r
     PXE_UINT8   Byte[256];\r
     PXE_UINT16  Word[128];\r
@@ -1252,45 +1231,45 @@ typedef union u_pxe_db_get_config_info {
 } PXE_DB_GET_CONFIG_INFO;\r
 \r
 typedef struct s_pxe_cpb_initialize {\r
-  //\r
-  // Address of first (lowest) byte of the memory buffer.  This buffer must\r
-  // be in contiguous physical memory and cannot be swapped out.  The UNDI\r
-  // will be using this for transmit and receive buffering.\r
-  //\r
+  ///\r
+  /// Address of first (lowest) byte of the memory buffer.  This buffer must\r
+  /// be in contiguous physical memory and cannot be swapped out.  The UNDI\r
+  /// will be using this for transmit and receive buffering.\r
+  ///\r
   PXE_UINT64  MemoryAddr;\r
 \r
-  //\r
-  // MemoryLength must be greater than or equal to MemoryRequired\r
-  // returned by the Get Init Info command.\r
-  //\r
+  ///\r
+  /// MemoryLength must be greater than or equal to MemoryRequired\r
+  /// returned by the Get Init Info command.\r
+  ///\r
   PXE_UINT32  MemoryLength;\r
 \r
-  //\r
-  // Desired link speed in Mbit/sec.  Common ethernet values are 10, 100\r
-  // and 1000.  Setting a value of zero will auto-detect and/or use the\r
-  // default link speed (operation depends on UNDI/NIC functionality).\r
-  //\r
+  ///\r
+  /// Desired link speed in Mbit/sec.  Common ethernet values are 10, 100\r
+  /// and 1000.  Setting a value of zero will auto-detect and/or use the\r
+  /// default link speed (operation depends on UNDI/NIC functionality).\r
+  ///\r
   PXE_UINT32  LinkSpeed;\r
 \r
-  //\r
-  // Suggested number and size of receive and transmit buffers to\r
-  // allocate.  If MemoryAddr and MemoryLength are non-zero, this\r
-  // allocation comes out of the supplied memory buffer.  If MemoryAddr\r
-  // and MemoryLength are zero, this allocation comes out of memory\r
-  // on the NIC.\r
-  //\r
-  // If these fields are set to zero, the UNDI will allocate buffer\r
-  // counts and sizes as it sees fit.\r
-  //\r
+  ///\r
+  /// Suggested number and size of receive and transmit buffers to\r
+  /// allocate.  If MemoryAddr and MemoryLength are non-zero, this\r
+  /// allocation comes out of the supplied memory buffer.  If MemoryAddr\r
+  /// and MemoryLength are zero, this allocation comes out of memory\r
+  /// on the NIC.\r
+  ///\r
+  /// If these fields are set to zero, the UNDI will allocate buffer\r
+  /// counts and sizes as it sees fit.\r
+  ///\r
   PXE_UINT16  TxBufCnt;\r
   PXE_UINT16  TxBufSize;\r
   PXE_UINT16  RxBufCnt;\r
   PXE_UINT16  RxBufSize;\r
 \r
-  //\r
-  // The following configuration parameters are optional and must be zero\r
-  // to use the default values.\r
-  //\r
+  ///\r
+  /// The following configuration parameters are optional and must be zero\r
+  /// to use the default values.\r
+  ///\r
   PXE_UINT8   DuplexMode;\r
 \r
   PXE_UINT8   LoopBackMode;\r
@@ -1307,20 +1286,20 @@ typedef struct s_pxe_cpb_initialize {
 #define LOOPBACK_EXTERNAL       2\r
 \r
 typedef struct s_pxe_db_initialize {\r
-  //\r
-  // Actual amount of memory used from the supplied memory buffer.  This\r
-  // may be less that the amount of memory suppllied and may be zero if\r
-  // the UNDI and network device do not use external memory buffers.\r
-  //\r
-  // Memory used by the UNDI and network device is allocated from the\r
-  // lowest memory buffer address.\r
-  //\r
+  ///\r
+  /// Actual amount of memory used from the supplied memory buffer.  This\r
+  /// may be less that the amount of memory suppllied and may be zero if\r
+  /// the UNDI and network device do not use external memory buffers.\r
+  ///\r
+  /// Memory used by the UNDI and network device is allocated from the\r
+  /// lowest memory buffer address.\r
+  ///\r
   PXE_UINT32  MemoryUsed;\r
 \r
-  //\r
-  // Actual number and size of receive and transmit buffers that were\r
-  // allocated.\r
-  //\r
+  ///\r
+  /// Actual number and size of receive and transmit buffers that were\r
+  /// allocated.\r
+  ///\r
   PXE_UINT16  TxBufCnt;\r
   PXE_UINT16  TxBufSize;\r
   PXE_UINT16  RxBufCnt;\r
@@ -1328,120 +1307,120 @@ typedef struct s_pxe_db_initialize {
 } PXE_DB_INITIALIZE;\r
 \r
 typedef struct s_pxe_cpb_receive_filters {\r
-  //\r
-  // List of multicast MAC addresses.  This list, if present, will\r
-  // replace the existing multicast MAC address filter list.\r
-  //\r
+  ///\r
+  /// List of multicast MAC addresses.  This list, if present, will\r
+  /// replace the existing multicast MAC address filter list.\r
+  ///\r
   PXE_MAC_ADDR  MCastList[MAX_MCAST_ADDRESS_CNT];\r
 } PXE_CPB_RECEIVE_FILTERS;\r
 \r
 typedef struct s_pxe_db_receive_filters {\r
-  //\r
-  // Filtered multicast MAC address list.\r
-  //\r
+  ///\r
+  /// Filtered multicast MAC address list.\r
+  ///\r
   PXE_MAC_ADDR  MCastList[MAX_MCAST_ADDRESS_CNT];\r
 } PXE_DB_RECEIVE_FILTERS;\r
 \r
 typedef struct s_pxe_cpb_station_address {\r
-  //\r
-  // If supplied and supported, the current station MAC address\r
-  // will be changed.\r
-  //\r
+  ///\r
+  /// If supplied and supported, the current station MAC address\r
+  /// will be changed.\r
+  ///\r
   PXE_MAC_ADDR  StationAddr;\r
 } PXE_CPB_STATION_ADDRESS;\r
 \r
 typedef struct s_pxe_dpb_station_address {\r
-  //\r
-  // Current station MAC address.\r
-  //\r
+  ///\r
+  /// Current station MAC address.\r
+  ///\r
   PXE_MAC_ADDR  StationAddr;\r
 \r
-  //\r
-  // Station broadcast MAC address.\r
-  //\r
+  ///\r
+  /// Station broadcast MAC address.\r
+  ///\r
   PXE_MAC_ADDR  BroadcastAddr;\r
 \r
-  //\r
-  // Permanent station MAC address.\r
-  //\r
+  ///\r
+  /// Permanent station MAC address.\r
+  ///\r
   PXE_MAC_ADDR  PermanentAddr;\r
 } PXE_DB_STATION_ADDRESS;\r
 \r
 typedef struct s_pxe_db_statistics {\r
-  //\r
-  // Bit field identifying what statistic data is collected by the\r
-  // UNDI/NIC.\r
-  // If bit 0x00 is set, Data[0x00] is collected.\r
-  // If bit 0x01 is set, Data[0x01] is collected.\r
-  // If bit 0x20 is set, Data[0x20] is collected.\r
-  // If bit 0x21 is set, Data[0x21] is collected.\r
-  // Etc.\r
-  //\r
+  ///\r
+  /// Bit field identifying what statistic data is collected by the\r
+  /// UNDI/NIC.\r
+  /// If bit 0x00 is set, Data[0x00] is collected.\r
+  /// If bit 0x01 is set, Data[0x01] is collected.\r
+  /// If bit 0x20 is set, Data[0x20] is collected.\r
+  /// If bit 0x21 is set, Data[0x21] is collected.\r
+  /// Etc.\r
+  ///\r
   PXE_UINT64  Supported;\r
 \r
-  //\r
-  // Statistic data.\r
-  //\r
+  ///\r
+  /// Statistic data.\r
+  ///\r
   PXE_UINT64  Data[64];\r
 } PXE_DB_STATISTICS;\r
 \r
-//\r
-// Total number of frames received.  Includes frames with errors and\r
-// dropped frames.\r
-//\r
+///\r
+/// Total number of frames received.  Includes frames with errors and\r
+/// dropped frames.\r
+///\r
 #define PXE_STATISTICS_RX_TOTAL_FRAMES  0x00\r
 \r
-//\r
-// Number of valid frames received and copied into receive buffers.\r
-//\r
+///\r
+/// Number of valid frames received and copied into receive buffers.\r
+///\r
 #define PXE_STATISTICS_RX_GOOD_FRAMES 0x01\r
 \r
-//\r
-// Number of frames below the minimum length for the media.\r
-// This would be <64 for ethernet.\r
-//\r
+///\r
+/// Number of frames below the minimum length for the media.\r
+/// This would be <64 for ethernet.\r
+///\r
 #define PXE_STATISTICS_RX_UNDERSIZE_FRAMES  0x02\r
 \r
-//\r
-// Number of frames longer than the maxminum length for the\r
-// media.  This would be >1500 for ethernet.\r
-//\r
+///\r
+/// Number of frames longer than the maxminum length for the\r
+/// media.  This would be >1500 for ethernet.\r
+///\r
 #define PXE_STATISTICS_RX_OVERSIZE_FRAMES 0x03\r
 \r
-//\r
-// Valid frames that were dropped because receive buffers were full.\r
-//\r
+///\r
+/// Valid frames that were dropped because receive buffers were full.\r
+///\r
 #define PXE_STATISTICS_RX_DROPPED_FRAMES  0x04\r
 \r
-//\r
-// Number of valid unicast frames received and not dropped.\r
-//\r
+///\r
+/// Number of valid unicast frames received and not dropped.\r
+///\r
 #define PXE_STATISTICS_RX_UNICAST_FRAMES  0x05\r
 \r
-//\r
-// Number of valid broadcast frames received and not dropped.\r
-//\r
+///\r
+/// Number of valid broadcast frames received and not dropped.\r
+///\r
 #define PXE_STATISTICS_RX_BROADCAST_FRAMES  0x06\r
 \r
-//\r
-// Number of valid mutlicast frames received and not dropped.\r
-//\r
+///\r
+/// Number of valid mutlicast frames received and not dropped.\r
+///\r
 #define PXE_STATISTICS_RX_MULTICAST_FRAMES  0x07\r
 \r
-//\r
-// Number of frames w/ CRC or alignment errors.\r
-//\r
+///\r
+/// Number of frames w/ CRC or alignment errors.\r
+///\r
 #define PXE_STATISTICS_RX_CRC_ERROR_FRAMES  0x08\r
 \r
-//\r
-// Total number of bytes received.  Includes frames with errors\r
-// and dropped frames.\r
-//\r
+///\r
+/// Total number of bytes received.  Includes frames with errors\r
+/// and dropped frames.\r
+///\r
 #define PXE_STATISTICS_RX_TOTAL_BYTES 0x09\r
 \r
-//\r
-// Transmit statistics.\r
-//\r
+///\r
+/// Transmit statistics.\r
+///\r
 #define PXE_STATISTICS_TX_TOTAL_FRAMES      0x0A\r
 #define PXE_STATISTICS_TX_GOOD_FRAMES       0x0B\r
 #define PXE_STATISTICS_TX_UNDERSIZE_FRAMES  0x0C\r
@@ -1453,142 +1432,141 @@ typedef struct s_pxe_db_statistics {
 #define PXE_STATISTICS_TX_CRC_ERROR_FRAMES  0x12\r
 #define PXE_STATISTICS_TX_TOTAL_BYTES       0x13\r
 \r
-//\r
-// Number of collisions detection on this subnet.\r
-//\r
+///\r
+/// Number of collisions detection on this subnet.\r
+///\r
 #define PXE_STATISTICS_COLLISIONS 0x14\r
 \r
-//\r
-// Number of frames destined for unsupported protocol.\r
-//\r
+///\r
+/// Number of frames destined for unsupported protocol.\r
+///\r
 #define PXE_STATISTICS_UNSUPPORTED_PROTOCOL 0x15\r
 \r
 typedef struct s_pxe_cpb_mcast_ip_to_mac {\r
-  //\r
-  // Multicast IP address to be converted to multicast MAC address.\r
-  //\r
+  ///\r
+  /// Multicast IP address to be converted to multicast MAC address.\r
+  ///\r
   PXE_IP_ADDR IP;\r
 } PXE_CPB_MCAST_IP_TO_MAC;\r
 \r
 typedef struct s_pxe_db_mcast_ip_to_mac {\r
-  //\r
-  // Multicast MAC address.\r
-  //\r
+  ///\r
+  /// Multicast MAC address.\r
+  ///\r
   PXE_MAC_ADDR  MAC;\r
 } PXE_DB_MCAST_IP_TO_MAC;\r
 \r
 typedef struct s_pxe_cpb_nvdata_sparse {\r
-  //\r
-  // NvData item list.  Only items in this list will be updated.\r
-  //\r
+  ///\r
+  /// NvData item list.  Only items in this list will be updated.\r
+  ///\r
   struct {\r
-    //\r
-    //  Non-volatile storage address to be changed.\r
-    //\r
+    ///\r
+    ///  Non-volatile storage address to be changed.\r
+    ///\r
     PXE_UINT32  Addr;\r
 \r
-    //\r
-    // Data item to write into above storage address.\r
-    //\r
+    ///\r
+    /// Data item to write into above storage address.\r
+    ///\r
     union {\r
       PXE_UINT8   Byte;\r
       PXE_UINT16  Word;\r
       PXE_UINT32  Dword;\r
     } Data;\r
   } Item[MAX_EEPROM_LEN];\r
-}\r
-PXE_CPB_NVDATA_SPARSE;\r
+} PXE_CPB_NVDATA_SPARSE;\r
 \r
-//\r
-// When using bulk update, the size of the CPB structure must be\r
-// the same size as the non-volatile NIC storage.\r
-//\r
+///\r
+/// When using bulk update, the size of the CPB structure must be\r
+/// the same size as the non-volatile NIC storage.\r
+///\r
 typedef union u_pxe_cpb_nvdata_bulk {\r
-  //\r
-  // Array of byte-wide data items.\r
-  //\r
+  ///\r
+  /// Array of byte-wide data items.\r
+  ///\r
   PXE_UINT8   Byte[MAX_EEPROM_LEN << 2];\r
 \r
-  //\r
-  // Array of word-wide data items.\r
-  //\r
+  ///\r
+  /// Array of word-wide data items.\r
+  ///\r
   PXE_UINT16  Word[MAX_EEPROM_LEN << 1];\r
 \r
-  //\r
-  // Array of dword-wide data items.\r
-  //\r
+  ///\r
+  /// Array of dword-wide data items.\r
+  ///\r
   PXE_UINT32  Dword[MAX_EEPROM_LEN];\r
 } PXE_CPB_NVDATA_BULK;\r
 \r
 typedef struct s_pxe_db_nvdata {\r
-  //\r
-  // Arrays of data items from non-volatile storage.\r
-  //\r
+  ///\r
+  /// Arrays of data items from non-volatile storage.\r
+  ///\r
   union {\r
-    //\r
-    // Array of byte-wide data items.\r
-    //\r
+    ///\r
+    /// Array of byte-wide data items.\r
+    ///\r
     PXE_UINT8   Byte[MAX_EEPROM_LEN << 2];\r
 \r
-    //\r
-    // Array of word-wide data items.\r
-    //\r
+    ///\r
+    /// Array of word-wide data items.\r
+    ///\r
     PXE_UINT16  Word[MAX_EEPROM_LEN << 1];\r
 \r
-    //\r
-    // Array of dword-wide data items.\r
-    //\r
+    ///\r
+    /// Array of dword-wide data items.\r
+    ///\r
     PXE_UINT32  Dword[MAX_EEPROM_LEN];\r
   } Data;\r
 } PXE_DB_NVDATA;\r
 \r
 typedef struct s_pxe_db_get_status {\r
-  //\r
-  // Length of next receive frame (header + data).  If this is zero,\r
-  // there is no next receive frame available.\r
-  //\r
+  ///\r
+  /// Length of next receive frame (header + data).  If this is zero,\r
+  /// there is no next receive frame available.\r
+  ///\r
   PXE_UINT32  RxFrameLen;\r
 \r
-  //\r
-  // Reserved, set to zero.\r
-  //\r
+  ///\r
+  /// Reserved, set to zero.\r
+  ///\r
   PXE_UINT32  reserved;\r
 \r
-  //\r
-  //  Addresses of transmitted buffers that need to be recycled.\r
-  //\r
+  ///\r
+  ///  Addresses of transmitted buffers that need to be recycled.\r
+  ///\r
   PXE_UINT64  TxBuffer[MAX_XMIT_BUFFERS];\r
 } PXE_DB_GET_STATUS;\r
 \r
 typedef struct s_pxe_cpb_fill_header {\r
-  //\r
-  // Source and destination MAC addresses.  These will be copied into\r
-  // the media header without doing byte swapping.\r
-  //\r
+  ///\r
+  /// Source and destination MAC addresses.  These will be copied into\r
+  /// the media header without doing byte swapping.\r
+  ///\r
   PXE_MAC_ADDR  SrcAddr;\r
   PXE_MAC_ADDR  DestAddr;\r
 \r
-  //\r
-  // Address of first byte of media header.  The first byte of packet data\r
-  // follows the last byte of the media header.\r
-  //\r
+  ///\r
+  /// Address of first byte of media header.  The first byte of packet data\r
+  /// follows the last byte of the media header.\r
+  ///\r
   PXE_UINT64        MediaHeader;\r
 \r
-  //\r
-  // Length of packet data in bytes (not including the media header).\r
-  //\r
+  ///\r
+  /// Length of packet data in bytes (not including the media header).\r
+  ///\r
   PXE_UINT32        PacketLen;\r
 \r
-  //\r
-  // Protocol type.  This will be copied into the media header without\r
-  // doing byte swapping.  Protocol type numbers can be obtained from\r
-  // the Assigned Numbers RFC 1700.\r
-  //\r
+  ///\r
+  /// Protocol type.  This will be copied into the media header without\r
+  /// doing byte swapping.  Protocol type numbers can be obtained from\r
+  /// the Assigned Numbers RFC 1700.\r
+  ///\r
   PXE_UINT16        Protocol;\r
 \r
-  //\r
-  // Length of the media header in bytes.\r
-  //\r
+  ///\r
+  /// Length of the media header in bytes.\r
+  ///\r
   PXE_UINT16        MediaHeaderLen;\r
 } PXE_CPB_FILL_HEADER;\r
 \r
@@ -1597,215 +1575,182 @@ typedef struct s_pxe_cpb_fill_header {
 #define MAX_XMIT_FRAGMENTS        16\r
 \r
 typedef struct s_pxe_cpb_fill_header_fragmented {\r
-  //\r
-  // Source and destination MAC addresses.  These will be copied into\r
-  // the media header without doing byte swapping.\r
-  //\r
+  ///\r
+  /// Source and destination MAC addresses.  These will be copied into\r
+  /// the media header without doing byte swapping.\r
+  ///\r
   PXE_MAC_ADDR        SrcAddr;\r
   PXE_MAC_ADDR        DestAddr;\r
 \r
-  //\r
-  // Length of packet data in bytes (not including the media header).\r
-  //\r
+  ///\r
+  /// Length of packet data in bytes (not including the media header).\r
+  ///\r
   PXE_UINT32          PacketLen;\r
 \r
-  //\r
-  // Protocol type.  This will be copied into the media header without\r
-  // doing byte swapping.  Protocol type numbers can be obtained from\r
-  // the Assigned Numbers RFC 1700.\r
-  //\r
+  ///\r
+  /// Protocol type.  This will be copied into the media header without\r
+  /// doing byte swapping.  Protocol type numbers can be obtained from\r
+  /// the Assigned Numbers RFC 1700.\r
+  ///\r
   PXE_MEDIA_PROTOCOL  Protocol;\r
 \r
-  //\r
-  // Length of the media header in bytes.\r
-  //\r
+  ///\r
+  /// Length of the media header in bytes.\r
+  ///\r
   PXE_UINT16          MediaHeaderLen;\r
 \r
-  //\r
-  // Number of packet fragment descriptors.\r
-  //\r
+  ///\r
+  /// Number of packet fragment descriptors.\r
+  ///\r
   PXE_UINT16          FragCnt;\r
 \r
-  //\r
-  // Reserved, must be set to zero.\r
-  //\r
+  ///\r
+  /// Reserved, must be set to zero.\r
+  ///\r
   PXE_UINT16          reserved;\r
 \r
-  //\r
-  // Array of packet fragment descriptors.  The first byte of the media\r
-  // header is the first byte of the first fragment.\r
-  //\r
+  ///\r
+  /// Array of packet fragment descriptors.  The first byte of the media\r
+  /// header is the first byte of the first fragment.\r
+  ///\r
   struct {\r
-    //\r
-    // Address of this packet fragment.\r
-    //\r
+    ///\r
+    /// Address of this packet fragment.\r
+    ///\r
     PXE_UINT64  FragAddr;\r
 \r
-    //\r
-    // Length of this packet fragment.\r
-    //\r
+    ///\r
+    /// Length of this packet fragment.\r
+    ///\r
     PXE_UINT32  FragLen;\r
 \r
-    //\r
-    // Reserved, must be set to zero.\r
-    //\r
+    ///\r
+    /// Reserved, must be set to zero.\r
+    ///\r
     PXE_UINT32  reserved;\r
   } FragDesc[MAX_XMIT_FRAGMENTS];\r
 }\r
 PXE_CPB_FILL_HEADER_FRAGMENTED;\r
 \r
 typedef struct s_pxe_cpb_transmit {\r
-  //\r
-  // Address of first byte of frame buffer.  This is also the first byte\r
-  // of the media header.\r
-  //\r
+  ///\r
+  /// Address of first byte of frame buffer.  This is also the first byte\r
+  /// of the media header.\r
+  ///\r
   PXE_UINT64  FrameAddr;\r
 \r
-  //\r
-  // Length of the data portion of the frame buffer in bytes.  Do not\r
-  // include the length of the media header.\r
-  //\r
+  ///\r
+  /// Length of the data portion of the frame buffer in bytes.  Do not\r
+  /// include the length of the media header.\r
+  ///\r
   PXE_UINT32  DataLen;\r
 \r
-  //\r
-  // Length of the media header in bytes.\r
-  //\r
+  ///\r
+  /// Length of the media header in bytes.\r
+  ///\r
   PXE_UINT16  MediaheaderLen;\r
 \r
-  //\r
-  // Reserved, must be zero.\r
-  //\r
+  ///\r
+  /// Reserved, must be zero.\r
+  ///\r
   PXE_UINT16  reserved;\r
 } PXE_CPB_TRANSMIT;\r
 \r
 typedef struct s_pxe_cpb_transmit_fragments {\r
-  //\r
-  // Length of packet data in bytes (not including the media header).\r
-  //\r
+  ///\r
+  /// Length of packet data in bytes (not including the media header).\r
+  ///\r
   PXE_UINT32  FrameLen;\r
 \r
-  //\r
-  // Length of the media header in bytes.\r
-  //\r
+  ///\r
+  /// Length of the media header in bytes.\r
+  ///\r
   PXE_UINT16  MediaheaderLen;\r
 \r
-  //\r
-  // Number of packet fragment descriptors.\r
-  //\r
+  ///\r
+  /// Number of packet fragment descriptors.\r
+  ///\r
   PXE_UINT16  FragCnt;\r
 \r
-  //\r
-  // Array of frame fragment descriptors.  The first byte of the first\r
-  // fragment is also the first byte of the media header.\r
-  //\r
+  ///\r
+  /// Array of frame fragment descriptors.  The first byte of the first\r
+  /// fragment is also the first byte of the media header.\r
+  ///\r
   struct {\r
-    //\r
-    // Address of this frame fragment.\r
-    //\r
+    ///\r
+    /// Address of this frame fragment.\r
+    ///\r
     PXE_UINT64  FragAddr;\r
 \r
-    //\r
-    // Length of this frame fragment.\r
-    //\r
+    ///\r
+    /// Length of this frame fragment.\r
+    ///\r
     PXE_UINT32  FragLen;\r
 \r
-    //\r
-    // Reserved, must be set to zero.\r
-    //\r
+    ///\r
+    /// Reserved, must be set to zero.\r
+    ///\r
     PXE_UINT32  reserved;\r
   } FragDesc[MAX_XMIT_FRAGMENTS];\r
 }\r
 PXE_CPB_TRANSMIT_FRAGMENTS;\r
 \r
 typedef struct s_pxe_cpb_receive {\r
-  //\r
-  // Address of first byte of receive buffer.  This is also the first byte\r
-  // of the frame header.\r
-  //\r
+  ///\r
+  /// Address of first byte of receive buffer.  This is also the first byte\r
+  /// of the frame header.\r
+  ///\r
   PXE_UINT64  BufferAddr;\r
 \r
-  //\r
-  // Length of receive buffer.  This must be large enough to hold the\r
-  // received frame (media header + data).  If the length of smaller than\r
-  // the received frame, data will be lost.\r
-  //\r
+  ///\r
+  /// Length of receive buffer.  This must be large enough to hold the\r
+  /// received frame (media header + data).  If the length of smaller than\r
+  /// the received frame, data will be lost.\r
+  ///\r
   PXE_UINT32  BufferLen;\r
 \r
-  //\r
-  // Reserved, must be set to zero.\r
-  //\r
+  ///\r
+  /// Reserved, must be set to zero.\r
+  ///\r
   PXE_UINT32  reserved;\r
 } PXE_CPB_RECEIVE;\r
 \r
 typedef struct s_pxe_db_receive {\r
-  //\r
-  // Source and destination MAC addresses from media header.\r
-  //\r
+  ///\r
+  /// Source and destination MAC addresses from media header.\r
+  ///\r
   PXE_MAC_ADDR        SrcAddr;\r
   PXE_MAC_ADDR        DestAddr;\r
 \r
-  //\r
-  // Length of received frame.  May be larger than receive buffer size.\r
-  // The receive buffer will not be overwritten.  This is how to tell\r
-  // if data was lost because the receive buffer was too small.\r
-  //\r
+  ///\r
+  /// Length of received frame.  May be larger than receive buffer size.\r
+  /// The receive buffer will not be overwritten.  This is how to tell\r
+  /// if data was lost because the receive buffer was too small.\r
+  ///\r
   PXE_UINT32          FrameLen;\r
 \r
-  //\r
-  // Protocol type from media header.\r
-  //\r
+  ///\r
+  /// Protocol type from media header.\r
+  ///\r
   PXE_MEDIA_PROTOCOL  Protocol;\r
 \r
-  //\r
-  // Length of media header in received frame.\r
-  //\r
+  ///\r
+  /// Length of media header in received frame.\r
+  ///\r
   PXE_UINT16          MediaHeaderLen;\r
 \r
-  //\r
-  // Type of receive frame.\r
-  //\r
+  ///\r
+  /// Type of receive frame.\r
+  ///\r
   PXE_FRAME_TYPE      Type;\r
 \r
-  //\r
-  // Reserved, must be zero.\r
-  //\r
+  ///\r
+  /// Reserved, must be zero.\r
+  ///\r
   PXE_UINT8           reserved[7];\r
 \r
 } PXE_DB_RECEIVE;\r
 \r
-//\r
-// Packet definitions\r
-//\r
-typedef struct {\r
-  UINT8   BootpOpcode;\r
-  UINT8   BootpHwType;\r
-  UINT8   BootpHwAddrLen;\r
-  UINT8   BootpGateHops;\r
-  UINT32  BootpIdent;\r
-  UINT16  BootpSeconds;\r
-  UINT16  BootpFlags;\r
-  UINT8   BootpCiAddr[4];\r
-  UINT8   BootpYiAddr[4];\r
-  UINT8   BootpSiAddr[4];\r
-  UINT8   BootpGiAddr[4];\r
-  UINT8   BootpHwAddr[16];\r
-  UINT8   BootpSrvName[64];\r
-  UINT8   BootpBootFile[128];\r
-  UINT32  DhcpMagik;\r
-  UINT8   DhcpOptions[56];\r
-} EFI_PXE_BASE_CODE_DHCPV4_PACKET;\r
-\r
-typedef union {\r
-  UINT8                           Raw[1472];\r
-  EFI_PXE_BASE_CODE_DHCPV4_PACKET Dhcpv4;\r
-\r
-  //\r
-  //  EFI_PXE_BASE_CODE_DHCPV6_PACKET     Dhcpv6;\r
-  //\r
-} EFI_PXE_BASE_CODE_PACKET;\r
-\r
-\r
-\r
 #pragma pack()\r
 \r
 #endif\r
index a67bfcb277e12e021fd4bacbb460767ce9778016..00fa563f546defda788bbccdb8e3ba740f79fb3d 100644 (file)
@@ -1,8 +1,7 @@
 /** @file\r
-  \r
   TCG EFI Platform Definition in TCG_EFI_Platform_1_20_Final\r
 \r
-  Copyright (c) 2006 - 2007, Intel Corporation\r
+  Copyright (c) 2006 - 2008, 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
@@ -40,8 +39,6 @@
 #define EV_EFI_PLATFORM_FIRMWARE_BLOB       (EV_EFI_EVENT_BASE + 8)\r
 #define EV_EFI_HANDOFF_TABLES               (EV_EFI_EVENT_BASE + 9)\r
 \r
-#define TSS_EVENT_DATA_MAX_SIZE   256\r
-\r
 #define EFI_CALLING_EFI_APPLICATION         \\r
   "Calling EFI Application from Boot Option"\r
 #define EFI_RETURNING_FROM_EFI_APPLICATOIN  \\r
@@ -64,16 +61,18 @@ typedef UINT32                     TCG_EVENTTYPE;
 #define TCG_PCRINDEX               TPM_PCRINDEX\r
 \r
 ///\r
-/// TCG_PCR_EVENT\r
+/// Event Log Entry Structure Definition\r
 ///\r
 typedef struct tdTCG_PCR_EVENT {\r
-  TCG_PCRINDEX                      PCRIndex;  // PCRIndex event extended to\r
-  TCG_EVENTTYPE                     EventType; // TCG EFI event type\r
-  TCG_DIGEST                        Digest;    // Value extended into PCRIndex\r
-  UINT32                            EventSize; // Size of the event data\r
-  UINT8                             Event[1];  // The event data\r
+  TCG_PCRINDEX                      PCRIndex;  ///< PCRIndex event extended to\r
+  TCG_EVENTTYPE                     EventType; ///< TCG EFI event type\r
+  TCG_DIGEST                        Digest;    ///< Value extended into PCRIndex\r
+  UINT32                            EventSize; ///< Size of the event data\r
+  UINT8                             Event[1];  ///< The event data\r
 } TCG_PCR_EVENT;\r
 \r
+#define TSS_EVENT_DATA_MAX_SIZE   256\r
+\r
 ///\r
 /// TCG_PCR_EVENT_HDR\r
 ///\r
@@ -116,7 +115,7 @@ typedef struct tdEFI_IMAGE_LOAD_EVENT {
 /// the measurement of given configuration tables.\r
 ///\r
 typedef struct tdEFI_HANDOFF_TABLE_POINTERS {\r
-  UINTN                                  NumberOfTables;\r
+  UINTN                             NumberOfTables;\r
   EFI_CONFIGURATION_TABLE           TableEntry[1];\r
 } EFI_HANDOFF_TABLE_POINTERS;\r
 \r
@@ -132,7 +131,7 @@ typedef struct tdEFI_VARIABLE_DATA {
   UINTN                             UnicodeNameLength;\r
   UINTN                             VariableDataLength;\r
   CHAR16                            UnicodeName[1];\r
-  INT8                              VariableData[1];  // Driver or platform-specific data\r
+  INT8                              VariableData[1];  ///< Driver or platform-specific data\r
 } EFI_VARIABLE_DATA;\r
 \r
 typedef struct tdEFI_GPT_DATA {\r