Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
serial.h File Reference
#include <asm/cpu-regs.h>
#include <proc/irq.h>
#include <unit/fpga-regs.h>
#include <linux/serial_reg.h>

Go to the source code of this file.

Macros

#define SERIAL_PORT0_BASE_ADDRESS   0xA8200000
 
#define SERIAL_IRQ   XIRQ1 /* single serial (TL16C550C) (Lo) */
 
#define BASE_BAUD   (12288000 / 16)
 
#define SERIAL_PORT_DFNS
 
#define SERIAL_INITIALIZE
 
#define SERIAL_CHECK_INTERRUPT
 
#define SERIAL_CLEAR_INTERRUPT
 
#define SERIAL_SET_INT_MASK
 
#define SERIAL_CLEAR_INT_MASK
 

Macro Definition Documentation

#define BASE_BAUD   (12288000 / 16)

Definition at line 32 of file serial.h.

#define SERIAL_CHECK_INTERRUPT
Value:
do { \
if ((ASB2364_FPGA_REG_IRQ_UART & 0x0001) == 0x0001) { \
return IRQ_NONE; \
} \
} while (0)

Definition at line 126 of file serial.h.

#define SERIAL_CLEAR_INT_MASK
Value:
do { \
ASB2364_FPGA_REG_MASK_UART = 0x0000; \
SyncExBus(); \
} while (0)

Definition at line 145 of file serial.h.

#define SERIAL_CLEAR_INTERRUPT
Value:
do { \
ASB2364_FPGA_REG_IRQ_UART = 0x0001; \
SyncExBus(); \
} while (0)

Definition at line 133 of file serial.h.

#define SERIAL_INITIALIZE
Value:
do { \
/* release reset */ \
ASB2364_FPGA_REG_RESET_UART = 0x0001; \
SyncExBus(); \
} while (0)

Definition at line 119 of file serial.h.

#define SERIAL_IRQ   XIRQ1 /* single serial (TL16C550C) (Lo) */

Definition at line 22 of file serial.h.

#define SERIAL_PORT0_BASE_ADDRESS   0xA8200000

Definition at line 20 of file serial.h.

#define SERIAL_PORT_DFNS
Value:
{ \
.baud_base = BASE_BAUD, \
.irq = SERIAL_IRQ, \
.flags = STD_COM_FLAGS, \
.iomem_base = (u8 *) SERIAL_PORT0_BASE_ADDRESS, \
.iomem_reg_shift = 1, \
},

Definition at line 39 of file serial.h.

#define SERIAL_SET_INT_MASK
Value:
do { \
ASB2364_FPGA_REG_MASK_UART = 0x0001; \
SyncExBus(); \
} while (0)

Definition at line 139 of file serial.h.