Commit d85e2a8d authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau/mc/nv04: define reset masks + intr cleanup

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 667e99ab
......@@ -30,18 +30,13 @@ nv04_mc_reset[] = {
{}
};
const struct nvkm_mc_map
static const struct nvkm_mc_map
nv04_mc_intr[] = {
{ 0x00000001, NVKM_ENGINE_MPEG }, /* NV17- MPEG/ME */
{ 0x00000100, NVKM_ENGINE_FIFO },
{ 0x01010000, NVKM_ENGINE_DISP },
{ 0x00001000, NVKM_ENGINE_GR },
{ 0x00010000, NVKM_ENGINE_DISP },
{ 0x00020000, NVKM_ENGINE_VP }, /* NV40- */
{ 0x00100000, NVKM_SUBDEV_TIMER },
{ 0x01000000, NVKM_ENGINE_DISP }, /* NV04- PCRTC0 */
{ 0x02000000, NVKM_ENGINE_DISP }, /* NV11- PCRTC1 */
{ 0x00000100, NVKM_ENGINE_FIFO },
{ 0x10000000, NVKM_SUBDEV_BUS },
{ 0x80000000, NVKM_ENGINE_SW },
{ 0x00100000, NVKM_SUBDEV_TIMER },
{}
};
......@@ -81,6 +76,7 @@ nv04_mc = {
.intr_unarm = nv04_mc_intr_unarm,
.intr_rearm = nv04_mc_intr_rearm,
.intr_mask = nv04_mc_intr_mask,
.reset = nv04_mc_reset,
};
int
......
......@@ -25,7 +25,6 @@ struct nvkm_mc_func {
};
void nv04_mc_init(struct nvkm_mc *);
extern const struct nvkm_mc_map nv04_mc_intr[];
void nv04_mc_intr_unarm(struct nvkm_mc *);
void nv04_mc_intr_rearm(struct nvkm_mc *);
u32 nv04_mc_intr_mask(struct nvkm_mc *);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment