Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
cpld.c File Reference
#include <linux/delay.h>
#include "2t3e3.h"
#include "ctrl.h"

Go to the source code of this file.

Macros

#define bootrom_set_bit(sc, reg, bit)
 
#define bootrom_clear_bit(sc, reg, bit)
 

Functions

void cpld_init (struct channel *sc)
 
void cpld_start_intr (struct channel *sc)
 
void cpld_stop_intr (struct channel *sc)
 
void cpld_set_frame_mode (struct channel *sc, u32 mode)
 
void cpld_set_frame_type (struct channel *sc, u32 type)
 
void cpld_set_scrambler (struct channel *sc, u32 mode)
 
void cpld_set_crc (struct channel *sc, u32 crc)
 
void cpld_select_panel (struct channel *sc, u32 panel)
 
void cpld_set_clock (struct channel *sc, u32 mode)
 
void cpld_set_pad_count (struct channel *sc, u32 count)
 
void cpld_LOS_update (struct channel *sc)
 
void cpld_set_fractional_mode (struct channel *sc, u32 mode, u32 start, u32 stop)
 

Macro Definition Documentation

#define bootrom_clear_bit (   sc,
  reg,
  bit 
)
Value:
bootrom_read((sc), (reg)) & ~(bit))

Definition at line 21 of file cpld.c.

#define bootrom_set_bit (   sc,
  reg,
  bit 
)
Value:
bootrom_read((sc), (reg)) | (bit))

Definition at line 17 of file cpld.c.

Function Documentation

void cpld_init ( struct channel sc)

Definition at line 41 of file cpld.c.

void cpld_LOS_update ( struct channel sc)

Definition at line 294 of file cpld.c.

void cpld_select_panel ( struct channel sc,
u32  panel 
)

Definition at line 220 of file cpld.c.

void cpld_set_clock ( struct channel sc,
u32  mode 
)

Definition at line 243 of file cpld.c.

void cpld_set_crc ( struct channel sc,
u32  crc 
)

Definition at line 198 of file cpld.c.

void cpld_set_fractional_mode ( struct channel sc,
u32  mode,
u32  start,
u32  stop 
)

Definition at line 311 of file cpld.c.

void cpld_set_frame_mode ( struct channel sc,
u32  mode 
)

Definition at line 115 of file cpld.c.

void cpld_set_frame_type ( struct channel sc,
u32  type 
)

Definition at line 150 of file cpld.c.

void cpld_set_pad_count ( struct channel sc,
u32  count 
)

Definition at line 264 of file cpld.c.

void cpld_set_scrambler ( struct channel sc,
u32  mode 
)

Definition at line 168 of file cpld.c.

void cpld_start_intr ( struct channel sc)

Definition at line 96 of file cpld.c.

void cpld_stop_intr ( struct channel sc)

Definition at line 106 of file cpld.c.