TianoCore EDK2 master
Loading...
Searching...
No Matches
ArmSmcLib.h File Reference

Go to the source code of this file.

Data Structures

struct  ARM_SMC_ARGS
 

Functions

VOID ArmCallSmc (IN OUT ARM_SMC_ARGS *Args)
 
UINTN ArmCallSmc3 (IN UINTN Function, IN OUT UINTN *Arg1 OPTIONAL, IN OUT UINTN *Arg2 OPTIONAL, IN OUT UINTN *Arg3 OPTIONAL)
 
UINTN ArmCallSmc2 (IN UINTN Function, IN OUT UINTN *Arg1 OPTIONAL, IN OUT UINTN *Arg2 OPTIONAL, OUT UINTN *Arg3 OPTIONAL)
 
UINTN ArmCallSmc1 (IN UINTN Function, IN OUT UINTN *Arg1 OPTIONAL, OUT UINTN *Arg2 OPTIONAL, OUT UINTN *Arg3 OPTIONAL)
 
UINTN ArmCallSmc0 (IN UINTN Function, OUT UINTN *Arg1 OPTIONAL, OUT UINTN *Arg2 OPTIONAL, OUT UINTN *Arg3 OPTIONAL)
 

Detailed Description

Copyright (c) 2021, NUVIA Inc. All rights reserved.
Copyright (c) 2012-2014, ARM Limited. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file ArmSmcLib.h.

Function Documentation

◆ ArmCallSmc()

VOID ArmCallSmc ( IN OUT ARM_SMC_ARGS Args)

Trigger an SMC call

SMC calls can take up to 7 arguments and return up to 4 return values. Therefore, the 4 first fields in the ARM_SMC_ARGS structure are used for both input and output values.

Definition at line 14 of file ArmSmcLibNull.c.

◆ ArmCallSmc0()

UINTN ArmCallSmc0 ( IN UINTN  Function,
OUT UINTN *Arg1  OPTIONAL,
OUT UINTN *Arg2  OPTIONAL,
OUT UINTN *Arg3  OPTIONAL 
)

Trigger an SMC call with 0 arguments.

Parameters
FunctionThe SMC function.
Arg1Result.
Arg2Result.
Arg3Result.
Returns
The SMC error code.

Definition at line 121 of file ArmSmc.c.

◆ ArmCallSmc1()

UINTN ArmCallSmc1 ( IN UINTN  Function,
IN OUT UINTN *Arg1  OPTIONAL,
OUT UINTN *Arg2  OPTIONAL,
OUT UINTN *Arg3  OPTIONAL 
)

Trigger an SMC call with 1 argument.

Parameters
FunctionThe SMC function.
Arg1Argument/result.
Arg2Result.
Arg3Result.
Returns
The SMC error code.

Definition at line 100 of file ArmSmc.c.

◆ ArmCallSmc2()

UINTN ArmCallSmc2 ( IN UINTN  Function,
IN OUT UINTN *Arg1  OPTIONAL,
IN OUT UINTN *Arg2  OPTIONAL,
OUT UINTN *Arg3  OPTIONAL 
)

Trigger an SMC call with 2 arguments.

Parameters
FunctionThe SMC function.
Arg1Argument/result.
Arg2Argument/result.
Arg3Result.
Returns
The SMC error code.

Definition at line 79 of file ArmSmc.c.

◆ ArmCallSmc3()

UINTN ArmCallSmc3 ( IN UINTN  Function,
IN OUT UINTN *Arg1  OPTIONAL,
IN OUT UINTN *Arg2  OPTIONAL,
IN OUT UINTN *Arg3  OPTIONAL 
)

Trigger an SMC call with 3 arguments.

Parameters
FunctionThe SMC function.
Arg1Argument/result.
Arg2Argument/result.
Arg3Argument/result.
Returns
The SMC error code.

Triggers an SMC call with 3 arguments.

Parameters
FunctionThe SMC function.
Arg1Argument/result.
Arg2Argument/result.
Arg3Argument/result.
Returns
The SMC error code.

Definition at line 23 of file ArmSmc.c.