mc.h 737 字节
Newer Older
1 2
#ifndef __NVKM_MC_H__
#define __NVKM_MC_H__
3 4
#include <core/subdev.h>

5
struct nvkm_mc {
B
Ben Skeggs 已提交
6
	struct nvkm_subdev subdev;
L
Lucas Stach 已提交
7
	bool use_msi;
A
Alexandre Courbot 已提交
8
	unsigned int irq;
9
	void (*unk260)(struct nvkm_mc *, u32);
10 11
};

12 13
static inline struct nvkm_mc *
nvkm_mc(void *obj)
14
{
15
	return (void *)nvkm_subdev(obj, NVDEV_SUBDEV_MC);
16 17
}

18 19 20 21 22 23 24 25 26 27
extern struct nvkm_oclass *nv04_mc_oclass;
extern struct nvkm_oclass *nv40_mc_oclass;
extern struct nvkm_oclass *nv44_mc_oclass;
extern struct nvkm_oclass *nv4c_mc_oclass;
extern struct nvkm_oclass *nv50_mc_oclass;
extern struct nvkm_oclass *g94_mc_oclass;
extern struct nvkm_oclass *g98_mc_oclass;
extern struct nvkm_oclass *gf100_mc_oclass;
extern struct nvkm_oclass *gf106_mc_oclass;
extern struct nvkm_oclass *gk20a_mc_oclass;
28
#endif