xref: /third_party/libdrm/nouveau/nvif/cl0080.h (revision d722e3fb)
1d722e3fbSopenharmony_ci#ifndef __NVIF_CL0080_H__
2d722e3fbSopenharmony_ci#define __NVIF_CL0080_H__
3d722e3fbSopenharmony_ci
4d722e3fbSopenharmony_cistruct nv_device_v0 {
5d722e3fbSopenharmony_ci	__u8  version;
6d722e3fbSopenharmony_ci	__u8  pad01[7];
7d722e3fbSopenharmony_ci	__u64 device;	/* device identifier, ~0 for client default */
8d722e3fbSopenharmony_ci};
9d722e3fbSopenharmony_ci
10d722e3fbSopenharmony_ci#define NV_DEVICE_V0_INFO                                                  0x00
11d722e3fbSopenharmony_ci#define NV_DEVICE_V0_TIME                                                  0x01
12d722e3fbSopenharmony_ci
13d722e3fbSopenharmony_cistruct nv_device_info_v0 {
14d722e3fbSopenharmony_ci	__u8  version;
15d722e3fbSopenharmony_ci#define NV_DEVICE_INFO_V0_IGP                                              0x00
16d722e3fbSopenharmony_ci#define NV_DEVICE_INFO_V0_PCI                                              0x01
17d722e3fbSopenharmony_ci#define NV_DEVICE_INFO_V0_AGP                                              0x02
18d722e3fbSopenharmony_ci#define NV_DEVICE_INFO_V0_PCIE                                             0x03
19d722e3fbSopenharmony_ci#define NV_DEVICE_INFO_V0_SOC                                              0x04
20d722e3fbSopenharmony_ci	__u8  platform;
21d722e3fbSopenharmony_ci	__u16 chipset;	/* from NV_PMC_BOOT_0 */
22d722e3fbSopenharmony_ci	__u8  revision;	/* from NV_PMC_BOOT_0 */
23d722e3fbSopenharmony_ci#define NV_DEVICE_INFO_V0_TNT                                              0x01
24d722e3fbSopenharmony_ci#define NV_DEVICE_INFO_V0_CELSIUS                                          0x02
25d722e3fbSopenharmony_ci#define NV_DEVICE_INFO_V0_KELVIN                                           0x03
26d722e3fbSopenharmony_ci#define NV_DEVICE_INFO_V0_RANKINE                                          0x04
27d722e3fbSopenharmony_ci#define NV_DEVICE_INFO_V0_CURIE                                            0x05
28d722e3fbSopenharmony_ci#define NV_DEVICE_INFO_V0_TESLA                                            0x06
29d722e3fbSopenharmony_ci#define NV_DEVICE_INFO_V0_FERMI                                            0x07
30d722e3fbSopenharmony_ci#define NV_DEVICE_INFO_V0_KEPLER                                           0x08
31d722e3fbSopenharmony_ci#define NV_DEVICE_INFO_V0_MAXWELL                                          0x09
32d722e3fbSopenharmony_ci	__u8  family;
33d722e3fbSopenharmony_ci	__u8  pad06[2];
34d722e3fbSopenharmony_ci	__u64 ram_size;
35d722e3fbSopenharmony_ci	__u64 ram_user;
36d722e3fbSopenharmony_ci	char  chip[16];
37d722e3fbSopenharmony_ci	char  name[64];
38d722e3fbSopenharmony_ci};
39d722e3fbSopenharmony_ci
40d722e3fbSopenharmony_cistruct nv_device_time_v0 {
41d722e3fbSopenharmony_ci	__u8  version;
42d722e3fbSopenharmony_ci	__u8  pad01[7];
43d722e3fbSopenharmony_ci	__u64 time;
44d722e3fbSopenharmony_ci};
45d722e3fbSopenharmony_ci#endif
46