mirror of https://github.com/acidanthera/audk.git
changed the Esal call function ids all over the tree
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3184 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
5724d205a3
commit
b798426d88
|
@ -866,6 +866,11 @@
|
||||||
<GuidValue>403CD195-F233-48EC-8455-B2E52F1D9E02</GuidValue>
|
<GuidValue>403CD195-F233-48EC-8455-B2E52F1D9E02</GuidValue>
|
||||||
<HelpText/>
|
<HelpText/>
|
||||||
</Entry>
|
</Entry>
|
||||||
|
<Entry Name="ExtendedSalErrorEventInformation">
|
||||||
|
<C_Name>gEfiExtendedSalErrorEventInfoProtocolGuid</C_Name>
|
||||||
|
<GuidValue>D0D7913F-1114-4543-B568-C30C737AFF96</GuidValue>
|
||||||
|
<HelpText>error event information-produced by Mca Handler</HelpText>
|
||||||
|
</Entry>
|
||||||
</ProtocolDeclarations>
|
</ProtocolDeclarations>
|
||||||
<PpiDeclarations>
|
<PpiDeclarations>
|
||||||
<Entry Name="PeiInMemory">
|
<Entry Name="PeiInMemory">
|
||||||
|
@ -1279,12 +1284,12 @@
|
||||||
<DatumType>UINT8</DatumType>
|
<DatumType>UINT8</DatumType>
|
||||||
<ValidUsage>FIXED_AT_BUILD</ValidUsage>
|
<ValidUsage>FIXED_AT_BUILD</ValidUsage>
|
||||||
<DefaultValue>0x0</DefaultValue>
|
<DefaultValue>0x0</DefaultValue>
|
||||||
<HelpText>The PCD masks for PCI incompatible devices support.
|
<HelpText>The PCD masks for PCI incompatible devices support.
|
||||||
Acpi_Resource_Update_Support :1;
|
Acpi_Resource_Update_Support :1;
|
||||||
Register_Read_Support :1;
|
Register_Read_Support :1;
|
||||||
Register_Write_Support :1;
|
Register_Write_Support :1;
|
||||||
Register_Update_Support :1;
|
Register_Update_Support :1;
|
||||||
Register_Access_Width_Support :1;
|
Register_Access_Width_Support :1;
|
||||||
Reserved :3;</HelpText>
|
Reserved :3;</HelpText>
|
||||||
</PcdEntry>
|
</PcdEntry>
|
||||||
</PcdDeclarations>
|
</PcdDeclarations>
|
||||||
|
|
|
@ -168,6 +168,11 @@ Abstract:
|
||||||
{ 0x38802700, 0x868a, 0x4b4e, {0x81, 0xd4, 0x4f, 0x1b, 0xdc, 0xcf, 0xb4, 0x6f } }
|
{ 0x38802700, 0x868a, 0x4b4e, {0x81, 0xd4, 0x4f, 0x1b, 0xdc, 0xcf, 0xb4, 0x6f } }
|
||||||
// GUID_STRUCTURE(EFI_EXTENDED_SAL_SST_GUID_LO, EFI_EXTENDED_SAL_SST_GUID_HI)
|
// GUID_STRUCTURE(EFI_EXTENDED_SAL_SST_GUID_LO, EFI_EXTENDED_SAL_SST_GUID_HI)
|
||||||
|
|
||||||
|
#define EFI_ERROR_EVENT_INFORMATION_PROTOCOL_GUID_LO 0x45431114D0D7913F
|
||||||
|
#define EFI_ERROR_EVENT_INFORMATION_PROTOCOL_GUID_HI 0x96FF7A730CC368B5
|
||||||
|
#define EFI_ERROR_EVENT_INFORMATION_PROTOCOL_GUID \
|
||||||
|
{ 0xD0D7913F, 0x1114, 0x4543, {0xB5, 0x68, 0xC3, 0x0C, 0x73, 0x7A, 0xFF, 0x96 } }
|
||||||
|
|
||||||
//
|
//
|
||||||
// Extended Sal Proc Function IDs.
|
// Extended Sal Proc Function IDs.
|
||||||
//
|
//
|
||||||
|
@ -179,21 +184,21 @@ Abstract:
|
||||||
//
|
//
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
IoRead,
|
IoReadFunctionId,
|
||||||
IoWrite,
|
IoWriteFunctionId,
|
||||||
MemRead,
|
MemReadFunctionId,
|
||||||
MemWrite
|
MemWriteFunctionId
|
||||||
} EFI_EXTENDED_SAL_BASE_IO_SERVICES_FUNC_ID;
|
} EFI_EXTENDED_SAL_BASE_IO_SERVICES_FUNC_ID;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
Stall
|
StallFunctionId
|
||||||
} EFI_EXTENDED_SAL_STALL_FUNC_ID;
|
} EFI_EXTENDED_SAL_STALL_FUNC_ID;
|
||||||
|
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
InitializeLockService,
|
InitializeLockServiceFunctionId,
|
||||||
AcquireLockService,
|
AcquireLockServiceFunctionId,
|
||||||
ReleaseLockService,
|
ReleaseLockServiceFunctionId,
|
||||||
MaxLockServiceFunctionId
|
MaxLockServiceFunctionId
|
||||||
} EFI_EXTENDED_SAL_LOCK_SERVICES_FUNC_ID;
|
} EFI_EXTENDED_SAL_LOCK_SERVICES_FUNC_ID;
|
||||||
|
|
||||||
|
@ -202,140 +207,154 @@ typedef enum {
|
||||||
// and move SalRegisterPhysicalAddress to SAL BASE Class
|
// and move SalRegisterPhysicalAddress to SAL BASE Class
|
||||||
//
|
//
|
||||||
typedef enum {
|
typedef enum {
|
||||||
SetVirtualAddress,
|
SetVirtualAddressFunctionId,
|
||||||
IsVirtual,
|
IsVirtualFunctionId,
|
||||||
IsEfiRuntime,
|
IsEfiRuntimeFunctionId,
|
||||||
SalRegisterPhysicalAddress
|
SalRegisterPhysicalAddressFunctionId
|
||||||
} EFI_EXTENDED_SAL_VIRTUAL_SERVICES_FUNC_ID;
|
} EFI_EXTENDED_SAL_VIRTUAL_SERVICES_FUNC_ID;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
GetTime,
|
GetTimeFunctionId,
|
||||||
SetTime,
|
SetTimeFunctionId,
|
||||||
GetWakeupTime,
|
GetWakeupTimeFunctionId,
|
||||||
SetWakeupTime,
|
SetWakeupTimeFunctionId,
|
||||||
GetRtcFreq,
|
GetRtcFreqFunctionId,
|
||||||
InitializeThreshold,
|
InitializeThresholdFunctionId,
|
||||||
BumpThresholdCount,
|
BumpThresholdCountFunctionId,
|
||||||
GetThresholdCount
|
GetThresholdCountFunctionId
|
||||||
} EFI_EXTENDED_SAL_RTC_SERVICES_FUNC_ID;
|
} EFI_EXTENDED_SAL_RTC_SERVICES_FUNC_ID;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
EsalGetVariable,
|
EsalGetVariableFunctionId,
|
||||||
EsalGetNextVariableName,
|
EsalGetNextVariableNameFunctionId,
|
||||||
EsalSetVariable
|
EsalSetVariableFunctionId
|
||||||
#if (EFI_SPECIFICATION_VERSION >= 0x00020000)
|
#if (EFI_SPECIFICATION_VERSION >= 0x00020000)
|
||||||
,
|
,
|
||||||
EsalQueryVariableInfo
|
EsalQueryVariableInfoFunctionId
|
||||||
#endif
|
#endif
|
||||||
} EFI_EXTENDED_SAL_VARIABLE_SERVICES_FUNC_ID;
|
} EFI_EXTENDED_SAL_VARIABLE_SERVICES_FUNC_ID;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
GetNextHighMonotonicCount
|
GetNextHighMonotonicCountFunctionId
|
||||||
} EFI_EXTENDED_SAL_MTC_SERVICES_FUNC_ID;
|
} EFI_EXTENDED_SAL_MTC_SERVICES_FUNC_ID;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
ResetSystem
|
ResetSystemFunctionId
|
||||||
} EFI_EXTENDED_SAL_RESET_SERVICES_FUNC_ID;
|
} EFI_EXTENDED_SAL_RESET_SERVICES_FUNC_ID;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
StatusCode
|
StatusCodeFunctionId
|
||||||
} EFI_EXTENDED_SAL_STATUS_CODE_FUNC_ID;
|
} EFI_EXTENDED_SAL_STATUS_CODE_FUNC_ID;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
ReportStatusCodeService
|
ReportStatusCodeServiceFunctionId
|
||||||
} EFI_EXTENDED_SAL_STATUS_CODE_SERVICES_FUNC_ID;
|
} EFI_EXTENDED_SAL_STATUS_CODE_SERVICES_FUNC_ID;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
Read,
|
ReadFunctionId,
|
||||||
Write,
|
WriteFunctionId,
|
||||||
EraseBlock,
|
EraseBlockFunctionId,
|
||||||
GetVolumeAttributes,
|
GetVolumeAttributesFunctionId,
|
||||||
SetVolumeAttributes,
|
SetVolumeAttributesFunctionId,
|
||||||
GetPhysicalAddress,
|
GetPhysicalAddressFunctionId,
|
||||||
GetBlockSize,
|
GetBlockSizeFunctionId,
|
||||||
EraseCustomBlockRange,
|
EraseCustomBlockRangeFunctionId
|
||||||
} EFI_EXTENDED_SAL_FV_BLOCK_SERVICES_FUNC_ID;
|
} EFI_EXTENDED_SAL_FV_BLOCK_SERVICES_FUNC_ID;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
AddCpuData,
|
AddCpuDataFunctionId,
|
||||||
RemoveCpuData,
|
RemoveCpuDataFunctionId,
|
||||||
ModifyCpuData,
|
ModifyCpuDataFunctionId,
|
||||||
GetCpuDataByID,
|
GetCpuDataByIDFunctionId,
|
||||||
GetCpuDataByIndex,
|
GetCpuDataByIndexFunctionId,
|
||||||
SendIpi,
|
SendIpiFunctionId,
|
||||||
CurrentProcInfo,
|
CurrentProcInfoFunctionId,
|
||||||
NumProcessors,
|
NumProcessorsFunctionId,
|
||||||
SetMinState,
|
SetMinStateFunctionId,
|
||||||
GetMinState,
|
GetMinStateFunctionId,
|
||||||
EsalPhysicalIdInfo
|
EsalPhysicalIdInfoFunctionId
|
||||||
} EFI_EXTENDED_SAL_MP_SERVICES_FUNC_ID;
|
} EFI_EXTENDED_SAL_MP_SERVICES_FUNC_ID;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
PalProc,
|
PalProcFunctionId,
|
||||||
SetNewPalEntry,
|
SetNewPalEntryFunctionId,
|
||||||
GetNewPalEntry,
|
GetNewPalEntryFunctionId,
|
||||||
EsalUpdatePal
|
EsalUpdatePalFunctionId
|
||||||
} EFI_EXTENDED_SAL_PAL_SERVICES_FUNC_ID;
|
} EFI_EXTENDED_SAL_PAL_SERVICES_FUNC_ID;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
SalSetVectors,
|
McaVector,
|
||||||
SalMcRendez,
|
BspInitVector,
|
||||||
SalMcSetParams,
|
BootRendezVector,
|
||||||
EsalGetVectors,
|
ApInitVector
|
||||||
EsalMcGetParams,
|
} ESAL_GET_VECTOR_TYPE;
|
||||||
EsalMcGetMcParams,
|
|
||||||
EsalGetMcCheckinFlags,
|
typedef enum {
|
||||||
EsalGetPlatformBaseFreq,
|
SalSetVectorsFunctionId,
|
||||||
|
SalMcRendezFunctionId,
|
||||||
|
SalMcSetParamsFunctionId,
|
||||||
|
EsalGetVectorsFunctionId,
|
||||||
|
EsalMcGetParamsFunctionId,
|
||||||
|
EsalMcGetMcParamsFunctionId,
|
||||||
|
EsalGetMcCheckinFlagsFunctionId,
|
||||||
|
EsalGetPlatformBaseFreqFunctionId,
|
||||||
EsalRegisterPhysicalAddrFunctionId
|
EsalRegisterPhysicalAddrFunctionId
|
||||||
} EFI_EXTENDED_SAL_BASE_SERVICES_FUNC_ID;
|
} EFI_EXTENDED_SAL_BASE_SERVICES_FUNC_ID;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
McaGetStateInfo,
|
McaGetStateInfoFunctionId,
|
||||||
McaRegisterCpu
|
McaRegisterCpuFunctionId
|
||||||
} EFI_EXTENDED_SAL_MCA_SERVICES_FUNC_ID;
|
} EFI_EXTENDED_SAL_MCA_SERVICES_FUNC_ID;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
SalPciConfigRead,
|
SalPciConfigReadFunctionId,
|
||||||
SalPciConfigWrite
|
SalPciConfigWriteFunctionId
|
||||||
} EFI_EXTENDED_SAL_PCI_SERVICES_FUNC_ID;
|
} EFI_EXTENDED_SAL_PCI_SERVICES_FUNC_ID;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
SalCacheInit,
|
SalCacheInitFunctionId,
|
||||||
SalCacheFlush
|
SalCacheFlushFunctionId
|
||||||
} EFI_EXTENDED_SAL_CACHE_SERVICES_FUNC_ID;
|
} EFI_EXTENDED_SAL_CACHE_SERVICES_FUNC_ID;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
SalGetStateInfo,
|
SalGetStateInfoFunctionId,
|
||||||
SalGetStateInfoSize,
|
SalGetStateInfoSizeFunctionId,
|
||||||
SalClearStateInfo,
|
SalClearStateInfoFunctionId,
|
||||||
EsalGetStateBuffer,
|
EsalGetStateBufferFunctionId,
|
||||||
EsalSaveStateBuffer
|
EsalSaveStateBufferFunctionId
|
||||||
} EFI_EXTENDED_SAL_MCA_LOG_SERVICES_FUNC_ID;
|
} EFI_EXTENDED_SAL_MCA_LOG_SERVICES_FUNC_ID;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
SalSetEventLogData,
|
SalSetEventLogDataFunctionId,
|
||||||
SalGetEventLogData,
|
SalGetEventLogDataFunctionId,
|
||||||
SalEraseEventLogData,
|
SalEraseEventLogDataFunctionId,
|
||||||
SalActivateEventLogData
|
SalActivateEventLogDataFunctionId
|
||||||
} EFI_EXTENDED_SAL_ELOG_SERVICES_FUNC_ID;
|
} EFI_EXTENDED_SAL_ELOG_SERVICES_FUNC_ID;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
EsalGetComControllerInfo,
|
EsalGetComControllerInfoFunctionId,
|
||||||
EsalSendComData,
|
EsalSendComDataFunctionId,
|
||||||
EsalReceiveComData
|
EsalReceiveComDataFunctionId
|
||||||
} EFI_EXTENDED_SAL_SM_COM_LAYER_SERVICES_FUNC_ID;
|
} EFI_EXTENDED_SAL_SM_COM_LAYER_SERVICES_FUNC_ID;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
SalUpdatePal
|
SalUpdatePalFunctionId
|
||||||
} EFI_EXTENDED_SAL_UPDATE_PAL_SERVICES_FUNC_ID;
|
} EFI_EXTENDED_SAL_UPDATE_PAL_SERVICES_FUNC_ID;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
EsalReadSensorInfo,
|
EsalReadSensorInfoFunctionId,
|
||||||
EsalReadSensorStatus,
|
EsalReadSensorStatusFunctionId,
|
||||||
EsalRearmSensor,
|
EsalRearmSensorFunctionId,
|
||||||
EsalReadSensorData
|
EsalReadSensorDataFunctionId
|
||||||
} EFI_EXTENDED_SAL_SENSOR_SERVICES_FUNC_ID;
|
} EFI_EXTENDED_SAL_SENSOR_SERVICES_FUNC_ID;
|
||||||
|
|
||||||
|
typedef enum {
|
||||||
|
EsalGetProcessorErrorEventInfoFunctionId,
|
||||||
|
EsalGetPlatformErrorEventInfoFunctionId,
|
||||||
|
EsalClearProcessorErrorEventInfoFunctionId,
|
||||||
|
EsalClearPlatformErrorEventInfoFunctionId
|
||||||
|
} EFI_EXTENDED_SAL_ERROR_EVENT_INFO_FUNC_ID;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
UINT64 ProtoData;
|
UINT64 ProtoData;
|
||||||
} ESAL_GUID_DUMMY_PROTOCOL;
|
} ESAL_GUID_DUMMY_PROTOCOL;
|
||||||
|
@ -361,6 +380,7 @@ extern EFI_GUID gEfiExtendedSalElogServicesProtocolGuid;
|
||||||
extern EFI_GUID gEfiExtendedSalSensorServicesProtocolGuid;
|
extern EFI_GUID gEfiExtendedSalSensorServicesProtocolGuid;
|
||||||
extern EFI_GUID gEfiExtendedSalSmComLayerServicesProtocolGuid;
|
extern EFI_GUID gEfiExtendedSalSmComLayerServicesProtocolGuid;
|
||||||
extern EFI_GUID gEfiExtendedSalSstGuid;
|
extern EFI_GUID gEfiExtendedSalSstGuid;
|
||||||
|
extern EFI_GUID gEfiExtendedSalErrorEventInfoProtocolGuid;
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -146,7 +146,7 @@ EsalGetNewPalEntry (
|
||||||
**/
|
**/
|
||||||
SAL_RETURN_REGS
|
SAL_RETURN_REGS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
EsalGetStateBufferLeon (
|
EsalGetStateBuffer (
|
||||||
IN UINT64 McaType,
|
IN UINT64 McaType,
|
||||||
OUT UINT8 **McaBuffer,
|
OUT UINT8 **McaBuffer,
|
||||||
OUT UINTN *BufferSize
|
OUT UINTN *BufferSize
|
||||||
|
@ -164,7 +164,7 @@ EsalGetStateBufferLeon (
|
||||||
**/
|
**/
|
||||||
SAL_RETURN_REGS
|
SAL_RETURN_REGS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
EsalSaveStateBufferLeon (
|
EsalSaveStateBuffer (
|
||||||
IN UINT64 McaType
|
IN UINT64 McaType
|
||||||
)
|
)
|
||||||
;
|
;
|
||||||
|
@ -181,7 +181,7 @@ EsalSaveStateBufferLeon (
|
||||||
**/
|
**/
|
||||||
SAL_RETURN_REGS
|
SAL_RETURN_REGS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
EsalGetVectorsLeon (
|
EsalGetVectors (
|
||||||
IN UINT64 VectorType
|
IN UINT64 VectorType
|
||||||
)
|
)
|
||||||
;
|
;
|
||||||
|
@ -200,7 +200,7 @@ EsalGetVectorsLeon (
|
||||||
**/
|
**/
|
||||||
SAL_RETURN_REGS
|
SAL_RETURN_REGS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
EsalMcGetParamsLeon (
|
EsalMcGetParams (
|
||||||
IN UINT64 ParamInfoType
|
IN UINT64 ParamInfoType
|
||||||
)
|
)
|
||||||
;
|
;
|
||||||
|
@ -214,7 +214,7 @@ EsalMcGetParamsLeon (
|
||||||
**/
|
**/
|
||||||
SAL_RETURN_REGS
|
SAL_RETURN_REGS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
EsalMcGetMcParamsLeon (
|
EsalMcGetMcParams (
|
||||||
VOID
|
VOID
|
||||||
)
|
)
|
||||||
;
|
;
|
||||||
|
@ -230,7 +230,7 @@ EsalMcGetMcParamsLeon (
|
||||||
**/
|
**/
|
||||||
SAL_RETURN_REGS
|
SAL_RETURN_REGS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
EsalGetMcCheckinFlagsLeon (
|
EsalGetMcCheckinFlags (
|
||||||
IN UINT64 CpuIndex
|
IN UINT64 CpuIndex
|
||||||
)
|
)
|
||||||
;
|
;
|
||||||
|
|
|
@ -87,7 +87,7 @@ Returns:
|
||||||
*((UINT64 *) &Guid) = EFI_EXTENDED_SAL_FV_BLOCK_SERVICES_PROTOCOL_GUID_LO;
|
*((UINT64 *) &Guid) = EFI_EXTENDED_SAL_FV_BLOCK_SERVICES_PROTOCOL_GUID_LO;
|
||||||
*(((UINT64 *)&Guid) + 1) = EFI_EXTENDED_SAL_FV_BLOCK_SERVICES_PROTOCOL_GUID_HI;
|
*(((UINT64 *)&Guid) + 1) = EFI_EXTENDED_SAL_FV_BLOCK_SERVICES_PROTOCOL_GUID_HI;
|
||||||
|
|
||||||
return EsalCall (&Guid, Read, Instance, Lba, Offset, (UINT64) NumBytes, (UINT64) Buffer, 0, 0).Status;
|
return EsalCall (&Guid, ReadFunctionId, Instance, Lba, Offset, (UINT64) NumBytes, (UINT64) Buffer, 0, 0).Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
@ -123,7 +123,7 @@ Returns:
|
||||||
*((UINT64 *) &Guid) = EFI_EXTENDED_SAL_FV_BLOCK_SERVICES_PROTOCOL_GUID_LO;
|
*((UINT64 *) &Guid) = EFI_EXTENDED_SAL_FV_BLOCK_SERVICES_PROTOCOL_GUID_LO;
|
||||||
*(((UINT64 *)&Guid) + 1) = EFI_EXTENDED_SAL_FV_BLOCK_SERVICES_PROTOCOL_GUID_HI;
|
*(((UINT64 *)&Guid) + 1) = EFI_EXTENDED_SAL_FV_BLOCK_SERVICES_PROTOCOL_GUID_HI;
|
||||||
|
|
||||||
return EsalCall (&Guid, Write, Instance, Lba, Offset, (UINT64) NumBytes, (UINT64) Buffer, 0, 0).Status;
|
return EsalCall (&Guid, WriteFunctionId, Instance, Lba, Offset, (UINT64) NumBytes, (UINT64) Buffer, 0, 0).Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
@ -150,7 +150,7 @@ Returns:
|
||||||
*((UINT64 *) &Guid) = EFI_EXTENDED_SAL_FV_BLOCK_SERVICES_PROTOCOL_GUID_LO;
|
*((UINT64 *) &Guid) = EFI_EXTENDED_SAL_FV_BLOCK_SERVICES_PROTOCOL_GUID_LO;
|
||||||
*(((UINT64 *)&Guid) + 1) = EFI_EXTENDED_SAL_FV_BLOCK_SERVICES_PROTOCOL_GUID_HI;
|
*(((UINT64 *)&Guid) + 1) = EFI_EXTENDED_SAL_FV_BLOCK_SERVICES_PROTOCOL_GUID_HI;
|
||||||
|
|
||||||
return EsalCall (&Guid, EraseBlock, Instance, Lba, 0, 0, 0, 0, 0).Status;
|
return EsalCall (&Guid, EraseBlockFunctionId, Instance, Lba, 0, 0, 0, 0, 0).Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
@ -179,7 +179,7 @@ Returns:
|
||||||
*((UINT64 *) &Guid) = EFI_EXTENDED_SAL_FV_BLOCK_SERVICES_PROTOCOL_GUID_LO;
|
*((UINT64 *) &Guid) = EFI_EXTENDED_SAL_FV_BLOCK_SERVICES_PROTOCOL_GUID_LO;
|
||||||
*(((UINT64 *)&Guid) + 1) = EFI_EXTENDED_SAL_FV_BLOCK_SERVICES_PROTOCOL_GUID_HI;
|
*(((UINT64 *)&Guid) + 1) = EFI_EXTENDED_SAL_FV_BLOCK_SERVICES_PROTOCOL_GUID_HI;
|
||||||
|
|
||||||
return EsalCall (&Guid, SetVolumeAttributes, Instance, (UINT64) Attributes, 0, 0, 0, 0, 0).Status;
|
return EsalCall (&Guid, SetVolumeAttributesFunctionId, Instance, (UINT64) Attributes, 0, 0, 0, 0, 0).Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
@ -211,7 +211,7 @@ Returns:
|
||||||
*((UINT64 *) &Guid) = EFI_EXTENDED_SAL_FV_BLOCK_SERVICES_PROTOCOL_GUID_LO;
|
*((UINT64 *) &Guid) = EFI_EXTENDED_SAL_FV_BLOCK_SERVICES_PROTOCOL_GUID_LO;
|
||||||
*(((UINT64 *)&Guid) + 1) = EFI_EXTENDED_SAL_FV_BLOCK_SERVICES_PROTOCOL_GUID_HI;
|
*(((UINT64 *)&Guid) + 1) = EFI_EXTENDED_SAL_FV_BLOCK_SERVICES_PROTOCOL_GUID_HI;
|
||||||
|
|
||||||
return EsalCall (&Guid, SetVolumeAttributes, Instance, (UINT64) Attributes, 0, 0, 0, 0, 0).Status;
|
return EsalCall (&Guid, SetVolumeAttributesFunctionId, Instance, (UINT64) Attributes, 0, 0, 0, 0, 0).Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
@ -241,7 +241,7 @@ Returns:
|
||||||
*((UINT64 *) &Guid) = EFI_EXTENDED_SAL_FV_BLOCK_SERVICES_PROTOCOL_GUID_LO;
|
*((UINT64 *) &Guid) = EFI_EXTENDED_SAL_FV_BLOCK_SERVICES_PROTOCOL_GUID_LO;
|
||||||
*(((UINT64 *)&Guid) + 1) = EFI_EXTENDED_SAL_FV_BLOCK_SERVICES_PROTOCOL_GUID_HI;
|
*(((UINT64 *)&Guid) + 1) = EFI_EXTENDED_SAL_FV_BLOCK_SERVICES_PROTOCOL_GUID_HI;
|
||||||
|
|
||||||
return EsalCall (&Guid, GetPhysicalAddress, Instance, (UINT64) BaseAddress, 0, 0, 0, 0, 0).Status;
|
return EsalCall (&Guid, GetPhysicalAddressFunctionId, Instance, (UINT64) BaseAddress, 0, 0, 0, 0, 0).Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
@ -280,7 +280,7 @@ Returns:
|
||||||
|
|
||||||
return EsalCall (
|
return EsalCall (
|
||||||
&Guid,
|
&Guid,
|
||||||
GetBlockSize,
|
GetBlockSizeFunctionId,
|
||||||
Instance,
|
Instance,
|
||||||
Lba,
|
Lba,
|
||||||
(UINT64) BlockSize,
|
(UINT64) BlockSize,
|
||||||
|
@ -324,7 +324,7 @@ Returns:
|
||||||
|
|
||||||
return EsalCall (
|
return EsalCall (
|
||||||
&Guid,
|
&Guid,
|
||||||
EraseCustomBlockRange,
|
EraseCustomBlockRangeFunctionId,
|
||||||
Instance,
|
Instance,
|
||||||
StartLba,
|
StartLba,
|
||||||
OffsetStartLba,
|
OffsetStartLba,
|
||||||
|
|
|
@ -202,7 +202,7 @@ Returns:
|
||||||
*((UINT64 *) &Guid) = EFI_EXTENDED_SAL_VIRTUAL_SERVICES_PROTOCOL_GUID_LO;
|
*((UINT64 *) &Guid) = EFI_EXTENDED_SAL_VIRTUAL_SERVICES_PROTOCOL_GUID_LO;
|
||||||
*(((UINT64 *)&Guid) + 1) = EFI_EXTENDED_SAL_VIRTUAL_SERVICES_PROTOCOL_GUID_HI;
|
*(((UINT64 *)&Guid) + 1) = EFI_EXTENDED_SAL_VIRTUAL_SERVICES_PROTOCOL_GUID_HI;
|
||||||
|
|
||||||
ReturnReg = EsalCall (&Guid, IsEfiRuntime, 0, 0, 0, 0, 0, 0, 0);
|
ReturnReg = EsalCall (&Guid, IsEfiRuntimeFunctionId, 0, 0, 0, 0, 0, 0, 0);
|
||||||
|
|
||||||
return (BOOLEAN) (ReturnReg.r9 == 1);
|
return (BOOLEAN) (ReturnReg.r9 == 1);
|
||||||
}
|
}
|
||||||
|
@ -231,7 +231,7 @@ Returns:
|
||||||
*((UINT64 *) &Guid) = EFI_EXTENDED_SAL_VIRTUAL_SERVICES_PROTOCOL_GUID_LO;
|
*((UINT64 *) &Guid) = EFI_EXTENDED_SAL_VIRTUAL_SERVICES_PROTOCOL_GUID_LO;
|
||||||
*(((UINT64 *)&Guid) + 1) = EFI_EXTENDED_SAL_VIRTUAL_SERVICES_PROTOCOL_GUID_HI;
|
*(((UINT64 *)&Guid) + 1) = EFI_EXTENDED_SAL_VIRTUAL_SERVICES_PROTOCOL_GUID_HI;
|
||||||
|
|
||||||
ReturnReg = EsalCall (&Guid, IsVirtual, 0, 0, 0, 0, 0, 0, 0);
|
ReturnReg = EsalCall (&Guid, IsVirtualFunctionId, 0, 0, 0, 0, 0, 0, 0);
|
||||||
|
|
||||||
return (BOOLEAN) (ReturnReg.r9 == 1);
|
return (BOOLEAN) (ReturnReg.r9 == 1);
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,7 +52,7 @@ Returns:
|
||||||
|
|
||||||
EsalCall (
|
EsalCall (
|
||||||
&Guid,
|
&Guid,
|
||||||
ResetSystem,
|
ResetSystemFunctionId,
|
||||||
(UINT64) ResetType,
|
(UINT64) ResetType,
|
||||||
(UINT64) ResetStatus,
|
(UINT64) ResetStatus,
|
||||||
(UINT64) DataSize,
|
(UINT64) DataSize,
|
||||||
|
@ -99,7 +99,7 @@ Returns:
|
||||||
*((UINT64 *) &Guid) = EFI_EXTENDED_SAL_RTC_SERVICES_PROTOCOL_GUID_LO;
|
*((UINT64 *) &Guid) = EFI_EXTENDED_SAL_RTC_SERVICES_PROTOCOL_GUID_LO;
|
||||||
*(((UINT64 *)&Guid) + 1) = EFI_EXTENDED_SAL_RTC_SERVICES_PROTOCOL_GUID_HI;
|
*(((UINT64 *)&Guid) + 1) = EFI_EXTENDED_SAL_RTC_SERVICES_PROTOCOL_GUID_HI;
|
||||||
|
|
||||||
ReturnReg = EsalCall (&Guid, GetTime, (UINT64) Time, (UINT64) Capabilities, 0, 0, 0, 0, 0);
|
ReturnReg = EsalCall (&Guid, GetTimeFunctionId, (UINT64) Time, (UINT64) Capabilities, 0, 0, 0, 0, 0);
|
||||||
return ReturnReg.Status;
|
return ReturnReg.Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -130,7 +130,7 @@ Returns:
|
||||||
*((UINT64 *) &Guid) = EFI_EXTENDED_SAL_RTC_SERVICES_PROTOCOL_GUID_LO;
|
*((UINT64 *) &Guid) = EFI_EXTENDED_SAL_RTC_SERVICES_PROTOCOL_GUID_LO;
|
||||||
*(((UINT64 *)&Guid) + 1) = EFI_EXTENDED_SAL_RTC_SERVICES_PROTOCOL_GUID_HI;
|
*(((UINT64 *)&Guid) + 1) = EFI_EXTENDED_SAL_RTC_SERVICES_PROTOCOL_GUID_HI;
|
||||||
|
|
||||||
ReturnReg = EsalCall (&Guid, SetTime, (UINT64) Time, 0, 0, 0, 0, 0, 0);
|
ReturnReg = EsalCall (&Guid, SetTimeFunctionId, (UINT64) Time, 0, 0, 0, 0, 0, 0);
|
||||||
return ReturnReg.Status;
|
return ReturnReg.Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -165,7 +165,7 @@ Returns:
|
||||||
*((UINT64 *) &Guid) = EFI_EXTENDED_SAL_RTC_SERVICES_PROTOCOL_GUID_LO;
|
*((UINT64 *) &Guid) = EFI_EXTENDED_SAL_RTC_SERVICES_PROTOCOL_GUID_LO;
|
||||||
*(((UINT64 *)&Guid) + 1) = EFI_EXTENDED_SAL_RTC_SERVICES_PROTOCOL_GUID_HI;
|
*(((UINT64 *)&Guid) + 1) = EFI_EXTENDED_SAL_RTC_SERVICES_PROTOCOL_GUID_HI;
|
||||||
|
|
||||||
ReturnReg = EsalCall (&Guid, GetWakeupTime, (UINT64) Enabled, (UINT64) Pending, (UINT64) Time, 0, 0, 0, 0);
|
ReturnReg = EsalCall (&Guid, GetWakeupTimeFunctionId, (UINT64) Enabled, (UINT64) Pending, (UINT64) Time, 0, 0, 0, 0);
|
||||||
return ReturnReg.Status;
|
return ReturnReg.Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -199,7 +199,7 @@ Returns:
|
||||||
*((UINT64 *) &Guid) = EFI_EXTENDED_SAL_RTC_SERVICES_PROTOCOL_GUID_LO;
|
*((UINT64 *) &Guid) = EFI_EXTENDED_SAL_RTC_SERVICES_PROTOCOL_GUID_LO;
|
||||||
*(((UINT64 *)&Guid) + 1) = EFI_EXTENDED_SAL_RTC_SERVICES_PROTOCOL_GUID_HI;
|
*(((UINT64 *)&Guid) + 1) = EFI_EXTENDED_SAL_RTC_SERVICES_PROTOCOL_GUID_HI;
|
||||||
|
|
||||||
ReturnReg = EsalCall (&Guid, SetWakeupTime, (UINT64) Enable, (UINT64) Time, 0, 0, 0, 0, 0);
|
ReturnReg = EsalCall (&Guid, SetWakeupTimeFunctionId, (UINT64) Enable, (UINT64) Time, 0, 0, 0, 0, 0);
|
||||||
return ReturnReg.Status;
|
return ReturnReg.Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -243,7 +243,7 @@ Returns:
|
||||||
|
|
||||||
ReturnReg = EsalCall (
|
ReturnReg = EsalCall (
|
||||||
&Guid,
|
&Guid,
|
||||||
EsalGetVariable,
|
EsalGetVariableFunctionId,
|
||||||
(UINT64) VariableName,
|
(UINT64) VariableName,
|
||||||
(UINT64) VendorGuid,
|
(UINT64) VendorGuid,
|
||||||
(UINT64) Attributes,
|
(UINT64) Attributes,
|
||||||
|
@ -293,7 +293,7 @@ Returns:
|
||||||
|
|
||||||
ReturnReg = EsalCall (
|
ReturnReg = EsalCall (
|
||||||
&Guid,
|
&Guid,
|
||||||
EsalGetNextVariableName,
|
EsalGetNextVariableNameFunctionId,
|
||||||
(UINT64) VariableNameSize,
|
(UINT64) VariableNameSize,
|
||||||
(UINT64) VariableName,
|
(UINT64) VariableName,
|
||||||
(UINT64) VendorGuid,
|
(UINT64) VendorGuid,
|
||||||
|
@ -343,7 +343,7 @@ Returns:
|
||||||
|
|
||||||
ReturnReg = EsalCall (
|
ReturnReg = EsalCall (
|
||||||
&Guid,
|
&Guid,
|
||||||
EsalSetVariable,
|
EsalSetVariableFunctionId,
|
||||||
(UINT64) VariableName,
|
(UINT64) VariableName,
|
||||||
(UINT64) VendorGuid,
|
(UINT64) VendorGuid,
|
||||||
(UINT64) Attributes,
|
(UINT64) Attributes,
|
||||||
|
@ -382,7 +382,7 @@ Returns:
|
||||||
*((UINT64 *) &Guid) = EFI_EXTENDED_SAL_MTC_SERVICES_PROTOCOL_GUID_LO;
|
*((UINT64 *) &Guid) = EFI_EXTENDED_SAL_MTC_SERVICES_PROTOCOL_GUID_LO;
|
||||||
*(((UINT64 *)&Guid) + 1) = EFI_EXTENDED_SAL_MTC_SERVICES_PROTOCOL_GUID_HI;
|
*(((UINT64 *)&Guid) + 1) = EFI_EXTENDED_SAL_MTC_SERVICES_PROTOCOL_GUID_HI;
|
||||||
|
|
||||||
ReturnReg = EsalCall (&Guid, GetNextHighMonotonicCount, (UINT64) HighCount, 0, 0, 0, 0, 0, 0);
|
ReturnReg = EsalCall (&Guid, GetNextHighMonotonicCountFunctionId, (UINT64) HighCount, 0, 0, 0, 0, 0, 0);
|
||||||
return (EFI_STATUS) ReturnReg.Status;
|
return (EFI_STATUS) ReturnReg.Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -501,7 +501,7 @@ EfiSetVirtualAddressMap (
|
||||||
|
|
||||||
ReturnReg = EsalCall (
|
ReturnReg = EsalCall (
|
||||||
&Guid,
|
&Guid,
|
||||||
SetVirtualAddress,
|
SetVirtualAddressFunctionId,
|
||||||
(UINT64) MemoryMapSize,
|
(UINT64) MemoryMapSize,
|
||||||
(UINT64) DescriptorSize,
|
(UINT64) DescriptorSize,
|
||||||
(UINT64) DescriptorVersion,
|
(UINT64) DescriptorVersion,
|
||||||
|
|
|
@ -53,7 +53,7 @@ Returns:
|
||||||
SAL_RETURN_REGS ReturnVal;
|
SAL_RETURN_REGS ReturnVal;
|
||||||
|
|
||||||
switch (FunctionId) {
|
switch (FunctionId) {
|
||||||
case EsalGetVariable:
|
case EsalGetVariableFunctionId:
|
||||||
ReturnVal.Status = GetVariable (
|
ReturnVal.Status = GetVariable (
|
||||||
(CHAR16 *) Arg2,
|
(CHAR16 *) Arg2,
|
||||||
(EFI_GUID *) Arg3,
|
(EFI_GUID *) Arg3,
|
||||||
|
@ -65,7 +65,7 @@ Returns:
|
||||||
);
|
);
|
||||||
return ReturnVal;
|
return ReturnVal;
|
||||||
|
|
||||||
case EsalGetNextVariableName:
|
case EsalGetNextVariableNameFunctionId:
|
||||||
ReturnVal.Status = GetNextVariableName (
|
ReturnVal.Status = GetNextVariableName (
|
||||||
(UINTN *) Arg2,
|
(UINTN *) Arg2,
|
||||||
(CHAR16 *) Arg3,
|
(CHAR16 *) Arg3,
|
||||||
|
@ -75,7 +75,7 @@ Returns:
|
||||||
);
|
);
|
||||||
return ReturnVal;
|
return ReturnVal;
|
||||||
|
|
||||||
case EsalSetVariable:
|
case EsalSetVariableFunctionId:
|
||||||
ReturnVal.Status = SetVariable (
|
ReturnVal.Status = SetVariable (
|
||||||
(CHAR16 *) Arg2,
|
(CHAR16 *) Arg2,
|
||||||
(EFI_GUID *) Arg3,
|
(EFI_GUID *) Arg3,
|
||||||
|
@ -89,7 +89,7 @@ Returns:
|
||||||
);
|
);
|
||||||
return ReturnVal;
|
return ReturnVal;
|
||||||
|
|
||||||
case EsalQueryVariableInfo:
|
case EsalQueryVariableInfoFunctionId:
|
||||||
ReturnVal.Status = QueryVariableInfo (
|
ReturnVal.Status = QueryVariableInfo (
|
||||||
(UINT32) Arg2,
|
(UINT32) Arg2,
|
||||||
(UINT64 *) Arg3,
|
(UINT64 *) Arg3,
|
||||||
|
@ -166,13 +166,13 @@ Returns:
|
||||||
&gEfiExtendedSalVariableServicesProtocolGuid,
|
&gEfiExtendedSalVariableServicesProtocolGuid,
|
||||||
mVariableModuleGlobal,
|
mVariableModuleGlobal,
|
||||||
EsalVariableCommonEntry,
|
EsalVariableCommonEntry,
|
||||||
EsalGetVariable,
|
EsalGetVariableFunctionId,
|
||||||
EsalVariableCommonEntry,
|
EsalVariableCommonEntry,
|
||||||
EsalGetNextVariableName,
|
EsalGetNextVariableNameFunctionId,
|
||||||
EsalVariableCommonEntry,
|
EsalVariableCommonEntry,
|
||||||
EsalSetVariable,
|
EsalSetVariableFunctionId,
|
||||||
EsalVariableCommonEntry,
|
EsalVariableCommonEntry,
|
||||||
EsalQueryVariableInfo,
|
EsalQueryVariableInfoFunctionId,
|
||||||
NULL
|
NULL
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -206,7 +206,7 @@ ReportEsalServiceEntry (
|
||||||
|
|
||||||
switch (FunctionId) {
|
switch (FunctionId) {
|
||||||
|
|
||||||
case ReportStatusCodeService:
|
case ReportStatusCodeServiceFunctionId:
|
||||||
|
|
||||||
DxeStatusCode = (DXE_STATUS_CODE_CONTROLLER *) Global;
|
DxeStatusCode = (DXE_STATUS_CODE_CONTROLLER *) Global;
|
||||||
|
|
||||||
|
@ -315,7 +315,7 @@ DxeStatusCodeDriverEntry (
|
||||||
&gEfiExtendedSalStatusCodeServicesProtocolGuid,
|
&gEfiExtendedSalStatusCodeServicesProtocolGuid,
|
||||||
&gDxeStatusCode,
|
&gDxeStatusCode,
|
||||||
ReportEsalServiceEntry,
|
ReportEsalServiceEntry,
|
||||||
StatusCode,
|
StatusCodeFunctionId,
|
||||||
NULL
|
NULL
|
||||||
);
|
);
|
||||||
ASSERT_EFI_ERROR (Status);
|
ASSERT_EFI_ERROR (Status);
|
||||||
|
|
|
@ -53,7 +53,7 @@ Returns:
|
||||||
SAL_RETURN_REGS ReturnVal;
|
SAL_RETURN_REGS ReturnVal;
|
||||||
|
|
||||||
switch (FunctionId) {
|
switch (FunctionId) {
|
||||||
case EsalGetVariable:
|
case EsalGetVariableFunctionId:
|
||||||
ReturnVal.Status = GetVariable (
|
ReturnVal.Status = GetVariable (
|
||||||
(CHAR16 *) Arg2,
|
(CHAR16 *) Arg2,
|
||||||
(EFI_GUID *) Arg3,
|
(EFI_GUID *) Arg3,
|
||||||
|
@ -65,7 +65,7 @@ Returns:
|
||||||
);
|
);
|
||||||
return ReturnVal;
|
return ReturnVal;
|
||||||
|
|
||||||
case EsalGetNextVariableName:
|
case EsalGetNextVariableNameFunctionId:
|
||||||
ReturnVal.Status = GetNextVariableName (
|
ReturnVal.Status = GetNextVariableName (
|
||||||
(UINTN *) Arg2,
|
(UINTN *) Arg2,
|
||||||
(CHAR16 *) Arg3,
|
(CHAR16 *) Arg3,
|
||||||
|
@ -75,7 +75,7 @@ Returns:
|
||||||
);
|
);
|
||||||
return ReturnVal;
|
return ReturnVal;
|
||||||
|
|
||||||
case EsalSetVariable:
|
case EsalSetVariableFunctionId:
|
||||||
ReturnVal.Status = SetVariable (
|
ReturnVal.Status = SetVariable (
|
||||||
(CHAR16 *) Arg2,
|
(CHAR16 *) Arg2,
|
||||||
(EFI_GUID *) Arg3,
|
(EFI_GUID *) Arg3,
|
||||||
|
@ -89,7 +89,7 @@ Returns:
|
||||||
);
|
);
|
||||||
return ReturnVal;
|
return ReturnVal;
|
||||||
|
|
||||||
case EsalQueryVariableInfo:
|
case EsalQueryVariableInfoFunctionId:
|
||||||
ReturnVal.Status = QueryVariableInfo (
|
ReturnVal.Status = QueryVariableInfo (
|
||||||
(UINT32) Arg2,
|
(UINT32) Arg2,
|
||||||
(UINT64 *) Arg3,
|
(UINT64 *) Arg3,
|
||||||
|
@ -166,13 +166,13 @@ Returns:
|
||||||
&gEfiExtendedSalVariableServicesProtocolGuid,
|
&gEfiExtendedSalVariableServicesProtocolGuid,
|
||||||
mVariableModuleGlobal,
|
mVariableModuleGlobal,
|
||||||
EsalVariableCommonEntry,
|
EsalVariableCommonEntry,
|
||||||
EsalGetVariable,
|
EsalGetVariableFunctionId,
|
||||||
EsalVariableCommonEntry,
|
EsalVariableCommonEntry,
|
||||||
EsalGetNextVariableName,
|
EsalGetNextVariableNameFunctionId,
|
||||||
EsalVariableCommonEntry,
|
EsalVariableCommonEntry,
|
||||||
EsalSetVariable,
|
EsalSetVariableFunctionId,
|
||||||
EsalVariableCommonEntry,
|
EsalVariableCommonEntry,
|
||||||
EsalQueryVariableInfo,
|
EsalQueryVariableInfoFunctionId,
|
||||||
NULL
|
NULL
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue