Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
cdv_intel_display.c File Reference
#include <linux/i2c.h>
#include <linux/pm_runtime.h>
#include <drm/drmP.h>
#include "framebuffer.h"
#include "psb_drv.h"
#include "psb_intel_drv.h"
#include "psb_intel_reg.h"
#include "psb_intel_display.h"
#include "power.h"
#include "cdv_device.h"

Go to the source code of this file.

Data Structures

struct  cdv_intel_range_t
 
struct  cdv_intel_p2_t
 
struct  cdv_intel_clock_t
 
struct  cdv_intel_limit_t
 

Macros

#define INTEL_P2_NUM   2
 
#define CDV_LIMIT_SINGLE_LVDS_96   0
 
#define CDV_LIMIT_SINGLE_LVDS_100   1
 
#define CDV_LIMIT_DAC_HDMI_27   2
 
#define CDV_LIMIT_DAC_HDMI_96   3
 
#define CDV_LIMIT_DP_27   4
 
#define CDV_LIMIT_DP_100   5
 
#define _wait_for(COND, MS, W)
 
#define wait_for(COND, MS)   _wait_for(COND, MS, 1)
 
#define INTELPllInvalid(s)   { /* ErrorF (s) */; return false; }
 
#define FIFO_PIPEA   (1 << 0)
 
#define FIFO_PIPEB   (1 << 1)
 

Functions

int cdv_sb_read (struct drm_device *dev, u32 reg, u32 *val)
 
int cdv_sb_write (struct drm_device *dev, u32 reg, u32 val)
 
void cdv_sb_reset (struct drm_device *dev)
 
struct drm_display_modecdv_intel_crtc_mode_get (struct drm_device *dev, struct drm_crtc *crtc)
 

Variables

struct drm_crtc_helper_funcs cdv_intel_helper_funcs
 
struct drm_crtc_funcs cdv_intel_crtc_funcs
 

Macro Definition Documentation

#define _wait_for (   COND,
  MS,
  W 
)
Value:
({ \
unsigned long timeout__ = jiffies + msecs_to_jiffies(MS); \
int ret__ = 0; \
while (!(COND)) { \
if (time_after(jiffies, timeout__)) { \
ret__ = -ETIMEDOUT; \
break; \
} \
if (W && !in_dbg_master()) \
msleep(W); \
} \
ret__; \
})

Definition at line 157 of file cdv_intel_display.c.

#define CDV_LIMIT_DAC_HDMI_27   2

Definition at line 73 of file cdv_intel_display.c.

#define CDV_LIMIT_DAC_HDMI_96   3

Definition at line 74 of file cdv_intel_display.c.

#define CDV_LIMIT_DP_100   5

Definition at line 76 of file cdv_intel_display.c.

#define CDV_LIMIT_DP_27   4

Definition at line 75 of file cdv_intel_display.c.

#define CDV_LIMIT_SINGLE_LVDS_100   1

Definition at line 72 of file cdv_intel_display.c.

#define CDV_LIMIT_SINGLE_LVDS_96   0

Definition at line 71 of file cdv_intel_display.c.

#define FIFO_PIPEA   (1 << 0)

Definition at line 666 of file cdv_intel_display.c.

#define FIFO_PIPEB   (1 << 1)

Definition at line 667 of file cdv_intel_display.c.

#define INTEL_P2_NUM   2

Definition at line 55 of file cdv_intel_display.c.

#define INTELPllInvalid (   s)    { /* ErrorF (s) */; return false; }

Definition at line 467 of file cdv_intel_display.c.

#define wait_for (   COND,
  MS 
)    _wait_for(COND, MS, 1)

Definition at line 171 of file cdv_intel_display.c.

Function Documentation

struct drm_display_mode* cdv_intel_crtc_mode_get ( struct drm_device dev,
struct drm_crtc crtc 
)
read

Returns the currently programmed mode of the given pipe.

Definition at line 1697 of file cdv_intel_display.c.

int cdv_sb_read ( struct drm_device dev,
u32  reg,
u32 val 
)

Definition at line 174 of file cdv_intel_display.c.

void cdv_sb_reset ( struct drm_device dev)

Definition at line 243 of file cdv_intel_display.c.

int cdv_sb_write ( struct drm_device dev,
u32  reg,
u32  val 
)

Definition at line 201 of file cdv_intel_display.c.

Variable Documentation

struct drm_crtc_funcs cdv_intel_crtc_funcs
Initial value:
= {
.save = cdv_intel_crtc_save,
.restore = cdv_intel_crtc_restore,
.cursor_set = cdv_intel_crtc_cursor_set,
.cursor_move = cdv_intel_crtc_cursor_move,
.gamma_set = cdv_intel_crtc_gamma_set,
.set_config = cdv_crtc_set_config,
.destroy = cdv_intel_crtc_destroy,
}

Definition at line 1762 of file cdv_intel_display.c.

struct drm_crtc_helper_funcs cdv_intel_helper_funcs
Initial value:
= {
.dpms = cdv_intel_crtc_dpms,
.mode_fixup = cdv_intel_crtc_mode_fixup,
.mode_set = cdv_intel_crtc_mode_set,
.mode_set_base = cdv_intel_pipe_set_base,
.prepare = cdv_intel_crtc_prepare,
.commit = cdv_intel_crtc_commit,
}

Definition at line 1753 of file cdv_intel_display.c.