Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
uart.h File Reference
#include <int.h>

Go to the source code of this file.

Macros

#define UART_BASE   0xbbe4a000 /* PNX8550 */
 
#define PNX8550_UART_PORT0   (UART_BASE)
 
#define PNX8550_UART_PORT1   (UART_BASE + 0x1000)
 
#define PNX8550_UART_INT(x)   (PNX8550_INT_GIC_MIN+19+x)
 
#define IRQ_TO_UART(x)   (x-PNX8550_INT_GIC_MIN-19)
 
#define ip3106_lcr(base, port)   *(volatile u32 *)(base+(port*0x1000) + 0x000)
 
#define ip3106_mcr(base, port)   *(volatile u32 *)(base+(port*0x1000) + 0x004)
 
#define ip3106_baud(base, port)   *(volatile u32 *)(base+(port*0x1000) + 0x008)
 
#define ip3106_cfg(base, port)   *(volatile u32 *)(base+(port*0x1000) + 0x00C)
 
#define ip3106_fifo(base, port)   *(volatile u32 *)(base+(port*0x1000) + 0x028)
 
#define ip3106_istat(base, port)   *(volatile u32 *)(base+(port*0x1000) + 0xFE0)
 
#define ip3106_ien(base, port)   *(volatile u32 *)(base+(port*0x1000) + 0xFE4)
 
#define ip3106_iclr(base, port)   *(volatile u32 *)(base+(port*0x1000) + 0xFE8)
 
#define ip3106_iset(base, port)   *(volatile u32 *)(base+(port*0x1000) + 0xFEC)
 
#define ip3106_pd(base, port)   *(volatile u32 *)(base+(port*0x1000) + 0xFF4)
 
#define ip3106_mid(base, port)   *(volatile u32 *)(base+(port*0x1000) + 0xFFC)
 

Macro Definition Documentation

#define ip3106_baud (   base,
  port 
)    *(volatile u32 *)(base+(port*0x1000) + 0x008)

Definition at line 20 of file uart.h.

#define ip3106_cfg (   base,
  port 
)    *(volatile u32 *)(base+(port*0x1000) + 0x00C)

Definition at line 21 of file uart.h.

#define ip3106_fifo (   base,
  port 
)    *(volatile u32 *)(base+(port*0x1000) + 0x028)

Definition at line 22 of file uart.h.

#define ip3106_iclr (   base,
  port 
)    *(volatile u32 *)(base+(port*0x1000) + 0xFE8)

Definition at line 25 of file uart.h.

#define ip3106_ien (   base,
  port 
)    *(volatile u32 *)(base+(port*0x1000) + 0xFE4)

Definition at line 24 of file uart.h.

#define ip3106_iset (   base,
  port 
)    *(volatile u32 *)(base+(port*0x1000) + 0xFEC)

Definition at line 26 of file uart.h.

#define ip3106_istat (   base,
  port 
)    *(volatile u32 *)(base+(port*0x1000) + 0xFE0)

Definition at line 23 of file uart.h.

#define ip3106_lcr (   base,
  port 
)    *(volatile u32 *)(base+(port*0x1000) + 0x000)

Definition at line 18 of file uart.h.

#define ip3106_mcr (   base,
  port 
)    *(volatile u32 *)(base+(port*0x1000) + 0x004)

Definition at line 19 of file uart.h.

#define ip3106_mid (   base,
  port 
)    *(volatile u32 *)(base+(port*0x1000) + 0xFFC)

Definition at line 28 of file uart.h.

#define ip3106_pd (   base,
  port 
)    *(volatile u32 *)(base+(port*0x1000) + 0xFF4)

Definition at line 27 of file uart.h.

#define IRQ_TO_UART (   x)    (x-PNX8550_INT_GIC_MIN-19)

Definition at line 14 of file uart.h.

#define PNX8550_UART_INT (   x)    (PNX8550_INT_GIC_MIN+19+x)

Definition at line 13 of file uart.h.

#define PNX8550_UART_PORT0   (UART_BASE)

Definition at line 10 of file uart.h.

#define PNX8550_UART_PORT1   (UART_BASE + 0x1000)

Definition at line 11 of file uart.h.

#define UART_BASE   0xbbe4a000 /* PNX8550 */

Definition at line 8 of file uart.h.