Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ugecon.c File Reference
#include <stddef.h>
#include "stdio.h"
#include "types.h"
#include "io.h"
#include "ops.h"

Go to the source code of this file.

Macros

#define EXI_CLK_32MHZ   5
 
#define EXI_CSR   0x00
 
#define EXI_CSR_CLKMASK   (0x7<<4)
 
#define EXI_CSR_CLK_32MHZ   (EXI_CLK_32MHZ<<4)
 
#define EXI_CSR_CSMASK   (0x7<<7)
 
#define EXI_CSR_CS_0   (0x1<<7) /* Chip Select 001 */
 
#define EXI_CR   0x0c
 
#define EXI_CR_TSTART   (1<<0)
 
#define EXI_CR_WRITE   (1<<2)
 
#define EXI_CR_READ_WRITE   (2<<2)
 
#define EXI_CR_TLEN(len)   (((len)-1)<<4)
 
#define EXI_DATA   0x10
 

Functions

void ug_console_write (const char *buf, int len)
 
voidug_probe (void)
 

Macro Definition Documentation

#define EXI_CLK_32MHZ   5

Definition at line 22 of file ugecon.c.

#define EXI_CR   0x0c

Definition at line 30 of file ugecon.c.

#define EXI_CR_READ_WRITE   (2<<2)

Definition at line 33 of file ugecon.c.

#define EXI_CR_TLEN (   len)    (((len)-1)<<4)

Definition at line 34 of file ugecon.c.

#define EXI_CR_TSTART   (1<<0)

Definition at line 31 of file ugecon.c.

#define EXI_CR_WRITE   (1<<2)

Definition at line 32 of file ugecon.c.

#define EXI_CSR   0x00

Definition at line 24 of file ugecon.c.

#define EXI_CSR_CLK_32MHZ   (EXI_CLK_32MHZ<<4)

Definition at line 26 of file ugecon.c.

#define EXI_CSR_CLKMASK   (0x7<<4)

Definition at line 25 of file ugecon.c.

#define EXI_CSR_CS_0   (0x1<<7) /* Chip Select 001 */

Definition at line 28 of file ugecon.c.

#define EXI_CSR_CSMASK   (0x7<<7)

Definition at line 27 of file ugecon.c.

#define EXI_DATA   0x10

Definition at line 36 of file ugecon.c.

Function Documentation

void ug_console_write ( const char buf,
int  len 
)

Definition at line 93 of file ugecon.c.

void* ug_probe ( void  )

Definition at line 128 of file ugecon.c.