blob: d0a2cc608cfcc40d3d93a43da2f3bbab109e73e2 [file] [log] [blame]
#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)
#define to_glint_encoder(x) container_of(x, struct glint_encoder, 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? */
};
struct glint_encoder {
struct drm_encoder base;
int last_dpms;
};
struct glint_connector {
struct drm_connector base;
};
#endif /* __GLINT_MODE_H__ */