Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
tef6862.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/interrupt.h>
#include <linux/i2c.h>
#include <linux/slab.h>
#include <media/v4l2-ioctl.h>
#include <media/v4l2-device.h>
#include <media/v4l2-chip-ident.h>

Go to the source code of this file.

Data Structures

struct  tef6862_state
 

Macros

#define DRIVER_NAME   "tef6862"
 
#define FREQ_MUL   16000
 
#define TEF6862_LO_FREQ   (875 * FREQ_MUL / 10)
 
#define TEF6862_HI_FREQ   (108 * FREQ_MUL)
 
#define WM_SUB_BANDWIDTH   0x0
 
#define WM_SUB_PLLM   0x1
 
#define WM_SUB_PLLL   0x2
 
#define WM_SUB_DAA   0x3
 
#define WM_SUB_AGC   0x4
 
#define WM_SUB_BAND   0x5
 
#define WM_SUB_CONTROL   0x6
 
#define WM_SUB_LEVEL   0x7
 
#define WM_SUB_IFCF   0x8
 
#define WM_SUB_IFCAP   0x9
 
#define WM_SUB_ACD   0xA
 
#define WM_SUB_TEST   0xF
 
#define MODE_BUFFER   0x0
 
#define MODE_PRESET   0x1
 
#define MODE_SEARCH   0x2
 
#define MODE_AF_UPDATE   0x3
 
#define MODE_JUMP   0x4
 
#define MODE_CHECK   0x5
 
#define MODE_LOAD   0x6
 
#define MODE_END   0x7
 
#define MODE_SHIFT   5
 

Functions

 MODULE_DEVICE_TABLE (i2c, tef6862_id)
 
 module_i2c_driver (tef6862_driver)
 
 MODULE_DESCRIPTION ("TEF6862 Car Radio Enhanced Selectivity Tuner")
 
 MODULE_AUTHOR ("Mocean Laboratories")
 
 MODULE_LICENSE ("GPL v2")
 

Macro Definition Documentation

#define DRIVER_NAME   "tef6862"

Definition at line 30 of file tef6862.c.

#define FREQ_MUL   16000

Definition at line 32 of file tef6862.c.

#define MODE_AF_UPDATE   0x3

Definition at line 55 of file tef6862.c.

#define MODE_BUFFER   0x0

Definition at line 52 of file tef6862.c.

#define MODE_CHECK   0x5

Definition at line 57 of file tef6862.c.

#define MODE_END   0x7

Definition at line 59 of file tef6862.c.

#define MODE_JUMP   0x4

Definition at line 56 of file tef6862.c.

#define MODE_LOAD   0x6

Definition at line 58 of file tef6862.c.

#define MODE_PRESET   0x1

Definition at line 53 of file tef6862.c.

#define MODE_SEARCH   0x2

Definition at line 54 of file tef6862.c.

#define MODE_SHIFT   5

Definition at line 60 of file tef6862.c.

#define TEF6862_HI_FREQ   (108 * FREQ_MUL)

Definition at line 35 of file tef6862.c.

#define TEF6862_LO_FREQ   (875 * FREQ_MUL / 10)

Definition at line 34 of file tef6862.c.

#define WM_SUB_ACD   0xA

Definition at line 48 of file tef6862.c.

#define WM_SUB_AGC   0x4

Definition at line 42 of file tef6862.c.

#define WM_SUB_BAND   0x5

Definition at line 43 of file tef6862.c.

#define WM_SUB_BANDWIDTH   0x0

Definition at line 38 of file tef6862.c.

#define WM_SUB_CONTROL   0x6

Definition at line 44 of file tef6862.c.

#define WM_SUB_DAA   0x3

Definition at line 41 of file tef6862.c.

#define WM_SUB_IFCAP   0x9

Definition at line 47 of file tef6862.c.

#define WM_SUB_IFCF   0x8

Definition at line 46 of file tef6862.c.

#define WM_SUB_LEVEL   0x7

Definition at line 45 of file tef6862.c.

#define WM_SUB_PLLL   0x2

Definition at line 40 of file tef6862.c.

#define WM_SUB_PLLM   0x1

Definition at line 39 of file tef6862.c.

#define WM_SUB_TEST   0xF

Definition at line 49 of file tef6862.c.

Function Documentation

MODULE_AUTHOR ( "Mocean Laboratories"  )
MODULE_DESCRIPTION ( "TEF6862 Car Radio Enhanced Selectivity Tuner"  )
MODULE_DEVICE_TABLE ( i2c  ,
tef6862_id   
)
module_i2c_driver ( tef6862_driver  )
MODULE_LICENSE ( "GPL v2 )