Linux Kernel
3.7.1
|
#include <linux/i2c.h>
#include <drm/drmP.h>
#include "intel_bios.h"
#include "psb_drv.h"
#include "psb_intel_drv.h"
#include "psb_intel_reg.h"
#include "power.h"
#include <linux/pm_runtime.h>
Go to the source code of this file.
Data Structures | |
struct | psb_intel_lvds_priv |
Macros | |
#define | BRIGHTNESS_MAX_LEVEL 100 |
#define | BRIGHTNESS_MASK 0xFF |
#define | BLC_I2C_TYPE 0x01 |
#define | BLC_PWM_TYPT 0x02 |
#define | BLC_POLARITY_NORMAL 0 |
#define | BLC_POLARITY_INVERSE 1 |
#define | PSB_BLC_MAX_PWM_REG_FREQ (0xFFFE) |
#define | PSB_BLC_MIN_PWM_REG_FREQ (0x2) |
#define | PSB_BLC_PWM_PRECISION_FACTOR (10) |
#define | PSB_BACKLIGHT_PWM_CTL_SHIFT (16) |
#define | PSB_BACKLIGHT_PWM_POLARITY_BIT_CLEAR (0xFFFE) |
Functions | |
void | psb_intel_lvds_set_brightness (struct drm_device *dev, int level) |
int | psb_intel_lvds_mode_valid (struct drm_connector *connector, struct drm_display_mode *mode) |
bool | psb_intel_lvds_mode_fixup (struct drm_encoder *encoder, const struct drm_display_mode *mode, struct drm_display_mode *adjusted_mode) |
void | psb_intel_lvds_destroy (struct drm_connector *connector) |
int | psb_intel_lvds_set_property (struct drm_connector *connector, struct drm_property *property, uint64_t value) |
void | psb_intel_lvds_init (struct drm_device *dev, struct psb_intel_mode_device *mode_dev) |
Variables | |
struct drm_connector_helper_funcs | psb_intel_lvds_connector_helper_funcs |
struct drm_connector_funcs | psb_intel_lvds_connector_funcs |
struct drm_encoder_funcs | psb_intel_lvds_enc_funcs |
#define BLC_I2C_TYPE 0x01 |
Definition at line 38 of file psb_intel_lvds.c.
#define BLC_POLARITY_INVERSE 1 |
Definition at line 42 of file psb_intel_lvds.c.
#define BLC_POLARITY_NORMAL 0 |
Definition at line 41 of file psb_intel_lvds.c.
#define BLC_PWM_TYPT 0x02 |
Definition at line 39 of file psb_intel_lvds.c.
#define BRIGHTNESS_MASK 0xFF |
Definition at line 37 of file psb_intel_lvds.c.
#define BRIGHTNESS_MAX_LEVEL 100 |
Definition at line 36 of file psb_intel_lvds.c.
#define PSB_BACKLIGHT_PWM_CTL_SHIFT (16) |
Definition at line 47 of file psb_intel_lvds.c.
#define PSB_BACKLIGHT_PWM_POLARITY_BIT_CLEAR (0xFFFE) |
Definition at line 48 of file psb_intel_lvds.c.
#define PSB_BLC_MAX_PWM_REG_FREQ (0xFFFE) |
Definition at line 44 of file psb_intel_lvds.c.
#define PSB_BLC_MIN_PWM_REG_FREQ (0x2) |
Definition at line 45 of file psb_intel_lvds.c.
#define PSB_BLC_PWM_PRECISION_FACTOR (10) |
Definition at line 46 of file psb_intel_lvds.c.
void psb_intel_lvds_destroy | ( | struct drm_connector * | connector | ) |
psb_intel_lvds_destroy - unregister and free LVDS structures : connector to free
Unregister the DDC bus for this connector then free the driver private structure.
Definition at line 565 of file psb_intel_lvds.c.
void psb_intel_lvds_init | ( | struct drm_device * | dev, |
struct psb_intel_mode_device * | mode_dev | ||
) |
psb_intel_lvds_init - setup LVDS connectors on this device : drm device
Create the connector, register the LVDS DDC bus, and try to figure out what modes we can display on the LVDS panel (if present).
Definition at line 691 of file psb_intel_lvds.c.
bool psb_intel_lvds_mode_fixup | ( | struct drm_encoder * | encoder, |
const struct drm_display_mode * | mode, | ||
struct drm_display_mode * | adjusted_mode | ||
) |
Definition at line 377 of file psb_intel_lvds.c.
int psb_intel_lvds_mode_valid | ( | struct drm_connector * | connector, |
struct drm_display_mode * | mode | ||
) |
Definition at line 348 of file psb_intel_lvds.c.
void psb_intel_lvds_set_brightness | ( | struct drm_device * | dev, |
int | level | ||
) |
Definition at line 173 of file psb_intel_lvds.c.
int psb_intel_lvds_set_property | ( | struct drm_connector * | connector, |
struct drm_property * | property, | ||
uint64_t | value | ||
) |
Definition at line 578 of file psb_intel_lvds.c.
struct drm_connector_funcs psb_intel_lvds_connector_funcs |
Definition at line 662 of file psb_intel_lvds.c.
struct drm_connector_helper_funcs psb_intel_lvds_connector_helper_funcs |
Definition at line 656 of file psb_intel_lvds.c.
struct drm_encoder_funcs psb_intel_lvds_enc_funcs |
Definition at line 678 of file psb_intel_lvds.c.