39#ifndef _MP_SERVICE_PROTOCOL_H_
40#define _MP_SERVICE_PROTOCOL_H_
45#define EFI_MP_SERVICES_PROTOCOL_GUID \
47 0x3fdda605, 0xa76e, 0x4f46, {0xad, 0x29, 0x12, 0xf4, 0x53, 0x1b, 0x3d, 0x08} \
53#define CPU_V2_EXTENDED_TOPOLOGY BIT24
63#define END_OF_CPU_LIST 0xffffffff
70#define PROCESSOR_AS_BSP_BIT 0x00000001
77#define PROCESSOR_ENABLED_BIT 0x00000002
84#define PROCESSOR_HEALTH_STATUS_BIT 0x00000004
226 OUT UINTN *NumberOfEnabledProcessors
404 IN BOOLEAN SingleThread,
406 IN UINTN TimeoutInMicroSeconds,
504 IN UINTN TimeoutInMicroseconds,
549 IN BOOLEAN EnableOldBSP
672extern EFI_GUID gEfiMpServiceProtocolGuid;
EFI_STATUS(EFIAPI * EFI_MP_SERVICES_WHOAMI)(IN EFI_MP_SERVICES_PROTOCOL *This, OUT UINTN *ProcessorNumber)
EFI_STATUS(EFIAPI * EFI_MP_SERVICES_ENABLEDISABLEAP)(IN EFI_MP_SERVICES_PROTOCOL *This, IN UINTN ProcessorNumber, IN BOOLEAN EnableAP, IN UINT32 *HealthFlag OPTIONAL)
EFI_STATUS(EFIAPI * EFI_MP_SERVICES_STARTUP_THIS_AP)(IN EFI_MP_SERVICES_PROTOCOL *This, IN EFI_AP_PROCEDURE Procedure, IN UINTN ProcessorNumber, IN EFI_EVENT WaitEvent OPTIONAL, IN UINTN TimeoutInMicroseconds, IN VOID *ProcedureArgument OPTIONAL, OUT BOOLEAN *Finished OPTIONAL)
EFI_STATUS(EFIAPI * EFI_MP_SERVICES_STARTUP_ALL_APS)(IN EFI_MP_SERVICES_PROTOCOL *This, IN EFI_AP_PROCEDURE Procedure, IN BOOLEAN SingleThread, IN EFI_EVENT WaitEvent OPTIONAL, IN UINTN TimeoutInMicroSeconds, IN VOID *ProcedureArgument OPTIONAL, OUT UINTN **FailedCpuList OPTIONAL)
EFI_STATUS(EFIAPI * EFI_MP_SERVICES_SWITCH_BSP)(IN EFI_MP_SERVICES_PROTOCOL *This, IN UINTN ProcessorNumber, IN BOOLEAN EnableOldBSP)
EFI_STATUS(EFIAPI * EFI_MP_SERVICES_GET_NUMBER_OF_PROCESSORS)(IN EFI_MP_SERVICES_PROTOCOL *This, OUT UINTN *NumberOfProcessors, OUT UINTN *NumberOfEnabledProcessors)
EFI_STATUS(EFIAPI * EFI_MP_SERVICES_GET_PROCESSOR_INFO)(IN EFI_MP_SERVICES_PROTOCOL *This, IN UINTN ProcessorNumber, OUT EFI_PROCESSOR_INFORMATION *ProcessorInfoBuffer)
VOID(EFIAPI * EFI_AP_PROCEDURE)(IN OUT VOID *Buffer)
EXTENDED_PROCESSOR_INFORMATION ExtendedInformation
EFI_CPU_PHYSICAL_LOCATION Location
EFI_CPU_PHYSICAL_LOCATION2 Location2