提交 779d16aa 编写于 作者: B Ben Skeggs

drm/nouveau/pci: prepare for chipset-specific initialisation tasks

Signed-off-by: NBen Skeggs <bskeggs@redhat.com>
上级 c4266a9c
......@@ -111,6 +111,9 @@ nvkm_pci_init(struct nvkm_subdev *subdev)
return ret;
}
if (pci->func->init)
pci->func->init(pci);
ret = request_irq(pdev->irq, nvkm_pci_intr, IRQF_SHARED, "nvkm", pci);
if (ret)
return ret;
......
......@@ -7,6 +7,7 @@ int nvkm_pci_new_(const struct nvkm_pci_func *, struct nvkm_device *,
int index, struct nvkm_pci **);
struct nvkm_pci_func {
void (*init)(struct nvkm_pci *);
u32 (*rd32)(struct nvkm_pci *, u16 addr);
void (*wr08)(struct nvkm_pci *, u16 addr, u8 data);
void (*wr32)(struct nvkm_pci *, u16 addr, u32 data);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册