Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
sil164_drv.c File Reference
#include <linux/module.h>
#include <drm/drmP.h>
#include <drm/drm_crtc_helper.h>
#include <drm/drm_encoder_slave.h>
#include <drm/i2c/sil164.h>

Go to the source code of this file.

Data Structures

struct  sil164_priv
 

Macros

#define to_sil164_priv(x)   ((struct sil164_priv *)to_encoder_slave(x)->slave_priv)
 
#define sil164_dbg(client, format,...)
 
#define sil164_info(client, format,...)   dev_info(&client->dev, format, __VA_ARGS__)
 
#define sil164_err(client, format,...)   dev_err(&client->dev, format, __VA_ARGS__)
 
#define SIL164_I2C_ADDR_MASTER   0x38
 
#define SIL164_I2C_ADDR_SLAVE   0x39
 
#define SIL164_VENDOR_LO   0x0
 
#define SIL164_VENDOR_HI   0x1
 
#define SIL164_DEVICE_LO   0x2
 
#define SIL164_DEVICE_HI   0x3
 
#define SIL164_REVISION   0x4
 
#define SIL164_FREQ_MIN   0x6
 
#define SIL164_FREQ_MAX   0x7
 
#define SIL164_CONTROL0   0x8
 
#define SIL164_CONTROL0_POWER_ON   0x01
 
#define SIL164_CONTROL0_EDGE_RISING   0x02
 
#define SIL164_CONTROL0_INPUT_24BIT   0x04
 
#define SIL164_CONTROL0_DUAL_EDGE   0x08
 
#define SIL164_CONTROL0_HSYNC_ON   0x10
 
#define SIL164_CONTROL0_VSYNC_ON   0x20
 
#define SIL164_DETECT   0x9
 
#define SIL164_DETECT_INTR_STAT   0x01
 
#define SIL164_DETECT_HOTPLUG_STAT   0x02
 
#define SIL164_DETECT_RECEIVER_STAT   0x04
 
#define SIL164_DETECT_INTR_MODE_RECEIVER   0x00
 
#define SIL164_DETECT_INTR_MODE_HOTPLUG   0x08
 
#define SIL164_DETECT_OUT_MODE_HIGH   0x00
 
#define SIL164_DETECT_OUT_MODE_INTR   0x10
 
#define SIL164_DETECT_OUT_MODE_RECEIVER   0x20
 
#define SIL164_DETECT_OUT_MODE_HOTPLUG   0x30
 
#define SIL164_DETECT_VSWING_STAT   0x80
 
#define SIL164_CONTROL1   0xa
 
#define SIL164_CONTROL1_DESKEW_ENABLE   0x10
 
#define SIL164_CONTROL1_DESKEW_INCR_SHIFT   5
 
#define SIL164_GPIO   0xb
 
#define SIL164_CONTROL2   0xc
 
#define SIL164_CONTROL2_FILTER_ENABLE   0x01
 
#define SIL164_CONTROL2_FILTER_SETTING_SHIFT   1
 
#define SIL164_CONTROL2_DUALLINK_MASTER   0x40
 
#define SIL164_CONTROL2_SYNC_CONT   0x80
 
#define SIL164_DUALLINK   0xd
 
#define SIL164_DUALLINK_ENABLE   0x10
 
#define SIL164_DUALLINK_SKEW_SHIFT   5
 
#define SIL164_PLLZONE   0xe
 
#define SIL164_PLLZONE_STAT   0x08
 
#define SIL164_PLLZONE_FORCE_ON   0x10
 
#define SIL164_PLLZONE_FORCE_HIGH   0x20
 

Functions

 MODULE_DEVICE_TABLE (i2c, sil164_ids)
 
 MODULE_AUTHOR ("Francisco Jerez <[email protected]>")
 
 MODULE_DESCRIPTION ("Silicon Image sil164 TMDS transmitter driver")
 
 MODULE_LICENSE ("GPL and additional rights")
 
 module_init (sil164_init)
 
 module_exit (sil164_exit)
 

Macro Definition Documentation

#define SIL164_CONTROL0   0x8

Definition at line 67 of file sil164_drv.c.

#define SIL164_CONTROL0_DUAL_EDGE   0x08

Definition at line 71 of file sil164_drv.c.

#define SIL164_CONTROL0_EDGE_RISING   0x02

Definition at line 69 of file sil164_drv.c.

#define SIL164_CONTROL0_HSYNC_ON   0x10

Definition at line 72 of file sil164_drv.c.

#define SIL164_CONTROL0_INPUT_24BIT   0x04

Definition at line 70 of file sil164_drv.c.

#define SIL164_CONTROL0_POWER_ON   0x01

Definition at line 68 of file sil164_drv.c.

#define SIL164_CONTROL0_VSYNC_ON   0x20

Definition at line 73 of file sil164_drv.c.

#define SIL164_CONTROL1   0xa

Definition at line 85 of file sil164_drv.c.

#define SIL164_CONTROL1_DESKEW_ENABLE   0x10

Definition at line 86 of file sil164_drv.c.

