Zephyr API Documentation
4.1.99
A Scalable Open Source RTOS
4.1.99
Toggle main menu visibility
Main Page
Related Pages
Topics
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
u
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
▼
Zephyr API Documentation
►
Introduction
Deprecated List
►
Topics
►
Data Structures
▼
Files
▼
File List
►
doc
►
kernel
►
lib
►
subsys
▼
zephyr
►
acpi
►
app_memory
►
arch
►
audio
►
bluetooth
►
canbus
►
console
►
crypto
►
data
►
debug
►
devicetree
►
dfu
►
display
►
drivers
►
dsp
▼
dt-bindings
►
acpi
►
adc
►
battery
►
clock
►
comparator
►
dac
►
dai
►
display
►
dma
▼
espi
►
npcx_espi.h
►
ethernet
►
flash_controller
►
gnss
►
gpio
►
i2c
►
input
►
inputmux
►
interrupt-controller
►
ipc_service
►
led
►
lora
►
lvgl
►
memory-attr
►
memory-controller
►
mfd
►
mipi_dbi
►
mipi_dsi
►
misc
►
pcie
►
pinctrl
►
power
►
pwm
►
qspi
►
rdc
►
regulator
►
reserved-memory
►
reset
►
sensor
►
spi
►
timer
►
usb
►
usb-c
►
video
dt-util.h
►
fs
►
input
►
internal
►
ipc
►
kernel
►
linker
►
llext
►
logging
►
lorawan
►
math
►
mem_mgmt
►
mgmt
►
misc
►
modbus
►
modem
►
multi_heap
►
net
►
platform
►
pm
►
pmci
►
portability
►
posix
►
psa
►
random
►
retention
►
rtio
►
sd
►
sensing
►
settings
►
shell
►
sip_svc
►
stats
►
storage
►
sys
►
task_wdt
►
timing
►
toolchain
►
tracing
►
usb
►
usb_c
►
xen
►
zbus
►
zvfs
►
bindesc.h
►
cache.h
►
device.h
►
devicetree.h
►
fatal.h
►
fatal_types.h
►
init.h
►
irq.h
►
irq_multilevel.h
►
irq_nextlevel.h
►
irq_offload.h
►
kernel.h
kernel_includes.h
►
kernel_structs.h
►
kernel_version.h
►
net_buf.h
►
shared_irq.h
►
smf.h
►
spinlock.h
►
sw_isr_table.h
►
sys_clock.h
►
syscall.h
►
toolchain.h
types.h
►
Globals
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
Loading...
Searching...
No Matches
npcx_espi.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2020 Nuvoton Technology Corporation.
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_ESPI_NPCX_ESPI_H_
7
#define ZEPHYR_INCLUDE_DT_BINDINGS_ESPI_NPCX_ESPI_H_
8
9
/*
10
* Encode virtual wire information into a 16-bit unsigned.
11
* index = bits[7:0], Replacement index number
12
* group = bits[11:8], Group number for VWEVMS or VWEVSM
13
* dir = bits[13:12], Direction for controller to target or target to controller
14
*/
15
#define ESPI_NPCX_VW_EX_VAL(dir, group, index) \
16
(((dir & 0x1) << 12) + ((group & 0xf) << 8) + (index & 0xff))
15
#define ESPI_NPCX_VW_EX_VAL(dir, group, index) \
…
17
18
/* extract specific information from encoded ESPI_NPCX_VW_EX_VAL */
19
#define ESPI_NPCX_VW_EX_INDEX(e) ((e) & 0xff)
20
#define ESPI_NPCX_VW_EX_GROUP_NUM(e) (((e) >> 8) & 0xf)
21
#define ESPI_NPCX_VW_EX_DIR(e) (((e) >> 12) & 0x1)
22
23
/* eSPI VW Master to Slave Register Index */
24
#define NPCX_VWEVMS0 0
25
#define NPCX_VWEVMS1 1
26
#define NPCX_VWEVMS2 2
27
#define NPCX_VWEVMS3 3
28
#define NPCX_VWEVMS4 4
29
#define NPCX_VWEVMS5 5
30
#define NPCX_VWEVMS6 6
31
#define NPCX_VWEVMS7 7
32
#define NPCX_VWEVMS8 8
33
#define NPCX_VWEVMS9 9
34
#define NPCX_VWEVMS10 10
35
#define NPCX_VWEVMS11 11
36
#define NPCX_VWEVMS_MAX 12
37
38
/* eSPI VW Slave to Master Register Index */
39
#define NPCX_VWEVSM0 0
40
#define NPCX_VWEVSM1 1
41
#define NPCX_VWEVSM2 2
42
#define NPCX_VWEVSM3 3
43
#define NPCX_VWEVSM4 4
44
#define NPCX_VWEVSM5 5
45
#define NPCX_VWEVSM6 6
46
#define NPCX_VWEVSM7 7
47
#define NPCX_VWEVSM8 8
48
#define NPCX_VWEVSM9 9
49
#define NPCX_VWEVSM_MAX 10
50
51
/* eSPI VW GPIO Slave to Master Register Index */
52
#define NPCX_VWGPSM0 0
53
#define NPCX_VWGPSM1 1
54
#define NPCX_VWGPSM2 2
55
#define NPCX_VWGPSM3 3
56
#define NPCX_VWGPSM4 4
57
#define NPCX_VWGPSM5 5
58
#define NPCX_VWGPSM6 6
59
#define NPCX_VWGPSM7 7
60
#define NPCX_VWGPSM8 8
61
#define NPCX_VWGPSM9 9
62
#define NPCX_VWGPSM10 10
63
#define NPCX_VWGPSM11 11
64
#define NPCX_VWGPSM12 12
65
#define NPCX_VWGPSM13 13
66
#define NPCX_VWGPSM14 14
67
#define NPCX_VWGPSM15 15
68
69
#endif
/* ZEPHYR_INCLUDE_DT_BINDINGS_ESPI_NPCX_ESPI_H_ */
zephyr
dt-bindings
espi
npcx_espi.h
Generated on Sat May 17 2025 21:06:22 for Zephyr API Documentation by
1.12.0