10#ifndef EFI_MP_SERVICES_UNIT_TEST_COMMOM_H_
11#define EFI_MP_SERVICES_UNIT_TEST_COMMOM_H_
23#define RUN_PROCEDURE_TIMEOUT_VALUE 100000
34 UINTN NumberOfProcessors;
35 UINTN NumberOfEnabledProcessors;
38 UINTN *DisabledApNumber;
110 IN BOOLEAN SingleThread,
111 IN UINTN TimeoutInMicroSeconds,
112 IN VOID *ProcedureArgument
133 IN UINTN TimeoutInMicroSeconds,
134 IN VOID *ProcedureArgument
151 IN BOOLEAN EnableOldBSP
170 IN UINT32 *HealthFlag
623 IN UNIT_TEST_FRAMEWORK_HANDLE Framework,
EFI_STATUS MpServicesUnitTestWhoAmI(IN MP_SERVICES MpServices, OUT UINTN *ProcessorNumber)
EFI_STATUS AddCommonTestCase(IN UNIT_TEST_FRAMEWORK_HANDLE Framework, IN MP_SERVICE_UT_CONTEXT *Context)
VOID EFIAPI FreeUTContext(IN UNIT_TEST_CONTEXT Context)
UNIT_TEST_STATUS EFIAPI TestStartupThisAP3(IN UNIT_TEST_CONTEXT Context)
UNIT_TEST_STATUS EFIAPI TestStartupAllAPs5(IN UNIT_TEST_CONTEXT Context)
VOID StoreCpuNumbers(IN OUT VOID *Buffer)
UNIT_TEST_STATUS EFIAPI TestGetProcessorInfo2(IN UNIT_TEST_CONTEXT Context)
UNIT_TEST_STATUS EFIAPI TestStartupThisAP4(IN UNIT_TEST_CONTEXT Context)
UNIT_TEST_STATUS EFIAPI TestEnableDisableAP3(IN UNIT_TEST_CONTEXT Context)
EFI_STATUS MpServicesUnitTestGetProcessorInfo(IN MP_SERVICES MpServices, IN UINTN ProcessorNumber, OUT EFI_PROCESSOR_INFORMATION *ProcessorInfoBuffer)
UNIT_TEST_STATUS EFIAPI TestStartupAllAPs3(IN UNIT_TEST_CONTEXT Context)
UNIT_TEST_STATUS EFIAPI TestEnableDisableAP1(IN UNIT_TEST_CONTEXT Context)
UNIT_TEST_STATUS EFIAPI TestStartupThisAP2(IN UNIT_TEST_CONTEXT Context)
EFI_STATUS MpServicesUnitTestStartupAllAPs(IN MP_SERVICES MpServices, IN EFI_AP_PROCEDURE Procedure, IN BOOLEAN SingleThread, IN UINTN TimeoutInMicroSeconds, IN VOID *ProcedureArgument)
VOID EFIAPI CheckUTContext(IN UNIT_TEST_CONTEXT Context)
UNIT_TEST_STATUS EFIAPI InitUTContext(IN UNIT_TEST_CONTEXT Context)
UNIT_TEST_STATUS EFIAPI TestStartupAllAPs1(IN UNIT_TEST_CONTEXT Context)
UNIT_TEST_STATUS EFIAPI TestGetNumberOfProcessors2(IN UNIT_TEST_CONTEXT Context)
UNIT_TEST_STATUS EFIAPI TestGetNumberOfProcessors1(IN UNIT_TEST_CONTEXT Context)
EFI_STATUS MpServicesUnitTestGetNumberOfProcessors(IN MP_SERVICES MpServices, OUT UINTN *NumberOfProcessors, OUT UINTN *NumberOfEnabledProcessors)
UNIT_TEST_STATUS EFIAPI TestStartupAllAPs2(IN UNIT_TEST_CONTEXT Context)
EFI_STATUS MpServicesUnitTestEnableDisableAP(IN MP_SERVICES MpServices, IN UINTN ProcessorNumber, IN BOOLEAN EnableAP, IN UINT32 *HealthFlag)
UNIT_TEST_STATUS EFIAPI TestSwitchBSP4(IN UNIT_TEST_CONTEXT Context)
UNIT_TEST_STATUS EFIAPI TestSwitchBSP3(IN UNIT_TEST_CONTEXT Context)
UNIT_TEST_STATUS EFIAPI TestStartupThisAP1(IN UNIT_TEST_CONTEXT Context)
UNIT_TEST_STATUS EFIAPI TestWhoAmI1(IN UNIT_TEST_CONTEXT Context)
UNIT_TEST_STATUS EFIAPI TestGetProcessorInfo1(IN UNIT_TEST_CONTEXT Context)
VOID EmptyProcedure(IN OUT VOID *Buffer)
EFI_STATUS MpServicesUnitTestSwitchBSP(IN MP_SERVICES MpServices, IN UINTN ProcessorNumber, IN BOOLEAN EnableOldBSP)
UNIT_TEST_STATUS EFIAPI TestEnableDisableAP2(IN UNIT_TEST_CONTEXT Context)
UNIT_TEST_STATUS EFIAPI TestStartupAllAPs4(IN UNIT_TEST_CONTEXT Context)
UNIT_TEST_STATUS EFIAPI TestSwitchBSP1(IN UNIT_TEST_CONTEXT Context)
EFI_STATUS MpServicesUnitTestStartupThisAP(IN MP_SERVICES MpServices, IN EFI_AP_PROCEDURE Procedure, IN UINTN ProcessorNumber, IN UINTN TimeoutInMicroSeconds, IN VOID *ProcedureArgument)
EFI_STATUS MpServicesUnitTestGetMpServices(OUT MP_SERVICES *MpServices)
UNIT_TEST_STATUS EFIAPI TestSwitchBSP2(IN UNIT_TEST_CONTEXT Context)
UNIT_TEST_STATUS EFIAPI TestGetNumberOfProcessors3(IN UNIT_TEST_CONTEXT Context)
VOID(EFIAPI * EFI_AP_PROCEDURE)(IN OUT VOID *Buffer)