cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

nv31.h (856B)


      1/* SPDX-License-Identifier: MIT */
      2#ifndef __NV31_MPEG_H__
      3#define __NV31_MPEG_H__
      4#define nv31_mpeg(p) container_of((p), struct nv31_mpeg, engine)
      5#include "priv.h"
      6#include <engine/mpeg.h>
      7
      8struct nv31_mpeg {
      9	const struct nv31_mpeg_func *func;
     10	struct nvkm_engine engine;
     11	struct nv31_mpeg_chan *chan;
     12};
     13
     14int nv31_mpeg_new_(const struct nv31_mpeg_func *, struct nvkm_device *, enum nvkm_subdev_type, int,
     15		   struct nvkm_engine **);
     16
     17struct nv31_mpeg_func {
     18	bool (*mthd_dma)(struct nvkm_device *, u32 mthd, u32 data);
     19};
     20
     21#define nv31_mpeg_chan(p) container_of((p), struct nv31_mpeg_chan, object)
     22#include <core/object.h>
     23
     24struct nv31_mpeg_chan {
     25	struct nvkm_object object;
     26	struct nv31_mpeg *mpeg;
     27	struct nvkm_fifo_chan *fifo;
     28};
     29
     30int nv31_mpeg_chan_new(struct nvkm_fifo_chan *, const struct nvkm_oclass *,
     31		       struct nvkm_object **);
     32#endif