POK(kernelpart)
/home/jaouen/pok_official/pok/trunk/kernel/arch/sparc/leon3/cons.h File Reference

Go to the source code of this file.

Defines

#define UART_STATUS_DR   0x00000001
#define UART_STATUS_TSE   0x00000002
#define UART_STATUS_THE   0x00000004
#define UART_STATUS_BR   0x00000008
#define UART_STATUS_OE   0x00000010
#define UART_STATUS_PE   0x00000020
#define UART_STATUS_FE   0x00000040
#define UART_STATUS_ERR   0x00000078
#define UART_CTRL_RE   0x00000001
#define UART_CTRL_TE   0x00000002
#define UART_CTRL_RI   0x00000004
#define UART_CTRL_TI   0x00000008
#define UART_CTRL_PS   0x00000010
#define UART_CTRL_PE   0x00000020
#define UART_CTRL_FL   0x00000040
#define UART_CTRL_LB   0x00000080
#define UART_DATA_OFFSET   0x0
#define UART_STAT_OFFSET   0x4
#define UART_CTRL_OFFSET   0x8
#define UART_SCALER_OFFSET   0xc
#define UART1   0x80000100

Functions

int pok_cons_init (void)

Detailed Description

Author:
Fabien Chouteau

Definition in file cons.h.


Define Documentation

#define UART1   0x80000100

First Leon3 UART IO adress

Definition at line 48 of file cons.h.

#define UART_CTRL_FL   0x00000040

Flow control enable

Definition at line 40 of file cons.h.

#define UART_CTRL_LB   0x00000080

Loop Back enable

Definition at line 41 of file cons.h.

#define UART_CTRL_OFFSET   0x8

Control register offset

Definition at line 45 of file cons.h.

#define UART_CTRL_PE   0x00000020

Parity enable

Definition at line 39 of file cons.h.

#define UART_CTRL_PS   0x00000010

Parity select

Definition at line 38 of file cons.h.

#define UART_CTRL_RE   0x00000001

Receiver enable

Definition at line 34 of file cons.h.

#define UART_CTRL_RI   0x00000004

Receiver interrupt enable

Definition at line 36 of file cons.h.

#define UART_CTRL_TE   0x00000002

Transmitter enable

Definition at line 35 of file cons.h.

#define UART_CTRL_TI   0x00000008

Transmitter interrupt enable

Definition at line 37 of file cons.h.

#define UART_DATA_OFFSET   0x0

Data register offset

Definition at line 43 of file cons.h.

#define UART_SCALER_OFFSET   0xc

Scaler register offset

Definition at line 46 of file cons.h.

#define UART_STAT_OFFSET   0x4

Stat register offset

Definition at line 44 of file cons.h.

#define UART_STATUS_BR   0x00000008

Break Error

Definition at line 28 of file cons.h.

#define UART_STATUS_DR   0x00000001

Data Ready

Definition at line 25 of file cons.h.

#define UART_STATUS_ERR   0x00000078

Error Mask

Definition at line 32 of file cons.h.

#define UART_STATUS_FE   0x00000040

RX Framing Error

Definition at line 31 of file cons.h.

#define UART_STATUS_OE   0x00000010

RX Overrun Error

Definition at line 29 of file cons.h.

#define UART_STATUS_PE   0x00000020

RX Parity Error

Definition at line 30 of file cons.h.

#define UART_STATUS_THE   0x00000004

TX Hold Register Empty

Definition at line 27 of file cons.h.

#define UART_STATUS_TSE   0x00000002

TX Send Register Empty

Definition at line 26 of file cons.h.


Function Documentation

int pok_cons_init ( void  )

Definition at line 68 of file cons.c.

{
   return 0;
}