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

Go to the source code of this file.

Data Structures

struct  mux_port
 

Macros

#define MUX_OFFSET   0x800
 
#define MUX_LINE_OFFSET   0x80
 
#define MUX_FIFO_SIZE   255
 
#define MUX_POLL_DELAY   (30 * HZ / 1000)
 
#define IO_DATA_REG_OFFSET   0x3c
 
#define IO_DCOUNT_REG_OFFSET   0x40
 
#define MUX_EOFIFO(status)   ((status & 0xF000) == 0xF000)
 
#define MUX_STATUS(status)   ((status & 0xF000) == 0x8000)
 
#define MUX_BREAK(status)   ((status & 0xF000) == 0x2000)
 
#define MUX_NR   256
 
#define UART_PUT_CHAR(p, c)   __raw_writel((c), (p)->membase + IO_DATA_REG_OFFSET)
 
#define UART_GET_FIFO_CNT(p)   __raw_readl((p)->membase + IO_DCOUNT_REG_OFFSET)
 
#define MUX_CONSOLE   NULL
 

Functions

 MODULE_DEVICE_TABLE (parisc, builtin_mux_tbl)
 
 MODULE_DEVICE_TABLE (parisc, mux_tbl)
 
 module_init (mux_init)
 
 module_exit (mux_exit)
 
 MODULE_AUTHOR ("Ryan Bradetich")
 
 MODULE_DESCRIPTION ("Serial MUX driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS_CHARDEV_MAJOR (MUX_MAJOR)
 

Macro Definition Documentation

#define IO_DATA_REG_OFFSET   0x3c

Definition at line 45 of file mux.c.

#define IO_DCOUNT_REG_OFFSET   0x40

Definition at line 46 of file mux.c.

#define MUX_BREAK (   status)    ((status & 0xF000) == 0x2000)

Definition at line 50 of file mux.c.

#define MUX_CONSOLE   NULL

Definition at line 443 of file mux.c.

#define MUX_EOFIFO (   status)    ((status & 0xF000) == 0xF000)

Definition at line 48 of file mux.c.

#define MUX_FIFO_SIZE   255

Definition at line 42 of file mux.c.

#define MUX_LINE_OFFSET   0x80

Definition at line 40 of file mux.c.

#define MUX_NR   256

Definition at line 52 of file mux.c.

#define MUX_OFFSET   0x800

Definition at line 39 of file mux.c.

#define MUX_POLL_DELAY   (30 * HZ / 1000)

Definition at line 43 of file mux.c.

#define MUX_STATUS (   status)    ((status & 0xF000) == 0x8000)

Definition at line 49 of file mux.c.

#define UART_GET_FIFO_CNT (   p)    __raw_readl((p)->membase + IO_DCOUNT_REG_OFFSET)

Definition at line 72 of file mux.c.

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

Definition at line 71 of file mux.c.

Function Documentation

MODULE_ALIAS_CHARDEV_MAJOR ( MUX_MAJOR  )
MODULE_AUTHOR ( "Ryan Bradetich"  )
MODULE_DESCRIPTION ( "Serial MUX driver )
MODULE_DEVICE_TABLE ( parisc  ,
builtin_mux_tbl   
)
MODULE_DEVICE_TABLE ( parisc  ,
mux_tbl   
)
module_exit ( mux_exit  )
module_init ( mux_init  )
MODULE_LICENSE ( "GPL"  )