Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions
ucc.h File Reference
#include <asm/immap_qe.h>
#include <asm/qe.h>

Go to the source code of this file.

Macros

#define STATISTICS
 
#define UCC_MAX_NUM   8
 

Enumerations

enum  ucc_speed_type { UCC_SPEED_TYPE_FAST = UCC_GUEMR_MODE_FAST_RX | UCC_GUEMR_MODE_FAST_TX, UCC_SPEED_TYPE_SLOW = UCC_GUEMR_MODE_SLOW_RX | UCC_GUEMR_MODE_SLOW_TX }
 

Functions

int ucc_set_type (unsigned int ucc_num, enum ucc_speed_type speed)
 
int ucc_set_qe_mux_mii_mng (unsigned int ucc_num)
 
int ucc_set_qe_mux_rxtx (unsigned int ucc_num, enum qe_clock clock, enum comm_dir mode)
 
int ucc_mux_set_grant_tsa_bkpt (unsigned int ucc_num, int set, u32 mask)
 

Macro Definition Documentation

#define STATISTICS

Definition at line 21 of file ucc.h.

#define UCC_MAX_NUM   8

Definition at line 23 of file ucc.h.

Enumeration Type Documentation

Enumerator:
UCC_SPEED_TYPE_FAST 
UCC_SPEED_TYPE_SLOW 

Definition at line 27 of file ucc.h.

Function Documentation

int ucc_mux_set_grant_tsa_bkpt ( unsigned int  ucc_num,
int  set,
u32  mask 
)

Definition at line 98 of file ucc.c.

int ucc_set_qe_mux_mii_mng ( unsigned int  ucc_num)

Definition at line 29 of file ucc.c.

int ucc_set_qe_mux_rxtx ( unsigned int  ucc_num,
enum qe_clock  clock,
enum comm_dir  mode 
)

Definition at line 118 of file ucc.c.

int ucc_set_type ( unsigned int  ucc_num,
enum ucc_speed_type  speed 
)

Definition at line 55 of file ucc.c.