Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
21285.c File Reference
#include <linux/module.h>
#include <linux/tty.h>
#include <linux/ioport.h>
#include <linux/init.h>
#include <linux/console.h>
#include <linux/device.h>
#include <linux/tty_flip.h>
#include <linux/serial_core.h>
#include <linux/serial.h>
#include <linux/io.h>
#include <asm/irq.h>
#include <asm/mach-types.h>
#include <asm/system_info.h>
#include <asm/hardware/dec21285.h>
#include <mach/hardware.h>

Go to the source code of this file.

Macros

#define BAUD_BASE   (mem_fclk_21285/64)
 
#define SERIAL_21285_NAME   "ttyFB"
 
#define SERIAL_21285_MAJOR   204
 
#define SERIAL_21285_MINOR   4
 
#define RXSTAT_DUMMY_READ   0x80000000
 
#define RXSTAT_FRAME   (1 << 0)
 
#define RXSTAT_PARITY   (1 << 1)
 
#define RXSTAT_OVERRUN   (1 << 2)
 
#define RXSTAT_ANYERR   (RXSTAT_FRAME|RXSTAT_PARITY|RXSTAT_OVERRUN)
 
#define H_UBRLCR_BREAK   (1 << 0)
 
#define H_UBRLCR_PARENB   (1 << 1)
 
#define H_UBRLCR_PAREVN   (1 << 2)
 
#define H_UBRLCR_STOPB   (1 << 3)
 
#define H_UBRLCR_FIFO   (1 << 4)
 
#define tx_enabled(port)   ((port)->unused[0])
 
#define rx_enabled(port)   ((port)->unused[1])
 
#define SERIAL_21285_CONSOLE   NULL
 

Functions

 module_init (serial21285_init)
 
 module_exit (serial21285_exit)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DESCRIPTION ("Intel Footbridge (21285) serial driver")
 
 MODULE_ALIAS_CHARDEV (SERIAL_21285_MAJOR, SERIAL_21285_MINOR)
 

Macro Definition Documentation

#define BAUD_BASE   (mem_fclk_21285/64)

Definition at line 23 of file 21285.c.

#define H_UBRLCR_BREAK   (1 << 0)

Definition at line 35 of file 21285.c.

#define H_UBRLCR_FIFO   (1 << 4)

Definition at line 39 of file 21285.c.

#define H_UBRLCR_PARENB   (1 << 1)

Definition at line 36 of file 21285.c.

#define H_UBRLCR_PAREVN   (1 << 2)

Definition at line 37 of file 21285.c.

#define H_UBRLCR_STOPB   (1 << 3)

Definition at line 38 of file 21285.c.

#define rx_enabled (   port)    ((port)->unused[1])

Definition at line 44 of file 21285.c.

#define RXSTAT_ANYERR   (RXSTAT_FRAME|RXSTAT_PARITY|RXSTAT_OVERRUN)

Definition at line 33 of file 21285.c.

#define RXSTAT_DUMMY_READ   0x80000000

Definition at line 29 of file 21285.c.

#define RXSTAT_FRAME   (1 << 0)

Definition at line 30 of file 21285.c.

#define RXSTAT_OVERRUN   (1 << 2)

Definition at line 32 of file 21285.c.

#define RXSTAT_PARITY   (1 << 1)

Definition at line 31 of file 21285.c.

#define SERIAL_21285_CONSOLE   NULL

Definition at line 473 of file 21285.c.

#define SERIAL_21285_MAJOR   204

Definition at line 26 of file 21285.c.

#define SERIAL_21285_MINOR   4

Definition at line 27 of file 21285.c.

#define SERIAL_21285_NAME   "ttyFB"

Definition at line 25 of file 21285.c.

#define tx_enabled (   port)    ((port)->unused[0])

Definition at line 43 of file 21285.c.

Function Documentation

MODULE_ALIAS_CHARDEV ( SERIAL_21285_MAJOR  ,
SERIAL_21285_MINOR   
)
MODULE_DESCRIPTION ( "Intel Footbridge (21285) serial driver )
module_exit ( serial21285_exit  )
module_init ( serial21285_init  )
MODULE_LICENSE ( "GPL"  )