1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef __NVIF_IF0003_H__ 3 #define __NVIF_IF0003_H__ 4 5 struct nvif_perfdom_v0 { 6 __u8 version; 7 __u8 domain; 8 __u8 mode; 9 __u8 pad03[1]; 10 struct { 11 __u8 signal[4]; 12 __u64 source[4][8]; 13 __u16 logic_op; 14 } ctr[4]; 15 }; 16 17 #define NVIF_PERFDOM_V0_INIT 0x00 18 #define NVIF_PERFDOM_V0_SAMPLE 0x01 19 #define NVIF_PERFDOM_V0_READ 0x02 20 21 struct nvif_perfdom_init { 22 }; 23 24 struct nvif_perfdom_sample { 25 }; 26 27 struct nvif_perfdom_read_v0 { 28 __u8 version; 29 __u8 pad01[7]; 30 __u32 ctr[4]; 31 __u32 clk; 32 __u8 pad04[4]; 33 }; 34 #endif 35