Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
udbg_16550.c File Reference
#include <linux/types.h>
#include <asm/udbg.h>
#include <asm/io.h>
#include <asm/reg_a2.h>

Go to the source code of this file.

Data Structures

struct  NS16550
 

Macros

#define thr   rbr
 
#define iir   fcr
 
#define dll   rbr
 
#define dlm   ier
 
#define dlab   lcr
 
#define LSR_DR   0x01 /* Data ready */
 
#define LSR_OE   0x02 /* Overrun */
 
#define LSR_PE   0x04 /* Parity error */
 
#define LSR_FE   0x08 /* Framing error */
 
#define LSR_BI   0x10 /* Break */
 
#define LSR_THRE   0x20 /* Xmit holding register empty */
 
#define LSR_TEMT   0x40 /* Xmitter empty */
 
#define LSR_ERR   0x80 /* Error */
 
#define LCR_DLAB   0x80
 

Functions

u8 real_readb (volatile u8 __iomem *addr)
 
void real_writeb (u8 data, volatile u8 __iomem *addr)
 
u8 real_205_readb (volatile u8 __iomem *addr)
 
void real_205_writeb (u8 data, volatile u8 __iomem *addr)
 
void udbg_init_uart (void __iomem *comport, unsigned int speed, unsigned int clock)
 
unsigned int udbg_probe_uart_speed (void __iomem *comport, unsigned int clock)
 

Macro Definition Documentation

#define dlab   lcr

Definition at line 37 of file udbg_16550.c.

#define dll   rbr

Definition at line 35 of file udbg_16550.c.

#define dlm   ier

Definition at line 36 of file udbg_16550.c.

#define iir   fcr

Definition at line 34 of file udbg_16550.c.

#define LCR_DLAB   0x80

Definition at line 48 of file udbg_16550.c.

#define LSR_BI   0x10 /* Break */

Definition at line 43 of file udbg_16550.c.

#define LSR_DR   0x01 /* Data ready */

Definition at line 39 of file udbg_16550.c.

#define LSR_ERR   0x80 /* Error */

Definition at line 46 of file udbg_16550.c.

#define LSR_FE   0x08 /* Framing error */

Definition at line 42 of file udbg_16550.c.

#define LSR_OE   0x02 /* Overrun */

Definition at line 40 of file udbg_16550.c.

#define LSR_PE   0x04 /* Parity error */

Definition at line 41 of file udbg_16550.c.

#define LSR_TEMT   0x40 /* Xmitter empty */

Definition at line 45 of file udbg_16550.c.

#define LSR_THRE   0x20 /* Xmit holding register empty */

Definition at line 44 of file udbg_16550.c.

#define thr   rbr

Definition at line 33 of file udbg_16550.c.

Function Documentation

u8 real_205_readb ( volatile u8 __iomem addr)
void real_205_writeb ( u8  data,
volatile u8 __iomem addr 
)
u8 real_readb ( volatile u8 __iomem addr)
void real_writeb ( u8  data,
volatile u8 __iomem addr 
)
void udbg_init_uart ( void __iomem comport,
unsigned int  speed,
unsigned int  clock 
)

Definition at line 91 of file udbg_16550.c.

unsigned int udbg_probe_uart_speed ( void __iomem comport,
unsigned int  clock 
)

Definition at line 125 of file udbg_16550.c.