xtensa.h 848 字节
Newer Older
1 2
#ifndef __NVKM_XTENSA_H__
#define __NVKM_XTENSA_H__
3 4
#include <core/engine.h>

5
struct nvkm_xtensa {
6
	struct nvkm_engine engine;
7 8

	u32 addr;
9
	struct nvkm_memory *gpu_fw;
10 11 12 13
	u32 fifo_val;
	u32 unkd28;
};

14 15
#define nvkm_xtensa_create(p,e,c,b,d,i,f,r)				\
	nvkm_xtensa_create_((p), (e), (c), (b), (d), (i), (f),	\
16 17
			       sizeof(**r),(void **)r)

18 19 20 21
int _nvkm_xtensa_engctx_ctor(struct nvkm_object *,
				struct nvkm_object *,
				struct nvkm_oclass *, void *, u32,
				struct nvkm_object **);
22

23 24 25 26
void _nvkm_xtensa_intr(struct nvkm_subdev *);
int nvkm_xtensa_create_(struct nvkm_object *,
			   struct nvkm_object *,
			   struct nvkm_oclass *, u32, bool,
27 28
			   const char *, const char *,
			   int, void **);
29 30 31
#define _nvkm_xtensa_dtor _nvkm_engine_dtor
int _nvkm_xtensa_init(struct nvkm_object *);
int _nvkm_xtensa_fini(struct nvkm_object *, bool);
32
#endif