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

5
struct nvkm_mc {
6
	const struct nvkm_mc_func *func;
B
Ben Skeggs 已提交
7
	struct nvkm_subdev subdev;
8

A
Alexandre Courbot 已提交
9
	unsigned int irq;
10
	bool use_msi;
11 12
};

13 14 15
void nvkm_mc_intr_unarm(struct nvkm_mc *);
void nvkm_mc_intr_rearm(struct nvkm_mc *);
u32 nvkm_mc_intr_mask(struct nvkm_mc *);
16
void nvkm_mc_unk260(struct nvkm_mc *, u32 data);
17

18 19 20 21 22 23 24 25 26 27
int nv04_mc_new(struct nvkm_device *, int, struct nvkm_mc **);
int nv40_mc_new(struct nvkm_device *, int, struct nvkm_mc **);
int nv44_mc_new(struct nvkm_device *, int, struct nvkm_mc **);
int nv4c_mc_new(struct nvkm_device *, int, struct nvkm_mc **);
int nv50_mc_new(struct nvkm_device *, int, struct nvkm_mc **);
int g94_mc_new(struct nvkm_device *, int, struct nvkm_mc **);
int g98_mc_new(struct nvkm_device *, int, struct nvkm_mc **);
int gf100_mc_new(struct nvkm_device *, int, struct nvkm_mc **);
int gf106_mc_new(struct nvkm_device *, int, struct nvkm_mc **);
int gk20a_mc_new(struct nvkm_device *, int, struct nvkm_mc **);
28
#endif