drm/radeon: Avoid externs & do not initialize globals to 0 in radeon_drv.c
[sfrench/cifs-2.6.git] / drivers / gpu / drm / radeon / radeon_drv.h
index 2ffe0975ee543ffaaa5ccfb42f952a56c0675d62..34a1c73d3938f1b092d6afa09536a561b8604b70 100644 (file)
@@ -124,4 +124,17 @@ int radeon_driver_open_kms(struct drm_device *dev, struct drm_file *file_priv);
 void radeon_driver_postclose_kms(struct drm_device *dev,
                                 struct drm_file *file_priv);
 
+/* atpx handler */
+#if defined(CONFIG_VGA_SWITCHEROO)
+void radeon_register_atpx_handler(void);
+void radeon_unregister_atpx_handler(void);
+bool radeon_has_atpx_dgpu_power_cntl(void);
+bool radeon_is_atpx_hybrid(void);
+#else
+static inline void radeon_register_atpx_handler(void) {}
+static inline void radeon_unregister_atpx_handler(void) {}
+static inline bool radeon_has_atpx_dgpu_power_cntl(void) { return false; }
+static inline bool radeon_is_atpx_hybrid(void) { return false; }
+#endif
+
 #endif                         /* __RADEON_DRV_H__ */