Ben Skeggs | 26fdd78 | 2013-10-15 11:52:56 +1000 | [diff] [blame] | 1 | #ifndef __NOUVEAU_SYSFS_H__ |
| 2 | #define __NOUVEAU_SYSFS_H__ |
| 3 | |
| 4 | #include "nouveau_drm.h" |
| 5 | |
| 6 | struct nouveau_sysfs { |
Ben Skeggs | 0ad7286 | 2014-08-10 04:10:22 +1000 | [diff] [blame] | 7 | struct nvif_object ctrl; |
Ben Skeggs | 26fdd78 | 2013-10-15 11:52:56 +1000 | [diff] [blame] | 8 | }; |
| 9 | |
| 10 | static inline struct nouveau_sysfs * |
| 11 | nouveau_sysfs(struct drm_device *dev) |
| 12 | { |
| 13 | return nouveau_drm(dev)->sysfs; |
| 14 | } |
| 15 | |
| 16 | int nouveau_sysfs_init(struct drm_device *); |
| 17 | void nouveau_sysfs_fini(struct drm_device *); |
| 18 | |
Pierre Moreau | 703fa26 | 2014-08-18 22:43:24 +0200 | [diff] [blame] | 19 | extern int nouveau_pstate; |
| 20 | |
Ben Skeggs | 26fdd78 | 2013-10-15 11:52:56 +1000 | [diff] [blame] | 21 | #endif |