TianoCore EDK2 master
Loading...
Searching...
No Matches
ArmSmc.c File Reference

Go to the source code of this file.

Functions

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

SMC helper functions.

Copyright (c) 2021, NUVIA Inc. All rights reserved.

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

Definition in file ArmSmc.c.

Function Documentation

◆ 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 
)

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.