blob: 4e5ea9241b2871bb2edcdf6a0dd9ef3d42e70933 [file] [log] [blame]
Ben Skeggs26fdd782013-10-15 11:52:56 +10001#ifndef __NOUVEAU_SYSFS_H__
2#define __NOUVEAU_SYSFS_H__
3
4#include "nouveau_drm.h"
5
6struct nouveau_sysfs {
Ben Skeggs0ad72862014-08-10 04:10:22 +10007 struct nvif_object ctrl;
Ben Skeggs26fdd782013-10-15 11:52:56 +10008};
9
10static inline struct nouveau_sysfs *
11nouveau_sysfs(struct drm_device *dev)
12{
13 return nouveau_drm(dev)->sysfs;
14}
15
16int nouveau_sysfs_init(struct drm_device *);
17void nouveau_sysfs_fini(struct drm_device *);
18
Pierre Moreau703fa262014-08-18 22:43:24 +020019extern int nouveau_pstate;
20
Ben Skeggs26fdd782013-10-15 11:52:56 +100021#endif