xref: /aosp_15_r20/bionic/libc/kernel/uapi/linux/arm_sdei.h (revision 8d67ca893c1523eb926b9080dbe4e2ffd2a27ba1)
1*8d67ca89SAndroid Build Coastguard Worker /*
2*8d67ca89SAndroid Build Coastguard Worker  * This file is auto-generated. Modifications will be lost.
3*8d67ca89SAndroid Build Coastguard Worker  *
4*8d67ca89SAndroid Build Coastguard Worker  * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5*8d67ca89SAndroid Build Coastguard Worker  * for more information.
6*8d67ca89SAndroid Build Coastguard Worker  */
7*8d67ca89SAndroid Build Coastguard Worker #ifndef _UAPI_LINUX_ARM_SDEI_H
8*8d67ca89SAndroid Build Coastguard Worker #define _UAPI_LINUX_ARM_SDEI_H
9*8d67ca89SAndroid Build Coastguard Worker #define SDEI_1_0_FN_BASE 0xC4000020
10*8d67ca89SAndroid Build Coastguard Worker #define SDEI_1_0_MASK 0xFFFFFFE0
11*8d67ca89SAndroid Build Coastguard Worker #define SDEI_1_0_FN(n) (SDEI_1_0_FN_BASE + (n))
12*8d67ca89SAndroid Build Coastguard Worker #define SDEI_1_0_FN_SDEI_VERSION SDEI_1_0_FN(0x00)
13*8d67ca89SAndroid Build Coastguard Worker #define SDEI_1_0_FN_SDEI_EVENT_REGISTER SDEI_1_0_FN(0x01)
14*8d67ca89SAndroid Build Coastguard Worker #define SDEI_1_0_FN_SDEI_EVENT_ENABLE SDEI_1_0_FN(0x02)
15*8d67ca89SAndroid Build Coastguard Worker #define SDEI_1_0_FN_SDEI_EVENT_DISABLE SDEI_1_0_FN(0x03)
16*8d67ca89SAndroid Build Coastguard Worker #define SDEI_1_0_FN_SDEI_EVENT_CONTEXT SDEI_1_0_FN(0x04)
17*8d67ca89SAndroid Build Coastguard Worker #define SDEI_1_0_FN_SDEI_EVENT_COMPLETE SDEI_1_0_FN(0x05)
18*8d67ca89SAndroid Build Coastguard Worker #define SDEI_1_0_FN_SDEI_EVENT_COMPLETE_AND_RESUME SDEI_1_0_FN(0x06)
19*8d67ca89SAndroid Build Coastguard Worker #define SDEI_1_0_FN_SDEI_EVENT_UNREGISTER SDEI_1_0_FN(0x07)
20*8d67ca89SAndroid Build Coastguard Worker #define SDEI_1_0_FN_SDEI_EVENT_STATUS SDEI_1_0_FN(0x08)
21*8d67ca89SAndroid Build Coastguard Worker #define SDEI_1_0_FN_SDEI_EVENT_GET_INFO SDEI_1_0_FN(0x09)
22*8d67ca89SAndroid Build Coastguard Worker #define SDEI_1_0_FN_SDEI_EVENT_ROUTING_SET SDEI_1_0_FN(0x0A)
23*8d67ca89SAndroid Build Coastguard Worker #define SDEI_1_0_FN_SDEI_PE_MASK SDEI_1_0_FN(0x0B)
24*8d67ca89SAndroid Build Coastguard Worker #define SDEI_1_0_FN_SDEI_PE_UNMASK SDEI_1_0_FN(0x0C)
25*8d67ca89SAndroid Build Coastguard Worker #define SDEI_1_0_FN_SDEI_INTERRUPT_BIND SDEI_1_0_FN(0x0D)
26*8d67ca89SAndroid Build Coastguard Worker #define SDEI_1_0_FN_SDEI_INTERRUPT_RELEASE SDEI_1_0_FN(0x0E)
27*8d67ca89SAndroid Build Coastguard Worker #define SDEI_1_0_FN_SDEI_PRIVATE_RESET SDEI_1_0_FN(0x11)
28*8d67ca89SAndroid Build Coastguard Worker #define SDEI_1_0_FN_SDEI_SHARED_RESET SDEI_1_0_FN(0x12)
29*8d67ca89SAndroid Build Coastguard Worker #define SDEI_VERSION_MAJOR_SHIFT 48
30*8d67ca89SAndroid Build Coastguard Worker #define SDEI_VERSION_MAJOR_MASK 0x7fff
31*8d67ca89SAndroid Build Coastguard Worker #define SDEI_VERSION_MINOR_SHIFT 32
32*8d67ca89SAndroid Build Coastguard Worker #define SDEI_VERSION_MINOR_MASK 0xffff
33*8d67ca89SAndroid Build Coastguard Worker #define SDEI_VERSION_VENDOR_SHIFT 0
34*8d67ca89SAndroid Build Coastguard Worker #define SDEI_VERSION_VENDOR_MASK 0xffffffff
35*8d67ca89SAndroid Build Coastguard Worker #define SDEI_VERSION_MAJOR(x) (x >> SDEI_VERSION_MAJOR_SHIFT & SDEI_VERSION_MAJOR_MASK)
36*8d67ca89SAndroid Build Coastguard Worker #define SDEI_VERSION_MINOR(x) (x >> SDEI_VERSION_MINOR_SHIFT & SDEI_VERSION_MINOR_MASK)
37*8d67ca89SAndroid Build Coastguard Worker #define SDEI_VERSION_VENDOR(x) (x >> SDEI_VERSION_VENDOR_SHIFT & SDEI_VERSION_VENDOR_MASK)
38*8d67ca89SAndroid Build Coastguard Worker #define SDEI_SUCCESS 0
39*8d67ca89SAndroid Build Coastguard Worker #define SDEI_NOT_SUPPORTED - 1
40*8d67ca89SAndroid Build Coastguard Worker #define SDEI_INVALID_PARAMETERS - 2
41*8d67ca89SAndroid Build Coastguard Worker #define SDEI_DENIED - 3
42*8d67ca89SAndroid Build Coastguard Worker #define SDEI_PENDING - 5
43*8d67ca89SAndroid Build Coastguard Worker #define SDEI_OUT_OF_RESOURCE - 10
44*8d67ca89SAndroid Build Coastguard Worker #define SDEI_EVENT_REGISTER_RM_ANY 0
45*8d67ca89SAndroid Build Coastguard Worker #define SDEI_EVENT_REGISTER_RM_PE 1
46*8d67ca89SAndroid Build Coastguard Worker #define SDEI_EVENT_STATUS_RUNNING 2
47*8d67ca89SAndroid Build Coastguard Worker #define SDEI_EVENT_STATUS_ENABLED 1
48*8d67ca89SAndroid Build Coastguard Worker #define SDEI_EVENT_STATUS_REGISTERED 0
49*8d67ca89SAndroid Build Coastguard Worker #define SDEI_EV_HANDLED 0
50*8d67ca89SAndroid Build Coastguard Worker #define SDEI_EV_FAILED 1
51*8d67ca89SAndroid Build Coastguard Worker #define SDEI_EVENT_INFO_EV_TYPE 0
52*8d67ca89SAndroid Build Coastguard Worker #define SDEI_EVENT_INFO_EV_SIGNALED 1
53*8d67ca89SAndroid Build Coastguard Worker #define SDEI_EVENT_INFO_EV_PRIORITY 2
54*8d67ca89SAndroid Build Coastguard Worker #define SDEI_EVENT_INFO_EV_ROUTING_MODE 3
55*8d67ca89SAndroid Build Coastguard Worker #define SDEI_EVENT_INFO_EV_ROUTING_AFF 4
56*8d67ca89SAndroid Build Coastguard Worker #define SDEI_EVENT_TYPE_PRIVATE 0
57*8d67ca89SAndroid Build Coastguard Worker #define SDEI_EVENT_TYPE_SHARED 1
58*8d67ca89SAndroid Build Coastguard Worker #define SDEI_EVENT_PRIORITY_NORMAL 0
59*8d67ca89SAndroid Build Coastguard Worker #define SDEI_EVENT_PRIORITY_CRITICAL 1
60*8d67ca89SAndroid Build Coastguard Worker #endif
61