1 1.3 riastrad /* $NetBSD: lut.h,v 1.3 2021/12/19 10:49:47 riastradh Exp $ */ 2 1.1 riastrad 3 1.1 riastrad #ifndef __NV50_KMS_LUT_H__ 4 1.1 riastrad #define __NV50_KMS_LUT_H__ 5 1.1 riastrad #include <nvif/mem.h> 6 1.1 riastrad struct drm_property_blob; 7 1.1 riastrad struct drm_color_lut; 8 1.1 riastrad struct nv50_disp; 9 1.1 riastrad 10 1.1 riastrad struct nv50_lut { 11 1.1 riastrad struct nvif_mem mem[2]; 12 1.1 riastrad }; 13 1.1 riastrad 14 1.1 riastrad int nv50_lut_init(struct nv50_disp *, struct nvif_mmu *, struct nv50_lut *); 15 1.1 riastrad void nv50_lut_fini(struct nv50_lut *); 16 1.3 riastrad #ifdef __NetBSD__ 17 1.3 riastrad # define __lut_iomem volatile 18 1.3 riastrad # define __iomem __lut_iomem 19 1.3 riastrad #endif 20 1.1 riastrad u32 nv50_lut_load(struct nv50_lut *, int buffer, struct drm_property_blob *, 21 1.1 riastrad void (*)(struct drm_color_lut *, int size, void __iomem *)); 22 1.3 riastrad #ifdef __NetBSD__ 23 1.3 riastrad # undef __iomem 24 1.3 riastrad #endif 25 1.1 riastrad #endif 26