Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
mddi.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/dma-mapping.h>
#include <linux/interrupt.h>
#include <linux/platform_device.h>
#include <linux/delay.h>
#include <linux/gfp.h>
#include <linux/spinlock.h>
#include <linux/clk.h>
#include <linux/io.h>
#include <linux/sched.h>
#include <linux/platform_data/video-msm_fb.h>
#include "mddi_hw.h"

Go to the source code of this file.

Data Structures

union  mddi_rev
 
struct  reg_read_info
 
struct  mddi_info
 

Macros

#define FLAG_DISABLE_HIBERNATION   0x0001
 
#define FLAG_HAVE_CAPS   0x0002
 
#define FLAG_HAS_VSYNC_IRQ   0x0004
 
#define FLAG_HAVE_STATUS   0x0008
 
#define CMD_GET_CLIENT_CAP   0x0601
 
#define CMD_GET_CLIENT_STATUS   0x0602
 
#define mddi_readl(r)   readl(mddi->base + (MDDI_##r))
 
#define mddi_writel(v, r)   writel((v), mddi->base + (MDDI_##r))
 

Functions

void mddi_activate_link (struct msm_mddi_client_data *cdata)
 
void mddi_set_auto_hibernate (struct msm_mddi_client_data *cdata, int on)
 
int mddi_check_status (struct mddi_info *mddi)
 
void mddi_remote_write (struct msm_mddi_client_data *cdata, uint32_t val, uint32_t reg)
 
uint32_t mddi_remote_read (struct msm_mddi_client_data *cdata, uint32_t reg)
 
 module_init (_mddi_init)
 

Variables

union mddi_rev __attribute__
 

Macro Definition Documentation

#define CMD_GET_CLIENT_CAP   0x0601

Definition at line 37 of file mddi.c.

#define CMD_GET_CLIENT_STATUS   0x0602

Definition at line 38 of file mddi.c.

#define FLAG_DISABLE_HIBERNATION   0x0001

Definition at line 32 of file mddi.c.

#define FLAG_HAS_VSYNC_IRQ   0x0004

Definition at line 34 of file mddi.c.

#define FLAG_HAVE_CAPS   0x0002

Definition at line 33 of file mddi.c.

#define FLAG_HAVE_STATUS   0x0008

Definition at line 35 of file mddi.c.

#define mddi_readl (   r)    readl(mddi->base + (MDDI_##r))

Definition at line 96 of file mddi.c.

#define mddi_writel (   v,
  r 
)    writel((v), mddi->base + (MDDI_##r))

Definition at line 97 of file mddi.c.

Function Documentation

void mddi_activate_link ( struct msm_mddi_client_data cdata)

Definition at line 99 of file mddi.c.

int mddi_check_status ( struct mddi_info mddi)

Definition at line 471 of file mddi.c.

uint32_t mddi_remote_read ( struct msm_mddi_client_data cdata,
uint32_t  reg 
)

Definition at line 544 of file mddi.c.

void mddi_remote_write ( struct msm_mddi_client_data cdata,
uint32_t  val,
uint32_t  reg 
)

Definition at line 508 of file mddi.c.

void mddi_set_auto_hibernate ( struct msm_mddi_client_data cdata,
int  on 
)

Definition at line 332 of file mddi.c.

module_init ( _mddi_init  )

Variable Documentation