#define SIL164_CONTROL1_DESKEW_INCR_SHIFT   5

Definition at line 87 of file sil164_drv.c.

#define SIL164_CONTROL2   0xc

Definition at line 89 of file sil164_drv.c.

#define SIL164_CONTROL2_DUALLINK_MASTER   0x40

Definition at line 92 of file sil164_drv.c.

#define SIL164_CONTROL2_FILTER_ENABLE   0x01

Definition at line 90 of file sil164_drv.c.

#define SIL164_CONTROL2_FILTER_SETTING_SHIFT   1

Definition at line 91 of file sil164_drv.c.

#define SIL164_CONTROL2_SYNC_CONT   0x80

Definition at line 93 of file sil164_drv.c.

#define sil164_dbg (   client,
  format,
  ... 
)
Value:
do { \
if (drm_debug & DRM_UT_KMS) \
dev_printk(KERN_DEBUG, &client->dev, \
"%s: " format, __func__, ## __VA_ARGS__); \
} while (0)

Definition at line 45 of file sil164_drv.c.

#define SIL164_DETECT   0x9

Definition at line 74 of file sil164_drv.c.

#define SIL164_DETECT_HOTPLUG_STAT   0x02

Definition at line 76 of file sil164_drv.c.

#define SIL164_DETECT_INTR_MODE_HOTPLUG   0x08

Definition at line 79 of file sil164_drv.c.

#define SIL164_DETECT_INTR_MODE_RECEIVER   0x00

Definition at line 78 of file sil164_drv.c.

#define SIL164_DETECT_INTR_STAT   0x01

Definition at line 75 of file sil164_drv.c.

#define SIL164_DETECT_OUT_MODE_HIGH   0x00

Definition at line 80 of file sil164_drv.c.

#define SIL164_DETECT_OUT_MODE_HOTPLUG   0x30

Definition at line 83 of file sil164_drv.c.

#define SIL164_DETECT_OUT_MODE_INTR   0x10

Definition at line 81 of file sil164_drv.c.

#define SIL164_DETECT_OUT_MODE_RECEIVER   0x20

Definition at line 82 of file sil164_drv.c.

#define SIL164_DETECT_RECEIVER_STAT   0x04

Definition at line 77 of file sil164_drv.c.

#define SIL164_DETECT_VSWING_STAT   0x80

Definition at line 84 of file sil164_drv.c.

#define SIL164_DEVICE_HI   0x3

Definition at line 63 of file sil164_drv.c.

#define SIL164_DEVICE_LO   0x2

Definition at line 62 of file sil164_drv.c.

#define SIL164_DUALLINK   0xd

Definition at line 94 of file sil164_drv.c.

#define SIL164_DUALLINK_ENABLE   0x10

Definition at line 95 of file sil164_drv.c.

#define SIL164_DUALLINK_SKEW_SHIFT   5

Definition at line 96 of file sil164_drv.c.

#define sil164_err (   client,
  format,
  ... 
)    dev_err(&client->dev, format, __VA_ARGS__)

Definition at line 52 of file sil164_drv.c.

#define SIL164_FREQ_MAX   0x7

Definition at line 66 of file sil164_drv.c.

#define SIL164_FREQ_MIN   0x6

Definition at line 65 of file sil164_drv.c.

#define SIL164_GPIO   0xb

Definition at line 88 of file sil164_drv.c.

#define SIL164_I2C_ADDR_MASTER   0x38

Definition at line 55 of file sil164_drv.c.

#define SIL164_I2C_ADDR_SLAVE   0x39

Definition at line 56 of file sil164_drv.c.

#define sil164_info (   client,
  format,
  ... 
)    dev_info(&client->dev, format, __VA_ARGS__)

Definition at line 50 of file sil164_drv.c.

#define SIL164_PLLZONE   0xe

Definition at line 97 of file sil164_drv.c.

#define SIL164_PLLZONE_FORCE_HIGH   0x20

Definition at line 100 of file sil164_drv.c.

#define SIL164_PLLZONE_FORCE_ON   0x10

Definition at line 99 of file sil164_drv.c.

#define SIL164_PLLZONE_STAT   0x08

Definition at line 98 of file sil164_drv.c.

#define SIL164_REVISION   0x4

Definition at line 64 of file sil164_drv.c.

#define SIL164_VENDOR_HI   0x1

Definition at line 61 of file sil164_drv.c.

#define SIL164_VENDOR_LO   0x0

Definition at line 60 of file sil164_drv.c.

#define to_sil164_priv (   x)    ((struct sil164_priv *)to_encoder_slave(x)->slave_priv)

Definition at line 42 of file sil164_drv.c.

Function Documentation

MODULE_AUTHOR ( "Francisco Jerez <[email protected]>"  )
MODULE_DESCRIPTION ( "Silicon Image sil164 TMDS transmitter driver )
MODULE_DEVICE_TABLE ( i2c  ,
sil164_ids   
)
module_exit ( sil164_exit  )
module_init ( sil164_init  )
MODULE_LICENSE ( "GPL and additional rights"  )