Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
dibx000_common.c File Reference
#include <linux/i2c.h>
#include <linux/mutex.h>
#include <linux/module.h>
#include "dibx000_common.h"

Go to the source code of this file.

Macros

#define dprintk(args...)   do { if (debug) { printk(KERN_DEBUG "DiBX000: "); printk(args); printk("\n"); } } while (0)
 

Functions

 module_param (debug, int, 0644)
 
 MODULE_PARM_DESC (debug,"turn on debugging (default: 0)")
 
int dibx000_i2c_set_speed (struct i2c_adapter *i2c_adap, u16 speed)
 
 EXPORT_SYMBOL (dibx000_i2c_set_speed)
 
struct i2c_adapterdibx000_get_i2c_adapter (struct dibx000_i2c_master *mst, enum dibx000_i2c_interface intf, int gating)
 
 EXPORT_SYMBOL (dibx000_get_i2c_adapter)
 
void dibx000_reset_i2c_master (struct dibx000_i2c_master *mst)
 
 EXPORT_SYMBOL (dibx000_reset_i2c_master)
 
int dibx000_init_i2c_master (struct dibx000_i2c_master *mst, u16 device_rev, struct i2c_adapter *i2c_adap, u8 i2c_addr)
 
 EXPORT_SYMBOL (dibx000_init_i2c_master)
 
void dibx000_exit_i2c_master (struct dibx000_i2c_master *mst)
 
 EXPORT_SYMBOL (dibx000_exit_i2c_master)
 
u32 systime (void)
 
 EXPORT_SYMBOL (systime)
 
 MODULE_AUTHOR ("Patrick Boettcher <[email protected]>")
 
 MODULE_DESCRIPTION ("Common function the DiBcom demodulator family")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define dprintk (   args...)    do { if (debug) { printk(KERN_DEBUG "DiBX000: "); printk(args); printk("\n"); } } while (0)

Definition at line 11 of file dibx000_common.c.

Function Documentation

void dibx000_exit_i2c_master ( struct dibx000_i2c_master mst)

Definition at line 494 of file dibx000_common.c.

struct i2c_adapter* dibx000_get_i2c_adapter ( struct dibx000_i2c_master mst,
enum dibx000_i2c_interface  intf,
int  gating 
)
read

Definition at line 370 of file dibx000_common.c.

int dibx000_i2c_set_speed ( struct i2c_adapter i2c_adap,
u16  speed 
)

Definition at line 175 of file dibx000_common.c.

int dibx000_init_i2c_master ( struct dibx000_i2c_master mst,
u16  device_rev,
struct i2c_adapter i2c_adap,
u8  i2c_addr 
)

Definition at line 430 of file dibx000_common.c.

void dibx000_reset_i2c_master ( struct dibx000_i2c_master mst)

Definition at line 403 of file dibx000_common.c.

EXPORT_SYMBOL ( dibx000_i2c_set_speed  )
EXPORT_SYMBOL ( dibx000_get_i2c_adapter  )
EXPORT_SYMBOL ( dibx000_reset_i2c_master  )
EXPORT_SYMBOL ( dibx000_init_i2c_master  )
EXPORT_SYMBOL ( dibx000_exit_i2c_master  )
EXPORT_SYMBOL ( systime  )
MODULE_AUTHOR ( "Patrick Boettcher <[email protected]>"  )
MODULE_DESCRIPTION ( "Common function the DiBcom demodulator family )
MODULE_LICENSE ( "GPL"  )
module_param ( debug  ,
int  ,
0644   
)
MODULE_PARM_DESC ( debug  ,
"turn on debugging (default: 0)"   
)
u32 systime ( void  )

Definition at line 504 of file dibx000_common.c.