#include <linux/module.h>
#include <linux/ioport.h>
#include <linux/init.h>
#include <linux/console.h>
#include <linux/sysrq.h>
#include <linux/platform_device.h>
#include <linux/tty.h>
#include <linux/tty_flip.h>
#include <linux/serial_core.h>
#include <linux/serial.h>
#include <linux/io.h>
#include <asm/irq.h>
#include <mach/hardware.h>
#include <mach/irqs.h>
#include <asm/mach/serial_sa1100.h>
Go to the source code of this file.
|
#define | SERIAL_SA1100_MAJOR 204 |
|
#define | MINOR_START 5 |
|
#define | NR_PORTS 3 |
|
#define | SA1100_ISR_PASS_LIMIT 256 |
|
#define | SM_TO_UTSR0(x) ((x) & 0xff) |
|
#define | SM_TO_UTSR1(x) ((x) >> 8) |
|
#define | UTSR0_TO_SM(x) ((x)) |
|
#define | UTSR1_TO_SM(x) ((x) << 8) |
|
#define | UART_GET_UTCR0(sport) __raw_readl((sport)->port.membase + UTCR0) |
|
#define | UART_GET_UTCR1(sport) __raw_readl((sport)->port.membase + UTCR1) |
|
#define | UART_GET_UTCR2(sport) __raw_readl((sport)->port.membase + UTCR2) |
|
#define | UART_GET_UTCR3(sport) __raw_readl((sport)->port.membase + UTCR3) |
|
#define | UART_GET_UTSR0(sport) __raw_readl((sport)->port.membase + UTSR0) |
|
#define | UART_GET_UTSR1(sport) __raw_readl((sport)->port.membase + UTSR1) |
|
#define | UART_GET_CHAR(sport) __raw_readl((sport)->port.membase + UTDR) |
|
#define | UART_PUT_UTCR0(sport, v) __raw_writel((v),(sport)->port.membase + UTCR0) |
|
#define | UART_PUT_UTCR1(sport, v) __raw_writel((v),(sport)->port.membase + UTCR1) |
|
#define | UART_PUT_UTCR2(sport, v) __raw_writel((v),(sport)->port.membase + UTCR2) |
|
#define | UART_PUT_UTCR3(sport, v) __raw_writel((v),(sport)->port.membase + UTCR3) |
|
#define | UART_PUT_UTSR0(sport, v) __raw_writel((v),(sport)->port.membase + UTSR0) |
|
#define | UART_PUT_UTSR1(sport, v) __raw_writel((v),(sport)->port.membase + UTSR1) |
|
#define | UART_PUT_CHAR(sport, v) __raw_writel((v),(sport)->port.membase + UTDR) |
|
#define | UART_PORT_SIZE 0x24 |
|
#define | MCTRL_TIMEOUT (250*HZ/1000) |
|
#define | SA1100_CONSOLE NULL |
|
#define MCTRL_TIMEOUT (250*HZ/1000) |
#define SA1100_CONSOLE NULL |
#define SA1100_ISR_PASS_LIMIT 256 |
#define SERIAL_SA1100_MAJOR 204 |
#define SM_TO_UTSR0 |
( |
|
x | ) |
((x) & 0xff) |
#define SM_TO_UTSR1 |
( |
|
x | ) |
((x) >> 8) |
#define UART_PORT_SIZE 0x24 |
#define UTSR0_TO_SM |
( |
|
x | ) |
((x)) |
#define UTSR1_TO_SM |
( |
|
x | ) |
((x) << 8) |
MODULE_ALIAS |
( |
"platform:sa11x0-uart" |
| ) |
|
MODULE_AUTHOR |
( |
"Deep Blue Solutions Ltd" |
| ) |
|
module_exit |
( |
sa1100_serial_exit |
| ) |
|
module_init |
( |
sa1100_serial_init |
| ) |
|