| #ifndef __GLINT_MODE_H__ |
| #define __GLINT_MODE_H__ |
| |
| #include "drmP.h" |
| #include "drm.h" |
| |
| #define GLINT_MAX_FB_HEIGHT 4096 |
| #define GLINT_MAX_FB_WIDTH 4096 |
| |
| #define GLINT_DPMS_CLEARED (-1) |
| |
| #define to_glint_crtc(x) container_of(x, struct glint_crtc, base) |
| |
| struct glint_crtc { |
| struct drm_crtc base; |
| u8 lut_r[256], lut_g[256], lut_b[256]; |
| int crtc_id; |
| int last_dpms; |
| bool enabled; |
| }; |
| |
| struct glint_mode_info { |
| bool mode_config_initialized; |
| struct glint_crtc *crtcs[2]; /* FIXME: how many CRTCs? */ |
| }; |
| |
| #endif /* __GLINT_MODE_H__ */ |