aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nouveau_sysfs.h
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2013-10-15 11:52:56 +1000
committerBen Skeggs <bskeggs@redhat.com>2013-11-08 15:40:18 +1000
commit26fdd78cce3f51a49e1f2d3ad27ee893a28d220e (patch)
treeceacd5963b798bc65e9d045b830564b627a6f84a /drivers/gpu/drm/nouveau/nouveau_sysfs.h
parentdrm/nouveau/device: initial control object class, with pstate control methods (diff)
downloadlinux-dev-26fdd78cce3f51a49e1f2d3ad27ee893a28d220e.tar.xz
linux-dev-26fdd78cce3f51a49e1f2d3ad27ee893a28d220e.zip
drm/nouveau: implement a simple sysfs interface to new pm code
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_sysfs.h')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_sysfs.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_sysfs.h b/drivers/gpu/drm/nouveau/nouveau_sysfs.h
new file mode 100644
index 000000000000..74b47f1e01ed
--- /dev/null
+++ b/drivers/gpu/drm/nouveau/nouveau_sysfs.h
@@ -0,0 +1,19 @@
+#ifndef __NOUVEAU_SYSFS_H__
+#define __NOUVEAU_SYSFS_H__
+
+#include "nouveau_drm.h"
+
+struct nouveau_sysfs {
+ struct nouveau_object *ctrl;
+};
+
+static inline struct nouveau_sysfs *
+nouveau_sysfs(struct drm_device *dev)
+{
+ return nouveau_drm(dev)->sysfs;
+}
+
+int nouveau_sysfs_init(struct drm_device *);
+void nouveau_sysfs_fini(struct drm_device *);
+
+#endif