Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
stb6100.h File Reference
#include <linux/dvb/frontend.h>
#include "dvb_frontend.h"

Go to the source code of this file.

Data Structures

struct  stb6100_config
 
struct  stb6100_state
 

Macros

#define STB6100_LD   0x00
 
#define STB6100_LD_LOCK   (1 << 0)
 
#define STB6100_VCO   0x01
 
#define STB6100_VCO_OSCH   (0x01 << 7)
 
#define STB6100_VCO_OSCH_SHIFT   7
 
#define STB6100_VCO_OCK   (0x03 << 5)
 
#define STB6100_VCO_OCK_SHIFT   5
 
#define STB6100_VCO_ODIV   (0x01 << 4)
 
#define STB6100_VCO_ODIV_SHIFT   4
 
#define STB6100_VCO_OSM   (0x0f << 0)
 
#define STB6100_NI   0x02
 
#define STB6100_NF_LSB   0x03
 
#define STB6100_K   0x04
 
#define STB6100_K_PSD2   (0x01 << 2)
 
#define STB6100_K_PSD2_SHIFT   2
 
#define STB6100_K_NF_MSB   (0x03 << 0)
 
#define STB6100_G   0x05
 
#define STB6100_G_G   (0x0f << 0)
 
#define STB6100_G_GCT   (0x07 << 5)
 
#define STB6100_F   0x06
 
#define STB6100_F_F   (0x1f << 0)
 
#define STB6100_DLB   0x07
 
#define STB6100_TEST1   0x08
 
#define STB6100_FCCK   0x09
 
#define STB6100_FCCK_FCCK   (0x01 << 6)
 
#define STB6100_LPEN   0x0a
 
#define STB6100_LPEN_LPEN   (0x01 << 4)
 
#define STB6100_LPEN_SYNP   (0x01 << 5)
 
#define STB6100_LPEN_OSCP   (0x01 << 6)
 
#define STB6100_LPEN_BEN   (0x01 << 7)
 
#define STB6100_TEST3   0x0b
 
#define STB6100_NUMREGS   0x0c
 
#define INRANGE(val, x, y)
 
#define CHKRANGE(val, x, y)   (((val >= x) && (val < y)) ? 1 : 0)
 

Macro Definition Documentation

#define CHKRANGE (   val,
  x,
  y 
)    (((val >= x) && (val < y)) ? 1 : 0)

Definition at line 76 of file stb6100.h.

#define INRANGE (   val,
  x,
  y 
)
Value:
(((x <= val) && (val <= y)) || \
((y <= val) && (val <= x)) ? 1 : 0)

Definition at line 73 of file stb6100.h.

#define STB6100_DLB   0x07

Definition at line 55 of file stb6100.h.

#define STB6100_F   0x06

Definition at line 52 of file stb6100.h.

#define STB6100_F_F   (0x1f << 0)

Definition at line 53 of file stb6100.h.

#define STB6100_FCCK   0x09

Definition at line 59 of file stb6100.h.

#define STB6100_FCCK_FCCK   (0x01 << 6)

Definition at line 60 of file stb6100.h.

#define STB6100_G   0x05

Definition at line 48 of file stb6100.h.

#define STB6100_G_G   (0x0f << 0)

Definition at line 49 of file stb6100.h.

#define STB6100_G_GCT   (0x07 << 5)

Definition at line 50 of file stb6100.h.

#define STB6100_K   0x04

Definition at line 43 of file stb6100.h.

#define STB6100_K_NF_MSB   (0x03 << 0)

Definition at line 46 of file stb6100.h.

#define STB6100_K_PSD2   (0x01 << 2)

Definition at line 44 of file stb6100.h.

#define STB6100_K_PSD2_SHIFT   2

Definition at line 45 of file stb6100.h.

#define STB6100_LD   0x00

Definition at line 28 of file stb6100.h.

#define STB6100_LD_LOCK   (1 << 0)

Definition at line 29 of file stb6100.h.

#define STB6100_LPEN   0x0a

Definition at line 62 of file stb6100.h.

#define STB6100_LPEN_BEN   (0x01 << 7)

Definition at line 66 of file stb6100.h.

#define STB6100_LPEN_LPEN   (0x01 << 4)

Definition at line 63 of file stb6100.h.

#define STB6100_LPEN_OSCP   (0x01 << 6)

Definition at line 65 of file stb6100.h.

#define STB6100_LPEN_SYNP   (0x01 << 5)

Definition at line 64 of file stb6100.h.

#define STB6100_NF_LSB   0x03

Definition at line 41 of file stb6100.h.

#define STB6100_NI   0x02

Definition at line 40 of file stb6100.h.

#define STB6100_NUMREGS   0x0c

Definition at line 70 of file stb6100.h.

#define STB6100_TEST1   0x08

Definition at line 57 of file stb6100.h.

#define STB6100_TEST3   0x0b

Definition at line 68 of file stb6100.h.

#define STB6100_VCO   0x01

Definition at line 31 of file stb6100.h.

#define STB6100_VCO_OCK   (0x03 << 5)

Definition at line 34 of file stb6100.h.

#define STB6100_VCO_OCK_SHIFT   5

Definition at line 35 of file stb6100.h.

#define STB6100_VCO_ODIV   (0x01 << 4)

Definition at line 36 of file stb6100.h.

#define STB6100_VCO_ODIV_SHIFT   4

Definition at line 37 of file stb6100.h.

#define STB6100_VCO_OSCH   (0x01 << 7)

Definition at line 32 of file stb6100.h.

#define STB6100_VCO_OSCH_SHIFT   7

Definition at line 33 of file stb6100.h.

#define STB6100_VCO_OSM   (0x0f << 0)

Definition at line 38 of file stb6100.h.