brintos

brintos / linux-shallow public Read only

0
0
Text · 868 B · 8d48fb2 Raw
28 lines · c
1/* SPDX-License-Identifier: MIT */2#ifndef __NVKM_SEC2_H__3#define __NVKM_SEC2_H__4#define nvkm_sec2(p) container_of((p), struct nvkm_sec2, engine)5#include <core/engine.h>6#include <core/falcon.h>7 8struct nvkm_sec2 {9	const struct nvkm_sec2_func *func;10	struct nvkm_engine engine;11	struct nvkm_falcon falcon;12 13	atomic_t running;14	atomic_t initmsg;15 16	struct nvkm_falcon_qmgr *qmgr;17	struct nvkm_falcon_cmdq *cmdq;18	struct nvkm_falcon_msgq *msgq;19 20	struct work_struct work;21};22 23int gp102_sec2_new(struct nvkm_device *, enum nvkm_subdev_type, int inst, struct nvkm_sec2 **);24int gp108_sec2_new(struct nvkm_device *, enum nvkm_subdev_type, int inst, struct nvkm_sec2 **);25int tu102_sec2_new(struct nvkm_device *, enum nvkm_subdev_type, int inst, struct nvkm_sec2 **);26int ga102_sec2_new(struct nvkm_device *, enum nvkm_subdev_type, int inst, struct nvkm_sec2 **);27#endif28