#include <linux/delay.h>
#include <linux/i2c.h>
#include <linux/pm_runtime.h>
#include <drm/drm_fourcc.h>
#include <drm/drm_framebuffer.h>
#include <drm/drm_modeset_helper_vtables.h>
#include "framebuffer.h"
#include "gem.h"
#include "gma_display.h"
#include "power.h"
#include "psb_drv.h"
#include "psb_intel_drv.h"
#include "psb_intel_reg.h"
#define MRST_LIMIT_LVDS_100L …
#define MRST_LIMIT_LVDS_83 …
#define MRST_LIMIT_LVDS_100 …
#define MRST_LIMIT_SDVO …
#define MRST_DOT_MIN …
#define MRST_DOT_MAX …
#define MRST_M_MIN_100L …
#define MRST_M_MIN_100 …
#define MRST_M_MIN_83 …
#define MRST_M_MAX_100L …
#define MRST_M_MAX_100 …
#define MRST_M_MAX_83 …
#define MRST_P1_MIN …
#define MRST_P1_MAX_0 …
#define MRST_P1_MAX_1 …
static bool mrst_lvds_find_best_pll(const struct gma_limit_t *limit,
struct drm_crtc *crtc, int target,
int refclk, struct gma_clock_t *best_clock);
static bool mrst_sdvo_find_best_pll(const struct gma_limit_t *limit,
struct drm_crtc *crtc, int target,
int refclk, struct gma_clock_t *best_clock);
static const struct gma_limit_t mrst_limits[] = …;
#define MRST_M_MIN …
static const u32 oaktrail_m_converts[] = …;
static const struct gma_limit_t *mrst_limit(struct drm_crtc *crtc,
int refclk)
{ … }
static void mrst_lvds_clock(int refclk, struct gma_clock_t *clock)
{ … }
static void mrst_print_pll(struct gma_clock_t *clock)
{ … }
static bool mrst_sdvo_find_best_pll(const struct gma_limit_t *limit,
struct drm_crtc *crtc, int target,
int refclk, struct gma_clock_t *best_clock)
{ … }
static bool mrst_lvds_find_best_pll(const struct gma_limit_t *limit,
struct drm_crtc *crtc, int target,
int refclk, struct gma_clock_t *best_clock)
{ … }
static void oaktrail_crtc_dpms(struct drm_crtc *crtc, int mode)
{ … }
static int oaktrail_panel_fitter_pipe(struct drm_device *dev)
{ … }
static int oaktrail_crtc_mode_set(struct drm_crtc *crtc,
struct drm_display_mode *mode,
struct drm_display_mode *adjusted_mode,
int x, int y,
struct drm_framebuffer *old_fb)
{ … }
static int oaktrail_pipe_set_base(struct drm_crtc *crtc,
int x, int y, struct drm_framebuffer *old_fb)
{ … }
const struct drm_crtc_helper_funcs oaktrail_helper_funcs = …;
const struct gma_clock_funcs mrst_clock_funcs = …;