summaryrefslogtreecommitdiff
path: root/src/mainboard/google/brya/acpi/gpu_defines.h
blob: 65a8ee942e5e3f5e5dcc074d6642033994ad036b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/* SPDX-License-Identifier: GPL-2.0-or-later */

#define NV_ERROR_SUCCESS		0x0
#define NV_ERROR_UNSPECIFIED		0x80000001
#define NV_ERROR_UNSUPPORTED		0x80000002

#define PCI_OWNER_SBIOS			0x0
#define PCI_OWNER_DRIVER		0x1

#define OPTIMUS_POWER_CONTROL_DISABLE	0x2
#define OPTIMUS_POWER_CONTROL_ENABLE	0x3

#define OPTIMUS_CONTROL_NO_RUN_PS0	0x0
#define OPTIMUS_CONTROL_RUN_PS0		0x1

#define GC6_STATE_EXITED		0x0
#define GC6_STATE_ENTERED		0x1
#define GC6_STATE_TRANSITION		0x2

#define GC6_DEFER_DISABLE		0x0
#define GC6_DEFER_ENABLE		0x1

#define NOTIFY_GPS_EVENT_STATUS_CHANGE	0xc0
#define NOTIFY_GPS_NVPCF_STATUS_CHANGE	0xc5
#define NOTIFY_GPS_EVENT_LIMIT_POWER_0	0xd1
#define NOTIFY_GPS_EVENT_LIMIT_POWER_1	0xd2
#define NOTIFY_GPS_EVENT_LIMIT_POWER_2	0xd3
#define NOTIFY_GPS_EVENT_LIMIT_POWER_3	0xd4
#define NOTIFY_GPS_EVENT_LIMIT_POWER_4	0xd5

/* Defines for NVJT subfunction */
#define NVJT_GPC_GSS		0
#define NVJT_GPC_EGNS		1
#define NVJT_GPC_EGIS		2
#define NVJT_GPS_XGXS		3
#define NVJT_GPS_XGIS		4

#define UUID_NVOP		"a486d8f8-0bda-471b-a72b-6042a6b5bee0"
#define UUID_NVJT		"cbeca351-067b-4924-9cbd-b46b00b86f34"
#define UUID_NBCI		"d4a50b75-65c7-46f7-bfb7-41514cea0244"

#define REVISION_MIN_NVOP	0x100
#define REVISION_MIN_NVJT	0x100
#define REVISION_MIN_NBCI	0x102