Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
serial_ks8695.c File Reference
#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.

Macros

#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
 

Functions

 module_init (ks8695uart_init)
 
 module_exit (ks8695uart_exit)
 
 MODULE_DESCRIPTION ("KS8695 serial port driver")
 
 MODULE_AUTHOR ("Micrel Inc.")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define KS8695_CLR_TX_INT ( )    __raw_writel(1 << KS8695_IRQ_UART_TX, KS8695_IRQ_VA + KS8695_INTST)

Definition at line 60 of file serial_ks8695.c.

#define KS8695_CONSOLE   NULL

Definition at line 661 of file serial_ks8695.c.

#define SERIAL_KS8695_DEVNAME   "ttyAM"

Definition at line 40 of file serial_ks8695.c.

#define SERIAL_KS8695_MAJOR   204

Definition at line 38 of file serial_ks8695.c.

#define SERIAL_KS8695_MINOR   16

Definition at line 39 of file serial_ks8695.c.

#define SERIAL_KS8695_NR   1

Definition at line 42 of file serial_ks8695.c.

#define UART_DUMMY_LSR_RX   0x100

Definition at line 62 of file serial_ks8695.c.

#define UART_GET_BRDR (   p)    __raw_readl((p)->membase + KS8695_URBD)

Definition at line 57 of file serial_ks8695.c.

#define UART_GET_CHAR (   p)    (__raw_readl((p)->membase + KS8695_URRB) & 0xFF)

Definition at line 47 of file serial_ks8695.c.

#define UART_GET_FCR (   p)    __raw_readl((p)->membase + KS8695_URFC)

Definition at line 49 of file serial_ks8695.c.

#define UART_GET_LCR (   p)    __raw_readl((p)->membase + KS8695_URLC)

Definition at line 53 of file serial_ks8695.c.

#define UART_GET_LSR (   p)    __raw_readl((p)->membase + KS8695_URLS)

Definition at line 52 of file serial_ks8695.c.

#define UART_GET_MCR (   p)    __raw_readl((p)->membase + KS8695_URMC)

Definition at line 55 of file serial_ks8695.c.

#define UART_GET_MSR (   p)    __raw_readl((p)->membase + KS8695_URMS)

Definition at line 51 of file serial_ks8695.c.

#define UART_PORT_SIZE   (KS8695_USR - KS8695_URRB + 4)

Definition at line 63 of file serial_ks8695.c.

#define UART_PUT_BRDR (   p,
  c 
)    __raw_writel((c), (p)->membase + KS8695_URBD)

Definition at line 58 of file serial_ks8695.c.

#define UART_PUT_CHAR (   p,
  c 
)    __raw_writel((c), (p)->membase + KS8695_URTH)

Definition at line 48 of file serial_ks8695.c.

#define UART_PUT_FCR (   p,
  c 
)    __raw_writel((c), (p)->membase + KS8695_URFC)

Definition at line 50 of file serial_ks8695.c.

#define UART_PUT_LCR (   p,
  c 
)    __raw_writel((c), (p)->membase + KS8695_URLC)

Definition at line 54 of file serial_ks8695.c.

#define UART_PUT_MCR (   p,
  c 
)    __raw_writel((c), (p)->membase + KS8695_URMC)

Definition at line 56 of file serial_ks8695.c.

Function Documentation

MODULE_AUTHOR ( "Micrel Inc."  )
MODULE_DESCRIPTION ( "KS8695 serial port driver )
module_exit ( ks8695uart_exit  )
module_init ( ks8695uart_init  )
MODULE_LICENSE ( "GPL"  )