1*b7019ac5SIlia Mirkin /* SPDX-License-Identifier: MIT */ 2d36a99d2SBen Skeggs #ifndef __NV40_FB_RAM_H__ 3d36a99d2SBen Skeggs #define __NV40_FB_RAM_H__ 4d36a99d2SBen Skeggs #define nv40_ram(p) container_of((p), struct nv40_ram, base) 5d36a99d2SBen Skeggs #include "ram.h" 6d36a99d2SBen Skeggs 7d36a99d2SBen Skeggs struct nv40_ram { 8d36a99d2SBen Skeggs struct nvkm_ram base; 9d36a99d2SBen Skeggs u32 ctrl; 10d36a99d2SBen Skeggs u32 coef; 11d36a99d2SBen Skeggs }; 12d36a99d2SBen Skeggs 13af793b8cSBen Skeggs int nv40_ram_new_(struct nvkm_fb *fb, enum nvkm_ram_type, u64, 14d36a99d2SBen Skeggs struct nvkm_ram **); 15d36a99d2SBen Skeggs #endif 16