]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - drivers/gpu/drm/nouveau/core/include/subdev/devinit.h
Merge branch 'tda998x-fixes' of git://ftp.arm.linux.org.uk/~rmk/linux-cubox into...
[mirror_ubuntu-artful-kernel.git] / drivers / gpu / drm / nouveau / core / include / subdev / devinit.h
CommitLineData
cb75d97e
BS
1#ifndef __NOUVEAU_DEVINIT_H__
2#define __NOUVEAU_DEVINIT_H__
3
4#include <core/subdev.h>
5#include <core/device.h>
6
7struct nouveau_devinit {
8 struct nouveau_subdev base;
9 bool post;
10 void (*meminit)(struct nouveau_devinit *);
88524bc0 11 int (*pll_set)(struct nouveau_devinit *, u32 type, u32 freq);
cb75d97e
BS
12};
13
14static inline struct nouveau_devinit *
15nouveau_devinit(void *obj)
16{
17 return (void *)nv_device(obj)->subdev[NVDEV_SUBDEV_DEVINIT];
18}
19
cf336014
BS
20extern struct nouveau_oclass *nv04_devinit_oclass;
21extern struct nouveau_oclass *nv05_devinit_oclass;
22extern struct nouveau_oclass *nv10_devinit_oclass;
23extern struct nouveau_oclass *nv1a_devinit_oclass;
24extern struct nouveau_oclass *nv20_devinit_oclass;
25extern struct nouveau_oclass *nv50_devinit_oclass;
4019aaa2
IM
26extern struct nouveau_oclass *nv84_devinit_oclass;
27extern struct nouveau_oclass *nv98_devinit_oclass;
cf336014 28extern struct nouveau_oclass *nva3_devinit_oclass;
4019aaa2 29extern struct nouveau_oclass *nvaf_devinit_oclass;
cf336014 30extern struct nouveau_oclass *nvc0_devinit_oclass;
cb75d97e
BS
31
32#endif