Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
savagefb-i2c.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/delay.h>
#include <linux/gfp.h>
#include <linux/pci.h>
#include <linux/fb.h>
#include <asm/io.h>
#include "savagefb.h"

Go to the source code of this file.

Macros

#define SAVAGE_DDC   0x50
 
#define VGA_CR_IX   0x3d4
 
#define VGA_CR_DATA   0x3d5
 
#define CR_SERIAL1   0xa0 /* I2C serial communications interface */
 
#define MM_SERIAL1   0xff20
 
#define CR_SERIAL2   0xb1 /* DDC2 monitor communications interface */
 
#define PROSAVAGE_I2C_ENAB   0x10
 
#define PROSAVAGE_I2C_SCL_OUT   0x01
 
#define PROSAVAGE_I2C_SDA_OUT   0x02
 
#define PROSAVAGE_I2C_SCL_IN   0x04
 
#define PROSAVAGE_I2C_SDA_IN   0x08
 
#define SAVAGE4_I2C_ENAB   0x00000020
 
#define SAVAGE4_I2C_SCL_OUT   0x00000001
 
#define SAVAGE4_I2C_SDA_OUT   0x00000002
 
#define SAVAGE4_I2C_SCL_IN   0x00000008
 
#define SAVAGE4_I2C_SDA_IN   0x00000010
 

Functions

void savagefb_create_i2c_busses (struct fb_info *info)
 
void savagefb_delete_i2c_busses (struct fb_info *info)
 
int savagefb_probe_i2c_connector (struct fb_info *info, u8 **out_edid)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define CR_SERIAL1   0xa0 /* I2C serial communications interface */

Definition at line 28 of file savagefb-i2c.c.

#define CR_SERIAL2   0xb1 /* DDC2 monitor communications interface */

Definition at line 30 of file savagefb-i2c.c.

#define MM_SERIAL1   0xff20

Definition at line 29 of file savagefb-i2c.c.

#define PROSAVAGE_I2C_ENAB   0x10

Definition at line 33 of file savagefb-i2c.c.

#define PROSAVAGE_I2C_SCL_IN   0x04

Definition at line 36 of file savagefb-i2c.c.

#define PROSAVAGE_I2C_SCL_OUT   0x01

Definition at line 34 of file savagefb-i2c.c.

#define PROSAVAGE_I2C_SDA_IN   0x08

Definition at line 37 of file savagefb-i2c.c.

#define PROSAVAGE_I2C_SDA_OUT   0x02

Definition at line 35 of file savagefb-i2c.c.

#define SAVAGE4_I2C_ENAB   0x00000020

Definition at line 39 of file savagefb-i2c.c.

#define SAVAGE4_I2C_SCL_IN   0x00000008

Definition at line 42 of file savagefb-i2c.c.

#define SAVAGE4_I2C_SCL_OUT   0x00000001

Definition at line 40 of file savagefb-i2c.c.

#define SAVAGE4_I2C_SDA_IN   0x00000010

Definition at line 43 of file savagefb-i2c.c.

#define SAVAGE4_I2C_SDA_OUT   0x00000002

Definition at line 41 of file savagefb-i2c.c.

#define SAVAGE_DDC   0x50

Definition at line 23 of file savagefb-i2c.c.

#define VGA_CR_DATA   0x3d5

Definition at line 26 of file savagefb-i2c.c.

#define VGA_CR_IX   0x3d4

Definition at line 25 of file savagefb-i2c.c.

Function Documentation

MODULE_LICENSE ( "GPL"  )
void savagefb_create_i2c_busses ( struct fb_info info)

Definition at line 167 of file savagefb-i2c.c.

void savagefb_delete_i2c_busses ( struct fb_info info)

Definition at line 208 of file savagefb-i2c.c.

int savagefb_probe_i2c_connector ( struct fb_info info,
u8 **  out_edid 
)

Definition at line 218 of file savagefb-i2c.c.