\r
//\r
// Force Interrupt line to "Unknown" or "No Connection"\r
- // based on the PCI spec, the Interrupt line for x86 should be set as 0xFF for unknown.\r
//\r
PciIo = &(PciIoDevice->PciIo);\r
-#ifndef MDE_CPU_IPF\r
Data8 = PCI_INT_LINE_UNKNOWN;\r
-#else\r
- Data8 = 0;\r
-#endif\r
+\r
PciIo->Pci.Write (PciIo, EfiPciIoWidthUint8, 0x3C, 1, &Data8);\r
\r
//\r
/*++\r
\r
-Copyright (c) 2006, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+Copyright (c) 2006 - 2007, Intel Corporation\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
Module name:\r
decode.c\r
// TODO: fix comment to add: Module Name: DECODE.C\r
#include "Undi32.h"\r
\r
-\r
-//\r
-// #pragma data_seg("rtdata") is only recognized by MSFT C compiler.\r
-// But EBC compiler "Intel(R) C Compiler for EFI Byte Code, Version 1.2 Build 20040123"\r
-// does not recognize this pragma.\r
-//\r
-#if defined(_MSC_EXTENSIONS) && !defined(MDE_CPU_EBC)\r
-#pragma data_seg("rtdata")\r
-#endif\r
-\r
//\r
// Global variables defined in this file\r
//\r
}\r
\r
AdapterInfo = &(UNDI32DeviceList[CdbPtr->IFnum]->NicInfo);\r
- \r
+\r
//\r
// entering from older entry point\r
//\r
PxePtr->Fudge = (UINT8) (PxePtr->Fudge - ChkSum ((VOID *) PxePtr, PxePtr->Len));\r
}\r
\r
-//\r
-// #pragma data_seg("rtdata") is only recognized by MSFT C compiler.\r
-// But EBC compiler "Intel(R) C Compiler for EFI Byte Code, Version 1.2 Build 20040123"\r
-// does not recognize this pragma.\r
-//\r
-#if defined(_MSC_EXTENSIONS) && !defined(MDE_CPU_EBC)\r
-#pragma data_seg()\r
-#endif\r
/*++\r
\r
-Copyright (c) 2006, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+Copyright (c) 2006 - 2007, Intel Corporation\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
Module Name:\r
\r
\r
--*/\r
\r
-\r
-#ifdef TIANO_EXTENSION_FLAG\r
-EFI_GUID UnknownDeviceGuid = UNKNOWN_DEVICE_GUID;\r
-#endif \r
-\r
EFI_GUID mEfiUnixThunkProtocolGuid = EFI_UNIX_THUNK_PROTOCOL_GUID;\r
EFI_GUID mEfiUnixUgaGuid = EFI_UNIX_UGA_GUID;\r
EFI_GUID mEfiMsgPcAnsiGuid = DEVICE_PATH_MESSAGING_PC_ANSI;\r
\r
Routine Description:\r
\r
- Concatenates a formatted unicode string to allocated pool. \r
+ Concatenates a formatted unicode string to allocated pool.\r
The caller must free the resulting buffer.\r
\r
Arguments:\r
\r
- Str - Tracks the allocated pool, size in use, and \r
+ Str - Tracks the allocated pool, size in use, and\r
amount of pool allocated.\r
\r
fmt - The format string\r
\r
Returns:\r
\r
- Allocated buffer with the formatted string printed in it. \r
+ Allocated buffer with the formatted string printed in it.\r
The caller must free the allocated buffer. The buffer\r
allocation is not packed.\r
\r
\r
Returns:\r
\r
- If the memory for the device path is successfully allocated, then a \r
+ If the memory for the device path is successfully allocated, then a\r
pointer to the new device path is returned. Otherwise, NULL is returned.\r
\r
--*/\r
\r
Routine Description:\r
\r
- Function creates a device path data structure that identically matches the \r
+ Function creates a device path data structure that identically matches the\r
device path passed in.\r
\r
Arguments:\r
\r
Returns:\r
\r
- The new copy of DevPath is created to identically match the input. \r
+ The new copy of DevPath is created to identically match the input.\r
Otherwise, NULL is returned.\r
\r
--*/\r
<LibraryClass Usage="ALWAYS_CONSUMED">\r
<Keyword>BaseMemoryLib</Keyword>\r
</LibraryClass>\r
+ <LibraryClass Usage="ALWAYS_CONSUMED">\r
+ <Keyword>MemoryAllocationLib</Keyword>\r
+ </LibraryClass>\r
<LibraryClass Usage="ALWAYS_CONSUMED">\r
<Keyword>UefiBootServicesTableLib</Keyword>\r
</LibraryClass>\r
/*++\r
\r
-Copyright (c) 2006, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+Copyright (c) 2006 - 2007, Intel Corporation\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
Module Name:\r
\r
CapsuleHeaderArray A array of pointers to capsule headers passed in\r
CapsuleCount The number of capsule\r
ScatterGatherList Physical address of datablock list points to capsule\r
- \r
+\r
Returns:\r
\r
EFI STATUS\r
not set, the capsule has been successfully processed by the firmware.\r
If it set, the ScattlerGatherList is successfully to be set.\r
EFI_INVALID_PARAMETER CapsuleCount is less than 1,CapsuleGuid is not supported.\r
- EFI_DEVICE_ERROR Failed to SetVariable or AllocatePool or ProcessFirmwareVolume. \r
- \r
+ EFI_DEVICE_ERROR Failed to SetVariable or AllocatePool or ProcessFirmwareVolume.\r
+\r
--*/\r
{\r
UINTN CapsuleSize;\r
for (ArrayNumber = 0; ArrayNumber < CapsuleCount; ArrayNumber++) {\r
CapsuleHeader = CapsuleHeaderArray[ArrayNumber];\r
if ((CapsuleHeader->Flags & (CAPSULE_FLAGS_PERSIST_ACROSS_RESET | CAPSULE_FLAGS_POPULATE_SYSTEM_TABLE)) == CAPSULE_FLAGS_POPULATE_SYSTEM_TABLE) {\r
- return EFI_INVALID_PARAMETER; \r
+ return EFI_INVALID_PARAMETER;\r
}\r
if (!CompareGuid (&CapsuleHeader->CapsuleGuid, &mEfiCapsuleHeaderGuid)) {\r
if ((CapsuleHeader->Flags & CAPSULE_FLAGS_POPULATE_SYSTEM_TABLE) == 0) {\r
return EFI_UNSUPPORTED;\r
- } \r
- } \r
+ }\r
+ }\r
}\r
\r
//\r
- //Assume that capsules have the same flags on reseting or not. \r
+ //Assume that capsules have the same flags on reseting or not.\r
//\r
CapsuleHeader = CapsuleHeaderArray[0];\r
\r
if (!FeaturePcdGet(PcdSupportUpdateCapsuleRest)) {\r
return EFI_UNSUPPORTED;\r
}\r
- \r
+\r
if (ScatterGatherList == 0) {\r
return EFI_INVALID_PARAMETER;\r
} else {\r
Status = EfiSetVariable (\r
- EFI_CAPSULE_VARIABLE_NAME, \r
- &gEfiCapsuleVendorGuid, \r
- EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_RUNTIME_ACCESS | EFI_VARIABLE_BOOTSERVICE_ACCESS, \r
- sizeof (UINTN), \r
- (VOID *) &ScatterGatherList \r
+ EFI_CAPSULE_VARIABLE_NAME,\r
+ &gEfiCapsuleVendorGuid,\r
+ EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_RUNTIME_ACCESS | EFI_VARIABLE_BOOTSERVICE_ACCESS,\r
+ sizeof (UINTN),\r
+ (VOID *) &ScatterGatherList\r
);\r
- if (Status != EFI_SUCCESS) { \r
+ if (Status != EFI_SUCCESS) {\r
return EFI_DEVICE_ERROR;\r
}\r
}\r
return EFI_SUCCESS;\r
}\r
- \r
+\r
//\r
//The rest occurs in the condition of non-reset mode\r
//\r
- if (EfiAtRuntime ()) { \r
+ if (EfiAtRuntime ()) {\r
return EFI_INVALID_PARAMETER;\r
}\r
\r
for (ArrayNumber = 0; ArrayNumber < CapsuleCount ; ArrayNumber++) {\r
CapsuleHeader = CapsuleHeaderArray[ArrayNumber];\r
CapsuleSize = CapsuleHeader->CapsuleImageSize - CapsuleHeader->HeaderSize;\r
- Status = gBS->AllocatePool (EfiBootServicesData, CapsuleSize, &BufferPtr);\r
- if (Status != EFI_SUCCESS) {\r
- goto Done;\r
+\r
+ BufferPtr = AllocatePool (CapsuleSize);\r
+ if (BufferPtr == NULL) {\r
+ return EFI_DEVICE_ERROR;\r
}\r
- gBS->CopyMem (BufferPtr, (UINT8*)CapsuleHeader+ CapsuleHeader->HeaderSize, CapsuleSize);\r
+\r
+ CopyMem (BufferPtr, (UINT8*)CapsuleHeader+ CapsuleHeader->HeaderSize, CapsuleSize);\r
\r
//\r
- //Call DXE service ProcessFirmwareVolume to process immediatelly \r
+ //Call DXE service ProcessFirmwareVolume to process immediatelly\r
//\r
Status = gDS->ProcessFirmwareVolume (BufferPtr, CapsuleSize, &FvHandle);\r
if (Status != EFI_SUCCESS) {\r
- gBS->FreePool (BufferPtr);\r
+ FreePool (BufferPtr);\r
return EFI_DEVICE_ERROR;\r
}\r
gDS->Dispatch ();\r
- gBS->FreePool (BufferPtr);\r
+ FreePool (BufferPtr);\r
}\r
- return EFI_SUCCESS;\r
\r
-Done:\r
- if (BufferPtr != NULL) {\r
- gBS->FreePool (BufferPtr);\r
- } \r
- return EFI_DEVICE_ERROR;\r
+ return EFI_SUCCESS;\r
}\r
\r
\r
- \r
+\r
EFI_STATUS\r
EFIAPI\r
QueryCapsuleCapabilities (\r
\r
if ((MaxiumCapsuleSize == NULL) ||(ResetType == NULL)) {\r
return EFI_INVALID_PARAMETER;\r
- } \r
+ }\r
\r
CapsuleHeader = NULL;\r
- \r
+\r
//\r
//Compare GUIDs with EFI_CAPSULE_GUID, if capsule header contains CAPSULE_FLAGS_PERSIST_ACROSS_RESET\r
//and CAPSULE_FLAGS_POPULATE_SYSTEM_TABLE flags,whatever the GUID is ,the service supports.\r
for (ArrayNumber = 0; ArrayNumber < CapsuleCount; ArrayNumber++) {\r
CapsuleHeader = CapsuleHeaderArray[ArrayNumber];\r
if ((CapsuleHeader->Flags & (CAPSULE_FLAGS_PERSIST_ACROSS_RESET | CAPSULE_FLAGS_POPULATE_SYSTEM_TABLE)) == CAPSULE_FLAGS_POPULATE_SYSTEM_TABLE) {\r
- return EFI_INVALID_PARAMETER; \r
+ return EFI_INVALID_PARAMETER;\r
}\r
if (!CompareGuid (&CapsuleHeader->CapsuleGuid, &mEfiCapsuleHeaderGuid)) {\r
if ((CapsuleHeader->Flags & CAPSULE_FLAGS_POPULATE_SYSTEM_TABLE) == 0) {\r
return EFI_UNSUPPORTED;\r
}\r
- } \r
+ }\r
}\r
\r
//\r
- //Assume that capsules have the same flags on reseting or not. \r
+ //Assume that capsules have the same flags on reseting or not.\r
//\r
- CapsuleHeader = CapsuleHeaderArray[0]; \r
+ CapsuleHeader = CapsuleHeaderArray[0];\r
if ((CapsuleHeader->Flags & CAPSULE_FLAGS_PERSIST_ACROSS_RESET) != 0) {\r
//\r
//Check if the platform supports update capsule across a system reset\r
return EFI_UNSUPPORTED;\r
}\r
*ResetType = EfiResetWarm;\r
- *MaxiumCapsuleSize = FixedPcdGet32(PcdMaxSizePopulateCapsule); \r
+ *MaxiumCapsuleSize = FixedPcdGet32(PcdMaxSizePopulateCapsule);\r
} else {\r
*ResetType = EfiResetCold;\r
*MaxiumCapsuleSize = FixedPcdGet32(PcdMaxSizeNonPopulateCapsule);\r
- } \r
+ }\r
return EFI_SUCCESS;\r
-} \r
+}\r
\r
/*++\r
\r
-Copyright (c) 2006, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+Copyright (c) 2006 - 2007, Intel Corporation\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
Module Name:\r
bc.h\r
//\r
// Determine the classes of IPv4 address\r
//\r
-#define IS_CLASSA_IPADDR(x) ((((EFI_IP_ADDRESS*)x)->v4.Addr[0] & 0x80) == 0x00) \r
-#define IS_CLASSB_IPADDR(x) ((((EFI_IP_ADDRESS*)x)->v4.Addr[0] & 0xc0) == 0x80) \r
-#define IS_CLASSC_IPADDR(x) ((((EFI_IP_ADDRESS*)x)->v4.Addr[0] & 0xe0) == 0xc0) \r
+#define IS_CLASSA_IPADDR(x) ((((EFI_IP_ADDRESS*)x)->v4.Addr[0] & 0x80) == 0x00)\r
+#define IS_CLASSB_IPADDR(x) ((((EFI_IP_ADDRESS*)x)->v4.Addr[0] & 0xc0) == 0x80)\r
+#define IS_CLASSC_IPADDR(x) ((((EFI_IP_ADDRESS*)x)->v4.Addr[0] & 0xe0) == 0xc0)\r
#define IS_INADDR_UNICAST(x) ((IS_CLASSA_IPADDR(x) || IS_CLASSB_IPADDR(x) || IS_CLASSC_IPADDR(x)) && (((EFI_IP_ADDRESS*)x)->Addr[0] != 0) )\r
\r
//\r
EFI_EVENT IgmpGroupEvent[MAX_MCAST_GROUPS];\r
UINT16 RandomPort;\r
\r
-#if SUPPORT_IPV6\r
- //\r
- // TBD\r
- //\r
-#else\r
UINT32 MCastGroup[MAX_MCAST_GROUPS];\r
-#endif\r
-\r
BOOLEAN GoodStationIp;\r
BOOLEAN DidTransmit;\r
UINTN IpLength;\r
/*++\r
-Copyright (c) 2006, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+\r
+Copyright (c) 2006 - 2007, Intel Corporation\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
Module Name:\r
bc.c\r
Arguments:\r
\r
Returns:\r
- none - \r
+ none -\r
\r
--*/\r
{\r
Length - Length to be checksummed\r
\r
Returns:\r
- Checksum - Returns the 16 bit ones complement of \r
+ Checksum - Returns the 16 bit ones complement of\r
ones complement sum of 16 bit words\r
\r
--*/\r
MessageLen - Length to be checksummed\r
\r
Returns:\r
- Checksum - Returns the 16 bit ones complement of \r
+ Checksum - Returns the 16 bit ones complement of\r
ones complement sum of 16 bit words\r
\r
--*/\r
NewWord - New Value\r
\r
Returns:\r
- Checksum - Returns the 16 bit ones complement of \r
+ Checksum - Returns the 16 bit ones complement of\r
ones complement sum of 16 bit words\r
\r
--*/\r
\r
Returns:\r
0 - Callbacks are active on the handle\r
- 1 - Callbacks are not active on the handle \r
+ 1 - Callbacks are not active on the handle\r
\r
--*/\r
{\r
Arguments:\r
Private - Pointer to Pxe BaseCode Protocol\r
Function - What PXE function to callback\r
- TimeoutEvent - Timer event that will trigger when we have waited too \r
+ TimeoutEvent - Timer event that will trigger when we have waited too\r
long for an incoming packet\r
HeaderSizePtr - Pointer to the size of the Header size\r
BufferSizePtr - Pointer to the size of the Buffer size\r
//\r
for (;;)\r
{\r
-#if 0\r
- //\r
- // Check for received packet event.\r
- //\r
- if (!EFI_ERROR (gBS->CheckEvent (SnpPtr->WaitForPacket))) {\r
- //\r
- // Packet should be available. Attempt to read it.\r
- //\r
- *BufferSizePtr = BUFFER_ALLOCATE_SIZE;\r
-\r
- StatCode = SnpPtr->Receive (\r
- SnpPtr,\r
- HeaderSizePtr,\r
- BufferSizePtr,\r
- Private->ReceiveBufferPtr,\r
- 0,\r
- 0,\r
- ProtocolPtr\r
- );\r
-\r
- if (EFI_ERROR (StatCode)) {\r
- break;\r
- }\r
- //\r
- // Packet was received. Make received callback then return.\r
- //\r
- if (CallbackPtr != NULL) {\r
- StatCode = CallbackPtr (\r
- Private->CallbackProtocolPtr,\r
- Function,\r
- TRUE,\r
- (UINT32) *BufferSizePtr,\r
- (EFI_PXE_BASE_CODE_PACKET *) Private->ReceiveBufferPtr\r
- );\r
-\r
- if (StatCode != EFI_PXE_BASE_CODE_CALLBACK_STATUS_CONTINUE) {\r
- StatCode = EFI_ABORTED;\r
- } else {\r
- StatCode = EFI_SUCCESS;\r
- }\r
- }\r
-\r
- break;\r
- }\r
-\r
-#else\r
//\r
// Poll for received packet.\r
//\r
if (StatCode != EFI_NOT_READY) {\r
break;\r
}\r
-#endif\r
+\r
//\r
// Check for callback event.\r
//\r
\r
Arguments:\r
Private - Pointer to Pxe BaseCode Protocol\r
- HeaderPtr - Pointer to the buffer \r
+ HeaderPtr - Pointer to the buffer\r
PacketPtr - Pointer to the packet to send\r
PacketLen - The length of the entire packet to send\r
HardwareAddr - Pointer to the MAC address of the destination\r
return EFI_ALREADY_STARTED;\r
}\r
\r
-#if !SUPPORT_IPV6\r
//\r
// Fail if IPv6 is requested and not supported.\r
//\r
EfiReleaseLock (&Private->Lock);\r
return EFI_UNSUPPORTED;\r
}\r
-#endif\r
+\r
//\r
// Setup shortcuts to SNP protocol and data structure.\r
//\r
// supports IPv6.\r
//\r
Private->EfiBc.Mode->Ipv6Supported = SUPPORT_IPV6;\r
-\r
-#if SUPPORT_IPV6\r
- Private->EfiBc.Mode->Ipv6Available = Private->NiiPtr->Ipv6Supported;\r
-#else\r
Private->EfiBc.Mode->Ipv6Available = FALSE;\r
-#endif\r
+\r
//\r
// Set to TRUE by the BC constructor if this BC implementation\r
// supports BIS.\r
//\r
if (!Index2)\r
{\r
-#if SUPPORT_IPV6\r
- if (PxebcMode->UsingIpv6) {\r
- //\r
- // TBD\r
- //\r
- } else\r
-#endif\r
- TmpIp = (EFI_IP_ADDRESS *) &AllSystemsGroup;\r
+ TmpIp = (EFI_IP_ADDRESS *) &AllSystemsGroup;\r
--Index;\r
} else {\r
TmpIp = (EFI_IP_ADDRESS *) &Filter->IpList[Index];\r
// implementation supports IPv6.\r
//\r
Private->EfiBc.Mode->Ipv6Supported = SUPPORT_IPV6;\r
-\r
-#if SUPPORT_IPV6\r
- Private->EfiBc.Mode->Ipv6Available = Private->NiiPtr->Ipv6Supported;\r
-#else\r
Private->EfiBc.Mode->Ipv6Available = FALSE;\r
-#endif\r
+\r
//\r
// Set to TRUE by the BC constructor if this BC\r
// implementation supports BIS.\r
/*++\r
\r
-Copyright (c) 2006, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+Copyright (c) 2006 - 2007, Intel Corporation\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
--*/\r
\r
//\r
// Client architecture types\r
//\r
-#if defined MDE_CPU_IA32 \r
+#if defined MDE_CPU_IA32\r
#define SYS_ARCH 0x6\r
#elif defined MDE_CPU_X64\r
#define SYS_ARCH 0x7\r
// zero transmitted means checksum not computed\r
// data follows\r
//\r
- UINT16 Checksum; \r
+ UINT16 Checksum;\r
} UDPV4_HEADER;\r
\r
typedef struct {\r
// zero checksum is transmitted as -0 (ones comp)\r
// zero transmitted means checksum not computed\r
//\r
- UINT16 Checksum; \r
+ UINT16 Checksum;\r
UINT16 UrgentPointer; // pointer to urgent data (allows sender to specify urgent data)\r
} TCPV4_HEADER;\r
\r
} IPV4_STRUCT;\r
\r
#pragma pack() // reset to default\r
- \r
+\r
////////////////////////////////////////////////////////////\r
//\r
// BC IP Filter Routine\r
)\r
;\r
\r
-#if 0\r
-VOID\r
-WaitForTxComplete (\r
- IN PXE_BASECODE_DEVICE *Private\r
- )\r
-;\r
-#endif\r
//\r
// routine to cycle waiting for a receive or timeout\r
//\r
/*++\r
\r
-Copyright (c) 2006, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+Copyright (c) 2006 - 2007, Intel Corporation\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
--*/\r
\r
\r
Grp = *(UINT32 *) GroupPtr;\r
\r
-#if SUPPORT_IPV6\r
- if (Private->EfiBc.Mode->UsingIpv6) {\r
- //\r
- // TBD\r
- //\r
- }\r
-#endif\r
//\r
// see if we already have it or if we can't take anymore\r
//\r
\r
Grp = *(UINT32 *) GroupPtr;\r
\r
-#if SUPPORT_IPV6\r
- if (Private->EfiBc.Mode->UsingIpv6) {\r
- //\r
- // TBD\r
- //\r
- }\r
-#endif\r
//\r
// if not in group, ignore\r
//\r
/*++\r
\r
-Copyright (c) 2006, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+Copyright (c) 2006 - 2007, Intel Corporation\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
Module Name:\r
pxe_bc_ip.c\r
continue;\r
}\r
\r
-#if SUPPORT_IPV6\r
- if (PxeBcMode->UsingIpv6) {\r
- //\r
- // TBD\r
- //\r
- }\r
-#endif\r
-\r
#define IpRxHeader ((IPV4_HEADER *) PacketPtr)\r
\r
//\r
/*++\r
\r
-Copyright (c) 2006, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+Copyright (c) 2006 - 2007, Intel Corporation\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
Module Name:\r
- \r
+\r
pxe_bc_mtftp.c\r
\r
Abstract:\r
information in Mode structure and return TFTP_ERROR status.\r
\r
Parameters:\r
- Private := \r
- Operation := \r
- HeaderPtr := \r
- BufferSizePtr := \r
- BufferPtr := \r
- ServerIpPtr := \r
- ServerPortPtr := \r
- OurIpPtr := \r
- OurPortPtr := \r
- Timeout := \r
+ Private :=\r
+ Operation :=\r
+ HeaderPtr :=\r
+ BufferSizePtr :=\r
+ BufferPtr :=\r
+ ServerIpPtr :=\r
+ ServerPortPtr :=\r
+ OurIpPtr :=\r
+ OurPortPtr :=\r
+ Timeout :=\r
\r
Returns:\r
- EFI_SUCCESS := \r
- EFI_TFTP_ERROR := \r
- other := \r
+ EFI_SUCCESS :=\r
+ EFI_TFTP_ERROR :=\r
+ other :=\r
--*/\r
{\r
EFI_PXE_BASE_CODE_MODE *PxeBcMode;\r
Send TFTP ERROR message to TFTP server\r
\r
Parameters:\r
- Private := \r
- ServerIpPtr := \r
- ServerPortPtr := \r
- OurPortPtr := \r
+ Private :=\r
+ ServerIpPtr :=\r
+ ServerPortPtr :=\r
+ OurPortPtr :=\r
\r
Returns:\r
--*/\r
ServerPortPtr := Pointer to TFTP server UDP port\r
ReplyIpPtr := Pointer to TFTP DATA packet destination IP address\r
OurPortPtr := Pointer to TFTP client UDP port\r
- Timeout := \r
+ Timeout :=\r
ReplyLenPtr := Pointer to packet length\r
PxeBcMode := Pointer to packet buffer\r
BlockNumPtr := Pointer to block number\r
ReplyIpPtr := Pointer to TFTP DATA packet destination IP address\r
OurPortPtr := Pointer to TFTP client UDP port\r
LastBlock := Last block number received\r
- Timeout := \r
+ Timeout :=\r
DontUseBuffer := TRUE == throw away data, just count # of bytes\r
\r
Returns:\r
OurPortPtr := Pointer to TFTP client UDP port\r
FilenamePtr := Pointer to TFTP file or directory name\r
PacketSizePtr := Pointer to block size\r
- Buffer := \r
+ Buffer :=\r
\r
Returns:\r
--*/\r
Req := TFTP request type\r
Options := TFTP option bits\r
Private := Pointer to PxeBc interface\r
- HeaderPtr := \r
+ HeaderPtr :=\r
PacketSizePtr := Pointer to block size\r
- ReplyLenPtr := \r
- BufferPtr := \r
+ ReplyLenPtr :=\r
+ BufferPtr :=\r
ServerIpPtr := Pointer to TFTP server IP address\r
ServerPortPtr := Pointer to TFTP server UDP port\r
- ServerReplyPortPtr := \r
+ ServerReplyPortPtr :=\r
OurPortPtr := Pointer to TFTP client UDP Port\r
FilenamePtr := Pointer to file or directory name\r
- Timeout := \r
+ Timeout :=\r
\r
Returns:\r
--*/\r
\r
Parameters:\r
Private := Pointer to PxeBc interface\r
- BufferSizePtr := \r
- BufferPtr := \r
+ BufferSizePtr :=\r
+ BufferPtr :=\r
ServerIpPtr := Pointer to TFTP server IP address\r
MtftpInfoPtr := Pointer to MTFTP session information\r
StartBlockPtr := IN=first block we are looking for OUT=first block received\r
NumMissedPtr := Number of blocks missed\r
- TransTimeout := \r
- ListenTimeout := \r
- FinalBlock := \r
+ TransTimeout :=\r
+ ListenTimeout :=\r
+ FinalBlock :=\r
DontUseBuffer := TRUE == throw packets away, just count bytes\r
\r
Returns:\r
Parameters:\r
Private := Pointer to PxeBc interface\r
BufferSizePtr := IN=buffer size OUT=transfer size\r
- BufferPtr := \r
- PacketSizePtr := \r
- ServerIpPtr := \r
- FilenamePtr := \r
- MtftpInfoPtr := \r
- CompletionStatusPtr := \r
- DontUseBuffer := \r
+ BufferPtr :=\r
+ PacketSizePtr :=\r
+ ServerIpPtr :=\r
+ FilenamePtr :=\r
+ MtftpInfoPtr :=\r
+ CompletionStatusPtr :=\r
+ DontUseBuffer :=\r
\r
Returns:\r
// mtftp open session\r
-// return code EFI_SUCCESS \r
+// return code EFI_SUCCESS\r
// and *CompletionStatusPtr = GOTUNI | GOTMULTI means done\r
// and *CompletionStatusPtr = GOTMULTI means got first two multicast packets, use listen for rest\r
// and *CompletionStatusPtr = 0 means did not get first two multicast packets, use listen for all\r
\r
Parameters:\r
Private := Pointer to PxeBc interface\r
- BufferSizePtr := \r
- BufferPtr := \r
- ServerIpPtr := \r
- FilenamePtr := \r
- MtftpInfoPtr := \r
- DontUseBuffer := \r
+ BufferSizePtr :=\r
+ BufferPtr :=\r
+ ServerIpPtr :=\r
+ FilenamePtr :=\r
+ MtftpInfoPtr :=\r
+ DontUseBuffer :=\r
\r
Returns:\r
--*/\r
BufferPtrLocal = BufferPtr + Offset;\r
\r
}\r
- //\r
- // special !!! do not leave enabled in saved version on Source Safe\r
- // Following code put in in order to create a special version for regression\r
- // test of MTFTP server to make sure it handles mulitple opens correctly.\r
- // This code should NOT be enabled normally.\r
- //\r
-#ifdef SpecialNowaitVersion\r
-#pragma message ("This is special version for MTFTP regression test")\r
- if (StartBlock || !LastBlock)\r
-#endif\r
- if (((Status = MtftpListen (\r
+\r
+ if (((Status = MtftpListen (\r
Private,\r
&BufferSize,\r
BufferPtrLocal,\r
LastBlock,\r
DontUseBuffer\r
)) != EFI_SUCCESS) && (Status != EFI_TIMEOUT)) {\r
- return Status;\r
- //\r
- // failed\r
- //\r
- }\r
+ return Status;\r
+ //\r
+ // failed\r
+ //\r
+ }\r
//\r
// if none were received, start block is not reset\r
//\r
// if OACK received, set info\r
\r
Parameters:\r
- Private := \r
- BufferSizePtr := \r
- ServerIpPtr := \r
- SrvPort := \r
- FilenamePtr := \r
- PacketSizePtr := \r
+ Private :=\r
+ BufferSizePtr :=\r
+ ServerIpPtr :=\r
+ SrvPort :=\r
+ FilenamePtr :=\r
+ PacketSizePtr :=\r
\r
Returns:\r
--*/\r
// while data size is max\r
\r
Parameters:\r
- Private := \r
- BufferSizePtr := \r
- BufferPtr := \r
- ServerIpPtr := \r
- FilenamePtr := \r
- PacketSizePtr := \r
- SrvPort := \r
- Req := \r
- DontUseBuffer := \r
+ Private :=\r
+ BufferSizePtr :=\r
+ BufferPtr :=\r
+ ServerIpPtr :=\r
+ FilenamePtr :=\r
+ PacketSizePtr :=\r
+ SrvPort :=\r
+ Req :=\r
+ DontUseBuffer :=\r
\r
Returns:\r
--*/\r
// while data size is max\r
\r
Parameters:\r
- Private := \r
- BufferSizePtr := \r
- BufferPtr := \r
- ServerIpPtr := \r
- FilenamePtr := \r
- PacketSizePtr := \r
- Overwrite := \r
+ Private :=\r
+ BufferSizePtr :=\r
+ BufferPtr :=\r
+ ServerIpPtr :=\r
+ FilenamePtr :=\r
+ PacketSizePtr :=\r
+ Overwrite :=\r
\r
Returns:\r
--*/\r
MTFTP API entry point\r
\r
Parameters:\r
- Private := \r
- Operation := \r
- BufferSizePtr := \r
- BufferPtr := \r
- ServerIpPtr := \r
- FilenamePtr := \r
- PacketSizePtr := \r
- MtftpInfoPtr := \r
- Overwrite := \r
- DontUseBuffer := \r
+ Private :=\r
+ Operation :=\r
+ BufferSizePtr :=\r
+ BufferPtr :=\r
+ ServerIpPtr :=\r
+ FilenamePtr :=\r
+ PacketSizePtr :=\r
+ MtftpInfoPtr :=\r
+ Overwrite :=\r
+ DontUseBuffer :=\r
\r
Returns:\r
* EFI_INVALID_PARAMETER\r
MTFTP API entry point.\r
\r
Parameters:\r
- This := \r
- Operation := \r
- BufferPtr := \r
- Overwrite := \r
- BufferSizePtr := \r
- BlockSizePtr := \r
- ServerIpPtr := \r
- FilenamePtr := \r
- MtftpInfoPtr := \r
- DontUseBuffer := \r
+ This :=\r
+ Operation :=\r
+ BufferPtr :=\r
+ Overwrite :=\r
+ BufferSizePtr :=\r
+ BlockSizePtr :=\r
+ ServerIpPtr :=\r
+ FilenamePtr :=\r
+ MtftpInfoPtr :=\r
+ DontUseBuffer :=\r
\r
Returns:\r
* EFI_INVALID_PARAMETER\r
/*++\r
\r
-Copyright (c) 2006, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+Copyright (c) 2006 - 2007, Intel Corporation\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
Module Name:\r
pxe_bc_udp.c\r
\r
Parameters:\r
Private := Pointer to PxeBc interface\r
- OpFlags := \r
- DestIpPtr := \r
- DestPortPtr := \r
- GatewayIpPtr := \r
- SrcIpPtr := \r
- SrcPortPtr := \r
- HeaderSizePtr := \r
- HeaderPtr := \r
- BufferSizeptr := \r
- BufferPtr := \r
+ OpFlags :=\r
+ DestIpPtr :=\r
+ DestPortPtr :=\r
+ GatewayIpPtr :=\r
+ SrcIpPtr :=\r
+ SrcPortPtr :=\r
+ HeaderSizePtr :=\r
+ HeaderPtr :=\r
+ BufferSizeptr :=\r
+ BufferPtr :=\r
\r
Returns:\r
- EFI_SUCCESS := \r
- EFI_INVALID_PARAMETER := \r
- other := \r
+ EFI_SUCCESS :=\r
+ EFI_INVALID_PARAMETER :=\r
+ other :=\r
--*/\r
{\r
UINTN TotalLength;\r
\r
Parameters:\r
This := Pointer to PxeBc interface.\r
- OpFlags := \r
- DestIpPtr := \r
- DestPortPtr := \r
- GatewayIpPtr := \r
- SrcIpPtr := \r
- SrcPortPtr := \r
- HeaderSizePtr := \r
- HeaderPtr := \r
- BufferSizeptr := \r
- BufferPtr := \r
+ OpFlags :=\r
+ DestIpPtr :=\r
+ DestPortPtr :=\r
+ GatewayIpPtr :=\r
+ SrcIpPtr :=\r
+ SrcPortPtr :=\r
+ HeaderSizePtr :=\r
+ HeaderPtr :=\r
+ BufferSizeptr :=\r
+ BufferPtr :=\r
\r
Returns:\r
- EFI_SUCCESS := \r
- other := \r
+ EFI_SUCCESS :=\r
+ other :=\r
--*/\r
{\r
EFI_STATUS StatCode;\r
\r
Parameters:\r
Private := Pointer to PxeBc interface\r
- OpFlags := \r
- DestIpPtr := \r
- DestPortPtr := \r
- SrcIpPtr := \r
- SrcPortPtr := \r
- HeaderSizePtr := \r
- HeaderPtr := \r
- BufferSizeptr := \r
- BufferPtr := \r
+ OpFlags :=\r
+ DestIpPtr :=\r
+ DestPortPtr :=\r
+ SrcIpPtr :=\r
+ SrcPortPtr :=\r
+ HeaderSizePtr :=\r
+ HeaderPtr :=\r
+ BufferSizeptr :=\r
+ BufferPtr :=\r
TimeoutEvent :=\r
\r
Returns:\r
- EFI_SUCCESS := \r
- EFI_INVALID_PARAMETER := \r
- other := \r
+ EFI_SUCCESS :=\r
+ EFI_INVALID_PARAMETER :=\r
+ other :=\r
--*/\r
{\r
EFI_STATUS StatCode;\r
CopyMem (&TmpDestIp, &Private->EfiBc.Mode->StationIp, sizeof (TmpDestIp));\r
}\r
\r
-#if SUPPORT_IPV6\r
- if (Private->EfiBc.Mode->UsingIpv6) {\r
- //\r
- // %%TBD\r
- //\r
- }\r
-#endif\r
-\r
for (;;) {\r
*BufferSizeptr = BufferSize;\r
\r
\r
Parameters:\r
This := Pointer to PxeBc interface.\r
- OpFlags := \r
- DestIpPtr := \r
- DestPortPtr := \r
- SrcIpPtr := \r
- SrcPortPtr := \r
- HeaderSizePtr := \r
- HeaderPtr := \r
- BufferSizeptr := \r
- BufferPtr := \r
+ OpFlags :=\r
+ DestIpPtr :=\r
+ DestPortPtr :=\r
+ SrcIpPtr :=\r
+ SrcPortPtr :=\r
+ HeaderSizePtr :=\r
+ HeaderPtr :=\r
+ BufferSizeptr :=\r
+ BufferPtr :=\r
\r
Returns:\r
- EFI_SUCCESS := \r
- other := \r
+ EFI_SUCCESS :=\r
+ other :=\r
--*/\r
{\r
EFI_STATUS StatCode;\r
/*++\r
\r
-Copyright (c) 2006, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+Copyright (c) 2006 - 2007, Intel Corporation\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
Module Name:\r
PxeDhcp4InitSelect.c\r
- \r
+\r
Abstract:\r
\r
--*/\r
return EFI_NOT_READY;\r
}\r
\r
-#if 0\r
- if (!is_good_discover (&This->Data->Discover)) {\r
- //\r
- // %%TBD - check discover packet fields\r
- //\r
- }\r
-#endif\r
//\r
// Get pointer to our instance data.\r
//\r
return EFI_DEVICE_ERROR;\r
}\r
\r
-#if 0\r
- if (!is_good_discover (&This->Data->Discover)) {\r
- //\r
- // %%TBD - check discover packet fields\r
- //\r
- }\r
-#endif\r
//\r
// Setup useful variables...\r
//\r
/*++\r
\r
-Copyright (c) 2006, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+Copyright (c) 2006 - 2007, Intel Corporation\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
Module Name:\r
support.c\r
- \r
+\r
Abstract:\r
Miscellaneous support routines for PxeDhcp4 protocol.\r
\r
op_flags := UDP receive operation flags\r
\r
Returns:\r
- EFI_INVALID_PARAMETER := \r
+ EFI_INVALID_PARAMETER :=\r
EFI_SUCCESS := Packet received\r
other := Return from PxeBc->UdpRead()\r
--*/\r
SecondsTimeout := Number of seconds until timeout\r
\r
Returns:\r
- EFI_INVALID_PARAMETER := Private == NULL || ServerIp == NULL || \r
+ EFI_INVALID_PARAMETER := Private == NULL || ServerIp == NULL ||\r
tx_pkt == NULL || rx_pkt == NULL || rx_vfy == NULL || Private->PxeBc == NULL\r
EFI_ABORTED := Receive aborted\r
EFI_TIMEOUT := No packets received\r
//\r
// Wait for packet(s)...\r
//\r
-#if 0\r
- if (!client_ip) {\r
- Aprint ("client_ip == NULL ");\r
- } else {\r
- Aprint (\r
- "client_ip == %d.%d.%d.%d ",\r
- client_ip->v4.Addr[0],\r
- client_ip->v4.Addr[1],\r
- client_ip->v4.Addr[2],\r
- client_ip->v4.Addr[3]\r
- );\r
- }\r
-\r
- if (!ServerIp) {\r
- Aprint ("ServerIp == NULL\n");\r
- } else {\r
- Aprint (\r
- "ServerIp == %d.%d.%d.%d\n",\r
- ServerIp->v4.Addr[0],\r
- ServerIp->v4.Addr[1],\r
- ServerIp->v4.Addr[2],\r
- ServerIp->v4.Addr[3]\r
- );\r
- }\r
-#endif\r
\r
done_flag = FALSE;\r
got_packet = FALSE;\r
<SourceFiles>
<Filename>IoLibMmioBuffer.c</Filename>
<Filename SupArchList="IA32">IoLib.c</Filename>
- <Filename SupArchList="IA32">IoLibMsc.c</Filename>
- <Filename SupArchList="IA32">IoLibGcc.c</Filename>
+ <Filename SupArchList="IA32" ToolChainFamily="MSFT">IoLibMsc.c</Filename>
+ <Filename SupArchList="IA32" ToolChainFamily="GCC">IoLibGcc.c</Filename>
<Filename SupArchList="IA32">IoHighLevel.c</Filename>
<Filename SupArchList="X64">IoLib.c</Filename>
- <Filename SupArchList="X64">IoLibMsc.c</Filename>
- <Filename SupArchList="X64">IoLibGcc.c</Filename>
+ <Filename SupArchList="X64" ToolChainFamily="MSFT">IoLibMsc.c</Filename>
+ <Filename SupArchList="X64" ToolChainFamily="GCC">IoLibGcc.c</Filename>
<Filename SupArchList="X64">IoHighLevel.c</Filename>
<Filename SupArchList="IPF">IoLibIpf.c</Filename>
<Filename SupArchList="IPF">IoHighLevel.c</Filename>
We don't advocate putting compiler specifics in libraries or drivers but there\r
is no other way to make this work.\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#ifdef __GNUC__\r
-\r
/**\r
Reads an 8-bit MMIO register.\r
\r
return Value;\r
}\r
\r
-#endif\r
We don't advocate putting compiler specifics in libraries or drivers but there\r
is no other way to make this work.\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
**/\r
\r
\r
-#if _MSC_EXTENSIONS\r
-\r
//\r
// Microsoft Visual Studio 7.1 Function Prototypes for I/O Intrinsics\r
//\r
return *(volatile UINT64*)Address = Value;\r
}\r
\r
-#endif\r
<Filename SupArchList="X64">X64/FlushCacheLine.asm</Filename>
<Filename SupArchList="X64" ToolChainFamily="MSFT">X64/InterlockedIncrement.c</Filename>
<Filename SupArchList="X64" ToolChainFamily="MSFT">X64/InterlockedDecrement.c</Filename>
- <Filename SupArchList="X64">X64/InterlockedCompareExchange32.asm</Filename>
- <Filename SupArchList="X64">X64/InterlockedCompareExchange64.asm</Filename>
+ <Filename SupArchList="X64" ToolChainFamily="MSFT">X64/InterlockedCompareExchange32.asm</Filename>
+ <Filename SupArchList="X64" ToolChainFamily="MSFT">X64/InterlockedCompareExchange64.asm</Filename>
<Filename SupArchList="X64">X64/EnableInterrupts.asm</Filename>
<Filename SupArchList="X64">X64/DisableInterrupts.asm</Filename>
<Filename SupArchList="X64">X64/EnableDisableInterrupts.asm</Filename>
/** @file\r
64-bit arithmetic right shift function for IA-32.\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINT64\r
EFIAPI\r
InternalMathARShiftU64 (\r
}\r
}\r
\r
-#endif\r
/** @file\r
CpuBreakpoint function.\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
//\r
// Microsoft Visual Studio 7.1 Function Prototypes for I/O Intrinsics\r
//\r
__debugbreak ();\r
}\r
\r
-#endif\r
/** @file\r
CpuFlushTlb function.\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
VOID\r
EFIAPI\r
CpuFlushTlb (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmCpuid function.\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINT32\r
EFIAPI\r
AsmCpuid (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmCpuidEx function.\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINT32\r
EFIAPI\r
AsmCpuidEx (\r
mov eax, Index\r
}\r
}\r
-\r
-#endif\r
/** @file\r
CpuPause function.\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
VOID\r
EFIAPI\r
CpuPause (\r
}\r
}\r
\r
-#endif\r
/** @file\r
CpuSleep function.\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
VOID\r
EFIAPI\r
CpuSleep (\r
}\r
}\r
\r
-#endif\r
/** @file\r
DisableInterrupts function.\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
VOID\r
EFIAPI\r
DisableInterrupts (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmDisablePaging32 function.\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
__declspec (naked)\r
VOID\r
EFIAPI\r
}\r
}\r
\r
-#endif\r
/** @file\r
Calculate the quotient of a 64-bit integer by a 32-bit integer\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINT64\r
EFIAPI\r
InternalMathDivU64x32 (\r
}\r
}\r
\r
-#endif\r
/** @file\r
Set error flag for all division functions\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINT64\r
EFIAPI\r
InternalMathDivRemU64x32 (\r
}\r
}\r
\r
-#endif\r
Calculate the quotient of a 64-bit integer by a 64-bit integer and returns\r
both the quotient and the remainderSet error flag for all division functions\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINT64\r
EFIAPI\r
InternalMathDivRemU64x64 (\r
}\r
}\r
\r
-#endif\r
/** @file\r
EnableDisableInterrupts function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
VOID\r
EFIAPI\r
EnableDisableInterrupts (\r
}\r
}\r
\r
-#endif\r
/** @file\r
EnableInterrupts function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
VOID\r
EFIAPI\r
EnableInterrupts (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmEnablePaging32 function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
__declspec (naked)\r
VOID\r
EFIAPI\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmFlushCacheLine function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
VOID *\r
EFIAPI\r
AsmFlushCacheLine (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmFxRestore function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
VOID\r
EFIAPI\r
InternalX86FxRestore (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmFxSave function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
VOID\r
EFIAPI\r
InternalX86FxSave (\r
}\r
}\r
\r
-#endif\r
/** @file\r
InterlockedCompareExchange32 function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINT32\r
EFIAPI\r
InternalSyncCompareExchange32 (\r
}\r
}\r
\r
-#endif\r
/** @file\r
InterlockedCompareExchange64 function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINT64\r
EFIAPI\r
InternalSyncCompareExchange64 (\r
lock cmpxchg8b qword ptr [esi]\r
}\r
}\r
-\r
-#endif\r
/** @file\r
InterlockedDecrement function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINT32\r
EFIAPI\r
InternalSyncDecrement (\r
mov eax, [eax]\r
}\r
}\r
-\r
-#endif\r
/** @file\r
InterLockedIncrement function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINT32\r
EFIAPI\r
InternalSyncIncrement (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmInvd function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
VOID\r
EFIAPI\r
AsmInvd (\r
}\r
}\r
\r
-#endif\r
/** @file\r
64-bit left rotation for Ia32\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINT64\r
EFIAPI\r
InternalMathLRotU64 (\r
}\r
}\r
\r
-#endif\r
/** @file\r
64-bit left shift function for IA-32.\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINT64\r
EFIAPI\r
InternalMathLShiftU64 (\r
}\r
}\r
\r
-#endif\r
/** @file\r
Implementation of _LongJump() on IA-32.\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
__declspec (naked)\r
VOID\r
EFIAPI\r
}\r
}\r
\r
-#endif\r
/** @file\r
Calculate the remainder of a 64-bit integer by a 32-bit integer\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINT32\r
EFIAPI\r
InternalMathModU64x32 (\r
mov eax, edx\r
}\r
}\r
-\r
-#endif\r
/** @file\r
AsmMonitor function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINTN\r
EFIAPI\r
AsmMonitor (\r
}\r
}\r
\r
-#endif\r
/** @file\r
Calculate the product of a 64-bit integer and a 32-bit integer\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINT64\r
EFIAPI\r
InternalMathMultU64x32 (\r
}\r
}\r
\r
-#endif\r
/** @file\r
Calculate the product of a 64-bit integer and another 64-bit integer\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINT64\r
EFIAPI\r
InternalMathMultU64x64 (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmMwait function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINTN\r
EFIAPI\r
AsmMwait (\r
}\r
}\r
\r
-#endif\r
/** @file\r
64-bit right rotation for Ia32\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINT64\r
EFIAPI\r
InternalMathRRotU64 (\r
}\r
}\r
\r
-#endif\r
/** @file\r
64-bit logical right shift function for IA-32\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINT64\r
EFIAPI\r
InternalMathRShiftU64 (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmReadCr0 function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINTN\r
EFIAPI\r
AsmReadCr0 (\r
mov eax, cr0\r
}\r
}\r
-\r
-#endif\r
/** @file\r
AsmReadCr2 function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINTN\r
EFIAPI\r
AsmReadCr2 (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmReadCr3 function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINTN\r
EFIAPI\r
AsmReadCr3 (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmReadCr4 function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINTN\r
EFIAPI\r
AsmReadCr4 (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmReadCs function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINT16\r
EFIAPI\r
AsmReadCs (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmReadDr0 function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINTN\r
EFIAPI\r
AsmReadDr0 (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmReadDr1 function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINTN\r
EFIAPI\r
AsmReadDr1 (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmReadDr2 function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINTN\r
EFIAPI\r
AsmReadDr2 (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmReadDr3 function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINTN\r
EFIAPI\r
AsmReadDr3 (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmReadDr4 function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINTN\r
EFIAPI\r
AsmReadDr4 (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmReadDr5 function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINTN\r
EFIAPI\r
AsmReadDr5 (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmReadDr6 function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINTN\r
EFIAPI\r
AsmReadDr6 (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmReadDr7 function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINTN\r
EFIAPI\r
AsmReadDr7 (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmReadDs function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINT16\r
EFIAPI\r
AsmReadDs (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmReadEflags function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINTN\r
EFIAPI\r
AsmReadEflags (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmReadEs function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINT16\r
EFIAPI\r
AsmReadEs (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmReadFs function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINT16\r
EFIAPI\r
AsmReadFs (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmReadGdtr function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
VOID\r
EFIAPI\r
InternalX86ReadGdtr (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmReadGs function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINT16\r
EFIAPI\r
AsmReadGs (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmReadIdtr function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
VOID\r
EFIAPI\r
InternalX86ReadIdtr (\r
sidt fword ptr [eax]\r
}\r
}\r
-\r
-#endif\r
/** @file\r
AsmReadLdtr function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINT16\r
EFIAPI\r
AsmReadLdtr (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmReadMm0 function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINT64\r
EFIAPI\r
AsmReadMm0 (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmReadMm1 function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINT64\r
EFIAPI\r
AsmReadMm1 (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmReadMm2 function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINT64\r
EFIAPI\r
AsmReadMm2 (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmReadMm3 function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINT64\r
EFIAPI\r
AsmReadMm3 (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmReadMm4 function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINT64\r
EFIAPI\r
AsmReadMm4 (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmReadMm5 function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINT64\r
EFIAPI\r
AsmReadMm5 (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmReadMm6 function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINT64\r
EFIAPI\r
AsmReadMm6 (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmReadMm7 function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINT64\r
EFIAPI\r
AsmReadMm7 (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmReadMsr64 function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINT64\r
EFIAPI\r
AsmReadMsr64 (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmReadPmc function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINT64\r
EFIAPI\r
AsmReadPmc (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmReadSs function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINT16\r
EFIAPI\r
AsmReadSs (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmReadTr function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINT16\r
EFIAPI\r
AsmReadTr (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmReadTsc function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINT64\r
EFIAPI\r
AsmReadTsc (\r
}\r
}\r
\r
-#endif\r
/** @file\r
Implementation of SetJump() on IA-32.\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
VOID\r
EFIAPI\r
InternalAssertJumpBuffer (\r
SetJump (\r
OUT BASE_LIBRARY_JUMP_BUFFER *JumpBuffer\r
)\r
-{ \r
+{\r
_asm {\r
push [esp + 4]\r
call InternalAssertJumpBuffer\r
}\r
}\r
\r
-#endif\r
/** @file\r
Implementation of 64-bit swap bytes\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINT64\r
EFIAPI\r
InternalMathSwapBytes64 (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmWbinvd function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
VOID\r
EFIAPI\r
AsmWbinvd (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmWriteCr0 function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINTN\r
EFIAPI\r
AsmWriteCr0 (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmWriteCr2 function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINTN\r
EFIAPI\r
AsmWriteCr2 (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmWriteCr3 function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINTN\r
EFIAPI\r
AsmWriteCr3 (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmWriteCr4 function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINTN\r
EFIAPI\r
AsmWriteCr4 (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmWriteDr0 function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINTN\r
EFIAPI\r
AsmWriteDr0 (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmWriteDr1 function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINTN\r
EFIAPI\r
AsmWriteDr1 (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmWriteDr2 function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINTN\r
EFIAPI\r
AsmWriteDr2 (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmWriteDr3 function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINTN\r
EFIAPI\r
AsmWriteDr3 (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmWriteDr4 function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINTN\r
EFIAPI\r
AsmWriteDr4 (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmWriteDr5 function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINTN\r
EFIAPI\r
AsmWriteDr5 (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmWriteDr6 function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINTN\r
EFIAPI\r
AsmWriteDr6 (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmWriteDr7 function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINTN\r
EFIAPI\r
AsmWriteDr7 (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmWriteGdtr function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
VOID\r
EFIAPI\r
InternalX86WriteGdtr (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmWriteIdtr function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
VOID\r
EFIAPI\r
InternalX86WriteIdtr (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmWriteLdtr function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
VOID\r
EFIAPI\r
AsmWriteLdtr (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmWriteMm0 function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
VOID\r
EFIAPI\r
AsmWriteMm0 (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmWriteMm1 function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
VOID\r
EFIAPI\r
AsmWriteMm1 (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmWriteMm2 function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
VOID\r
EFIAPI\r
AsmWriteMm2 (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmWriteMm3 function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
VOID\r
EFIAPI\r
AsmWriteMm3 (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmWriteMm4 function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
VOID\r
EFIAPI\r
AsmWriteMm4 (\r
emms\r
}\r
}\r
-\r
-#endif\r
/** @file\r
AsmWriteMm5 function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
VOID\r
EFIAPI\r
AsmWriteMm5 (\r
emms\r
}\r
}\r
-\r
-#endif\r
/** @file\r
AsmWriteMm6 function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
VOID\r
EFIAPI\r
AsmWriteMm6 (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmWriteMm7 function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
VOID\r
EFIAPI\r
AsmWriteMm7 (\r
}\r
}\r
\r
-#endif\r
/** @file\r
AsmWriteMsr64 function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
UINT64\r
EFIAPI\r
AsmWriteMsr64 (\r
}\r
}\r
\r
-#endif\r
Checks ASSERT condition for JumpBuffer.\r
\r
If JumpBuffer is NULL, then ASSERT().\r
- For IPF CPUs, if JumpBuffer is not aligned on a 16-byte boundary, then ASSERT().\r
+ If JumpBuffer is not aligned on a BASE_LIBRARY_JUMP_BUFFER_ALIGNMENT\r
+ boundary, then ASSERT().\r
\r
@param JumpBuffer A pointer to CPU context buffer.\r
\r
{\r
ASSERT (JumpBuffer != NULL);\r
\r
-#ifdef MDE_CPU_IPF\r
- ASSERT (((UINTN)JumpBuffer & 0xf) == 0);\r
-#endif\r
+ ASSERT (((UINTN)JumpBuffer & ((BASE_LIBRARY_JUMP_BUFFER_ALIGNMENT - 1) >> 8)) == 0);\r
}\r
/** @file\r
CpuBreakpoint function.\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
\r
//\r
// Microsoft Visual Studio 7.1 Function Prototypes for I/O Intrinsics\r
__debugbreak ();\r
}\r
\r
-#endif\r
/** @file\r
InterlockedCompareExchange32 function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
//\r
// Microsoft Visual Studio 7.1 Function Prototypes for I/O Intrinsics\r
//\r
return _InterlockedCompareExchange (Value, ExchangeValue, CompareValue);\r
}\r
\r
-\r
-#endif\r
/** @file\r
InterlockedCompareExchange64 function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
//\r
// Microsoft Visual Studio 7.1 Function Prototypes for I/O Intrinsics\r
//\r
return _InterlockedCompareExchange64 (Value, ExchangeValue, CompareValue);\r
}\r
\r
-#endif\r
/** @file\r
InterlockedDecrement function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
//\r
// Microsoft Visual Studio 7.1 Function Prototypes for I/O Intrinsics\r
//\r
return _InterlockedDecrement (Value);\r
}\r
\r
-#endif\r
/** @file\r
InterLockedIncrement function\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
//\r
// Microsoft Visual Studio 7.1 Function Prototypes for I/O Intrinsics\r
//\r
return _InterlockedIncrement (Value);\r
}\r
\r
-#endif\r
/** @file\r
CpuBreakpoint function.\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
//\r
// Microsoft Visual Studio 7.1 Function Prototypes for I/O Intrinsics\r
//\r
return __readmsr (Index);\r
}\r
\r
-#endif\r
/** @file\r
CpuBreakpoint function.\r
\r
- Copyright (c) 2006, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
**/\r
\r
-#if _MSC_EXTENSIONS\r
-\r
//\r
// Microsoft Visual Studio 7.1 Function Prototypes for I/O Intrinsics\r
//\r
return Value;\r
}\r
\r
-#endif\r