Zephyr API Documentation
3.5.0
A Scalable Open Source RTOS
3.5.0
Toggle main menu visibility
Main Page
Related Pages
Modules
Data Structures
Data Structures
Data Structure Index
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Enumerator
Files
File List
Globals
All
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
$
a
b
c
d
f
g
h
i
k
l
m
n
o
p
r
s
t
x
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Macros
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
Loading...
Searching...
No Matches
psci.h
Go to the documentation of this file.
1
/*
2
* Copyright 2020 Carlo Caione <ccaione@baylibre.com>
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
7
#ifndef ZEPHYR_INCLUDE_DRIVERS_PM_CPU_OPS_PSCI_H_
8
#define ZEPHYR_INCLUDE_DRIVERS_PM_CPU_OPS_PSCI_H_
9
10
#include <
zephyr/types.h
>
11
#include <
zephyr/arch/arm64/arm-smccc.h
>
12
#include <stddef.h>
13
#include <
zephyr/device.h
>
14
15
#ifdef __cplusplus
16
extern
"C"
{
17
#endif
18
19
/* PSCI version decoding (independent of PSCI version) */
20
#define PSCI_VERSION_MAJOR_SHIFT 16
21
#define PSCI_VERSION_MINOR_MASK \
22
((1U << PSCI_VERSION_MAJOR_SHIFT) - 1)
23
#define PSCI_VERSION_MAJOR_MASK ~PSCI_VERSION_MINOR_MASK
24
25
#define PSCI_VERSION_MAJOR(ver) \
26
(((ver) & PSCI_VERSION_MAJOR_MASK) >> PSCI_VERSION_MAJOR_SHIFT)
27
#define PSCI_VERSION_MINOR(ver) \
28
((ver) & PSCI_VERSION_MINOR_MASK)
29
30
uint32_t
psci_version
(
void
);
31
32
#ifdef __cplusplus
33
}
34
#endif
35
36
#endif
/* ZEPHYR_INCLUDE_DRIVERS_PM_CPU_OPS_PSCI_H_ */
arm-smccc.h
device.h
types.h
psci_version
uint32_t psci_version(void)
uint32_t
__UINT32_TYPE__ uint32_t
Definition:
stdint.h:90
zephyr
drivers
pm_cpu_ops
psci.h
Generated on Fri Oct 20 2023 10:27:12 for Zephyr API Documentation by
1.9.6