#include <drm/drm.h>
#include <drm/drm_crtc_helper.h>
#include "gma_device.h"
#include "intel_bios.h"
#include "psb_device.h"
#include "psb_drv.h"
#include "psb_intel_reg.h"
#include "psb_reg.h"
static int psb_output_init(struct drm_device *dev)
{ … }
#define BLC_PWM_PRECISION_FACTOR …
#define BLC_PWM_FREQ_CALC_CONSTANT …
#define MHz …
#define PSB_BLC_PWM_PRECISION_FACTOR …
#define PSB_BLC_MAX_PWM_REG_FREQ …
#define PSB_BLC_MIN_PWM_REG_FREQ …
#define PSB_BACKLIGHT_PWM_POLARITY_BIT_CLEAR …
#define PSB_BACKLIGHT_PWM_CTL_SHIFT …
static int psb_backlight_setup(struct drm_device *dev)
{ … }
static void psb_init_pm(struct drm_device *dev)
{ … }
static int psb_save_display_registers(struct drm_device *dev)
{ … }
static int psb_restore_display_registers(struct drm_device *dev)
{ … }
static int psb_power_down(struct drm_device *dev)
{ … }
static int psb_power_up(struct drm_device *dev)
{ … }
static const struct psb_offset psb_regmap[2] = …;
static int psb_chip_setup(struct drm_device *dev)
{ … }
static void psb_chip_teardown(struct drm_device *dev)
{ … }
const struct psb_ops psb_chip_ops = …;