mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
drm/nouveau/sec2: initialise SW state for falcon from constructor
This will allow us to register the falcon with ACR, and further customise its behaviour by providing the nvkm_falcon_func structure directly. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
@@ -3,13 +3,14 @@
|
||||
#define __NVKM_SEC2_H__
|
||||
#define nvkm_sec2(p) container_of((p), struct nvkm_sec2, engine)
|
||||
#include <core/engine.h>
|
||||
#include <core/falcon.h>
|
||||
|
||||
struct nvkm_sec2 {
|
||||
const struct nvkm_sec2_func *func;
|
||||
struct nvkm_engine engine;
|
||||
struct nvkm_falcon falcon;
|
||||
u32 addr;
|
||||
|
||||
struct nvkm_falcon *falcon;
|
||||
struct nvkm_msgqueue *queue;
|
||||
struct work_struct work;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user