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