linux/drivers/gpu/drm/gma500/psb_device.c

// SPDX-License-Identifier: GPL-2.0-only
/**************************************************************************
 * Copyright (c) 2011, Intel Corporation.
 * All Rights Reserved.
 *
 **************************************************************************/

#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)
{}

/*
 *	Poulsbo Backlight Interfaces
 */

#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)
{}

/*
 *	Provide the Poulsbo specific chip logic and low level methods
 *	for power management
 */

static void psb_init_pm(struct drm_device *dev)
{}

/**
 *	psb_save_display_registers	-	save registers lost on suspend
 *	@dev: our DRM device
 *
 *	Save the state we need in order to be able to restore the interface
 *	upon resume from suspend
 */
static int psb_save_display_registers(struct drm_device *dev)
{}

/**
 *	psb_restore_display_registers	-	restore lost register state
 *	@dev: our DRM device
 *
 *	Restore register state that was lost during suspend and resume.
 */
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)
{}

/* Poulsbo */
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 =;