#include <linux/module.h>
#include <linux/tty.h>
#include <linux/tty_flip.h>
#include <linux/ioport.h>
#include <linux/init.h>
#include <linux/serial.h>
#include <linux/console.h>
#include <linux/sysrq.h>
#include <linux/device.h>
#include <asm/io.h>
#include <asm/irq.h>
#include <asm/mach/irq.h>
#include <mach/regs-uart.h>
#include <mach/regs-irq.h>
#include <linux/serial_core.h>
Go to the source code of this file.
|
| #define | SERIAL_KS8695_MAJOR 204 |
| |
| #define | SERIAL_KS8695_MINOR 16 |
| |
| #define | SERIAL_KS8695_DEVNAME "ttyAM" |
| |
| #define | SERIAL_KS8695_NR 1 |
| |
| #define | UART_GET_CHAR(p) (__raw_readl((p)->membase + KS8695_URRB) & 0xFF) |
| |
| #define | UART_PUT_CHAR(p, c) __raw_writel((c), (p)->membase + KS8695_URTH) |
| |
| #define | UART_GET_FCR(p) __raw_readl((p)->membase + KS8695_URFC) |
| |
| #define | UART_PUT_FCR(p, c) __raw_writel((c), (p)->membase + KS8695_URFC) |
| |
| #define | UART_GET_MSR(p) __raw_readl((p)->membase + KS8695_URMS) |
| |
| #define | UART_GET_LSR(p) __raw_readl((p)->membase + KS8695_URLS) |
| |
| #define | UART_GET_LCR(p) __raw_readl((p)->membase + KS8695_URLC) |
| |
| #define | UART_PUT_LCR(p, c) __raw_writel((c), (p)->membase + KS8695_URLC) |
| |
| #define | UART_GET_MCR(p) __raw_readl((p)->membase + KS8695_URMC) |
| |
| #define | UART_PUT_MCR(p, c) __raw_writel((c), (p)->membase + KS8695_URMC) |
| |
| #define | UART_GET_BRDR(p) __raw_readl((p)->membase + KS8695_URBD) |
| |
| #define | UART_PUT_BRDR(p, c) __raw_writel((c), (p)->membase + KS8695_URBD) |
| |
| #define | KS8695_CLR_TX_INT() __raw_writel(1 << KS8695_IRQ_UART_TX, KS8695_IRQ_VA + KS8695_INTST) |
| |
| #define | UART_DUMMY_LSR_RX 0x100 |
| |
| #define | UART_PORT_SIZE (KS8695_USR - KS8695_URRB + 4) |
| |
| #define | KS8695_CONSOLE NULL |
| |
| #define KS8695_CONSOLE NULL |
| #define SERIAL_KS8695_DEVNAME "ttyAM" |
| #define SERIAL_KS8695_MAJOR 204 |
| #define SERIAL_KS8695_MINOR 16 |
| #define SERIAL_KS8695_NR 1 |
| #define UART_DUMMY_LSR_RX 0x100 |
| MODULE_AUTHOR |
( |
"Micrel Inc." |
| ) |
|
| module_exit |
( |
ks8695uart_exit |
| ) |
|
| module_init |
( |
ks8695uart_init |
| ) |
|