Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
pnx8xxx_uart.c File Reference
#include <linux/module.h>
#include <linux/ioport.h>
#include <linux/init.h>
#include <linux/console.h>
#include <linux/sysrq.h>
#include <linux/device.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/serial_pnx8xxx.h>
#include <asm/io.h>
#include <asm/irq.h>

Go to the source code of this file.

Macros

#define SERIAL_PNX8XXX_MAJOR   204
 
#define MINOR_START   5
 
#define NR_PORTS   2
 
#define PNX8XXX_ISR_PASS_LIMIT   256
 
#define SM_TO_FIFO(x)   ((x) >> 10)
 
#define SM_TO_ISTAT(x)   ((x) & 0x000001ff)
 
#define FIFO_TO_SM(x)   ((x) << 10)
 
#define ISTAT_TO_SM(x)   ((x) & 0x000001ff)
 
#define UART_PORT_SIZE   0x1000
 
#define MCTRL_TIMEOUT   (250*HZ/1000)
 
#define PNX8XXX_CONSOLE   NULL
 

Functions

 module_init (pnx8xxx_serial_init)
 
 module_exit (pnx8xxx_serial_exit)
 
 MODULE_AUTHOR ("Embedded Alley Solutions, Inc.")
 
 MODULE_DESCRIPTION ("PNX8XXX SoCs serial port driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS_CHARDEV_MAJOR (SERIAL_PNX8XXX_MAJOR)
 
 MODULE_ALIAS ("platform:pnx8xxx-uart")
 

Variables

struct pnx8xxx_port pnx8xxx_ports []
 

Macro Definition Documentation

#define FIFO_TO_SM (   x)    ((x) << 10)

Definition at line 51 of file pnx8xxx_uart.c.

#define ISTAT_TO_SM (   x)    ((x) & 0x000001ff)

Definition at line 52 of file pnx8xxx_uart.c.

#define MCTRL_TIMEOUT   (250*HZ/1000)

Definition at line 65 of file pnx8xxx_uart.c.

#define MINOR_START   5

Definition at line 39 of file pnx8xxx_uart.c.

#define NR_PORTS   2

Definition at line 41 of file pnx8xxx_uart.c.

#define PNX8XXX_CONSOLE   NULL

Definition at line 751 of file pnx8xxx_uart.c.

#define PNX8XXX_ISR_PASS_LIMIT   256

Definition at line 43 of file pnx8xxx_uart.c.

#define SERIAL_PNX8XXX_MAJOR   204

Definition at line 38 of file pnx8xxx_uart.c.

#define SM_TO_FIFO (   x)    ((x) >> 10)

Definition at line 49 of file pnx8xxx_uart.c.

#define SM_TO_ISTAT (   x)    ((x) & 0x000001ff)

Definition at line 50 of file pnx8xxx_uart.c.

#define UART_PORT_SIZE   0x1000

Definition at line 57 of file pnx8xxx_uart.c.

Function Documentation

MODULE_ALIAS ( "platform:pnx8xxx-uart )
MODULE_ALIAS_CHARDEV_MAJOR ( SERIAL_PNX8XXX_MAJOR  )
MODULE_AUTHOR ( "Embedded Alley  Solutions,
Inc."   
)
MODULE_DESCRIPTION ( "PNX8XXX SoCs serial port driver )
module_exit ( pnx8xxx_serial_exit  )
module_init ( pnx8xxx_serial_init  )
MODULE_LICENSE ( "GPL"  )

Variable Documentation

struct pnx8xxx_port pnx8xxx_ports[]

Definition at line 70 of file platform.c.