Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Typedefs | Functions
quicc_simple.h File Reference

Go to the source code of this file.

Macros

#define GLB_SCC_0   0
 
#define GLB_SCC_1   1
 
#define GLB_SCC_2   2
 
#define GLB_SCC_3   3
 

Typedefs

typedef voidint_routine )(unsigned short interrupt_event)
 
typedef int_routineint_routine_ptr
 
typedef void *( alloc_routine )(int length)
 
typedef voidfree_routine )(int scc_num, int channel_num, void *buf)
 
typedef voidstore_rx_buffer_routine )(int scc_num, int channel_num, void *buff, int length)
 
typedef inthandle_tx_error_routine )(int scc_num, int channel_num, QUICC_BD *tbd)
 
typedef voidhandle_rx_error_routine )(int scc_num, int channel_num, QUICC_BD *rbd)
 
typedef voidhandle_lost_error_routine )(int scc_num, int channel_num)
 
typedef voidhandle_glob_overrun_routine )(int scc_number)
 
typedef voidhandle_glob_underrun_routine )(int scc_number)
 
typedef voidglob_intr_q_overflow_routine )(int scc_number)
 

Functions

void quicc_issue_cmd (unsigned short cmd, int scc_num)
 
void quicc_init (void)
 
void quicc_scc_init (int scc_number, int number_of_rx_buf, int number_of_tx_buf)
 
void quicc_smc_init (int smc_number, int number_of_rx_buf, int number_of_tx_buf)
 
void quicc_scc_start (int scc_num)
 
void quicc_scc_loopback (int scc_num)
 
unsigned short IntrDis (void)
 
void IntrEna (unsigned short old_sr)
 
void print_rbd (int scc_num)
 
void print_tbd (int scc_num)
 

Macro Definition Documentation

#define GLB_SCC_0   0

Definition at line 15 of file quicc_simple.h.

#define GLB_SCC_1   1

Definition at line 16 of file quicc_simple.h.

#define GLB_SCC_2   2

Definition at line 17 of file quicc_simple.h.

#define GLB_SCC_3   3

Definition at line 18 of file quicc_simple.h.

Typedef Documentation

typedef void*( alloc_routine)(int length)

Definition at line 22 of file quicc_simple.h.

typedef void( free_routine)(int scc_num, int channel_num, void *buf)

Definition at line 23 of file quicc_simple.h.

typedef void( glob_intr_q_overflow_routine)(int scc_number)

Definition at line 32 of file quicc_simple.h.

typedef void( handle_glob_overrun_routine)(int scc_number)

Definition at line 30 of file quicc_simple.h.

typedef void( handle_glob_underrun_routine)(int scc_number)

Definition at line 31 of file quicc_simple.h.

typedef void( handle_lost_error_routine)(int scc_num, int channel_num)

Definition at line 27 of file quicc_simple.h.

typedef void( handle_rx_error_routine)(int scc_num, int channel_num, QUICC_BD *rbd)

Definition at line 26 of file quicc_simple.h.

typedef int( handle_tx_error_routine)(int scc_num, int channel_num, QUICC_BD *tbd)

Definition at line 25 of file quicc_simple.h.

typedef void( int_routine)(unsigned short interrupt_event)

Definition at line 20 of file quicc_simple.h.

Definition at line 21 of file quicc_simple.h.

typedef void( store_rx_buffer_routine)(int scc_num, int channel_num, void *buff, int length)

Definition at line 24 of file quicc_simple.h.

Function Documentation

unsigned short IntrDis ( void  )
void IntrEna ( unsigned short  old_sr)
void print_rbd ( int  scc_num)
void print_tbd ( int  scc_num)
void quicc_init ( void  )
void quicc_issue_cmd ( unsigned short  cmd,
int  scc_num 
)
void quicc_scc_init ( int  scc_number,
int  number_of_rx_buf,
int  number_of_tx_buf 
)
void quicc_scc_loopback ( int  scc_num)
void quicc_scc_start ( int  scc_num)
void quicc_smc_init ( int  smc_number,
int  number_of_rx_buf,
int  number_of_tx_buf 
)