#include <linux/delay.h>
#include <linux/dmi.h>
#include <linux/module.h>
#include <drm/drm.h>
#include "intel_bios.h"
#include "mid_bios.h"
#include "psb_drv.h"
#include "psb_intel_reg.h"
#include "psb_reg.h"
static int oaktrail_output_init(struct drm_device *dev)
{ … }
#define MRST_BLC_MAX_PWM_REG_FREQ …
#define BLC_PWM_PRECISION_FACTOR …
#define BLC_PWM_FREQ_CALC_CONSTANT …
#define MHz …
#define BLC_ADJUSTMENT_MAX …
static void oaktrail_set_brightness(struct drm_device *dev, int level)
{ … }
static int oaktrail_backlight_init(struct drm_device *dev)
{ … }
static int oaktrail_save_display_registers(struct drm_device *dev)
{ … }
static int oaktrail_restore_display_registers(struct drm_device *dev)
{ … }
static int oaktrail_power_down(struct drm_device *dev)
{ … }
static int oaktrail_power_up(struct drm_device *dev)
{ … }
static const struct psb_offset oaktrail_regmap[2] = …;
static int oaktrail_chip_setup(struct drm_device *dev)
{ … }
static void oaktrail_teardown(struct drm_device *dev)
{ … }
const struct psb_ops oaktrail_chip_ops = …;