Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
lantiq.c File Reference
#include <linux/slab.h>
#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/tty.h>
#include <linux/tty_flip.h>
#include <linux/serial_core.h>
#include <linux/serial.h>
#include <linux/of_platform.h>
#include <linux/of_address.h>
#include <linux/of_irq.h>
#include <linux/io.h>
#include <linux/clk.h>
#include <linux/gpio.h>
#include <lantiq_soc.h>

Go to the source code of this file.

Data Structures

struct  ltq_uart_port
 

Macros

#define PORT_LTQ_ASC   111
 
#define MAXPORTS   2
 
#define UART_DUMMY_UER_RX   1
 
#define DRVNAME   "lantiq,asc"
 
#define LTQ_ASC_TBUF   0x0020
 
#define LTQ_ASC_RBUF   0x0024
 
#define LTQ_ASC_FSTAT   0x0048
 
#define LTQ_ASC_WHBSTATE   0x0018
 
#define LTQ_ASC_STATE   0x0014
 
#define LTQ_ASC_IRNCR   0x00F8
 
#define LTQ_ASC_CLC   0x0000
 
#define LTQ_ASC_ID   0x0008
 
#define LTQ_ASC_PISEL   0x0004
 
#define LTQ_ASC_TXFCON   0x0044
 
#define LTQ_ASC_RXFCON   0x0040
 
#define LTQ_ASC_CON   0x0010
 
#define LTQ_ASC_BG   0x0050
 
#define LTQ_ASC_IRNREN   0x00F4
 
#define ASC_IRNREN_TX   0x1
 
#define ASC_IRNREN_RX   0x2
 
#define ASC_IRNREN_ERR   0x4
 
#define ASC_IRNREN_TX_BUF   0x8
 
#define ASC_IRNCR_TIR   0x1
 
#define ASC_IRNCR_RIR   0x2
 
#define ASC_IRNCR_EIR   0x4
 
#define ASCOPT_CSIZE   0x3
 
#define TXFIFO_FL   1
 
#define RXFIFO_FL   1
 
#define ASCCLC_DISS   0x2
 
#define ASCCLC_RMCMASK   0x0000FF00
 
#define ASCCLC_RMCOFFSET   8
 
#define ASCCON_M_8ASYNC   0x0
 
#define ASCCON_M_7ASYNC   0x2
 
#define ASCCON_ODD   0x00000020
 
#define ASCCON_STP   0x00000080
 
#define ASCCON_BRS   0x00000100
 
#define ASCCON_FDE   0x00000200
 
#define ASCCON_R   0x00008000
 
#define ASCCON_FEN   0x00020000
 
#define ASCCON_ROEN   0x00080000
 
#define ASCCON_TOEN   0x00100000
 
#define ASCSTATE_PE   0x00010000
 
#define ASCSTATE_FE   0x00020000
 
#define ASCSTATE_ROE   0x00080000
 
#define ASCSTATE_ANY   (ASCSTATE_ROE|ASCSTATE_PE|ASCSTATE_FE)
 
#define ASCWHBSTATE_CLRREN   0x00000001
 
#define ASCWHBSTATE_SETREN   0x00000002
 
#define ASCWHBSTATE_CLRPE   0x00000004
 
#define ASCWHBSTATE_CLRFE   0x00000008
 
#define ASCWHBSTATE_CLRROE   0x00000020
 
#define ASCTXFCON_TXFEN   0x0001
 
#define ASCTXFCON_TXFFLU   0x0002
 
#define ASCTXFCON_TXFITLMASK   0x3F00
 
#define ASCTXFCON_TXFITLOFF   8
 
#define ASCRXFCON_RXFEN   0x0001
 
#define ASCRXFCON_RXFFLU   0x0002
 
#define ASCRXFCON_RXFITLMASK   0x3F00
 
#define ASCRXFCON_RXFITLOFF   8
 
#define ASCFSTAT_RXFFLMASK   0x003F
 
#define ASCFSTAT_TXFFLMASK   0x3F00
 
#define ASCFSTAT_TXFREEMASK   0x3F000000
 
#define ASCFSTAT_TXFREEOFF   24
 

Functions

 console_initcall (lqasc_console_init)
 
 MODULE_DEVICE_TABLE (of, ltq_asc_match)
 
int __init init_lqasc (void)
 
 module_init (init_lqasc)
 
 MODULE_DESCRIPTION ("Lantiq serial port driver")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define ASC_IRNCR_EIR   0x4

Definition at line 73 of file lantiq.c.

#define ASC_IRNCR_RIR   0x2

Definition at line 72 of file lantiq.c.

#define ASC_IRNCR_TIR   0x1

Definition at line 71 of file lantiq.c.

#define ASC_IRNREN_ERR   0x4

Definition at line 69 of file lantiq.c.

#define ASC_IRNREN_RX   0x2

Definition at line 68 of file lantiq.c.

#define ASC_IRNREN_TX   0x1

Definition at line 67 of file lantiq.c.

#define ASC_IRNREN_TX_BUF   0x8

Definition at line 70 of file lantiq.c.

#define ASCCLC_DISS   0x2

Definition at line 78 of file lantiq.c.

#define ASCCLC_RMCMASK   0x0000FF00

Definition at line 79 of file lantiq.c.

#define ASCCLC_RMCOFFSET   8

Definition at line 80 of file lantiq.c.

#define ASCCON_BRS   0x00000100

Definition at line 85 of file lantiq.c.

#define ASCCON_FDE   0x00000200

Definition at line 86 of file lantiq.c.

#define ASCCON_FEN   0x00020000

Definition at line 88 of file lantiq.c.

#define ASCCON_M_7ASYNC   0x2

Definition at line 82 of file lantiq.c.

#define ASCCON_M_8ASYNC   0x0

Definition at line 81 of file lantiq.c.

#define ASCCON_ODD   0x00000020

Definition at line 83 of file lantiq.c.

#define ASCCON_R   0x00008000

Definition at line 87 of file lantiq.c.

#define ASCCON_ROEN   0x00080000

Definition at line 89 of file lantiq.c.

#define ASCCON_STP   0x00000080

Definition at line 84 of file lantiq.c.

#define ASCCON_TOEN   0x00100000

Definition at line 90 of file lantiq.c.

#define ASCFSTAT_RXFFLMASK   0x003F

Definition at line 108 of file lantiq.c.

#define ASCFSTAT_TXFFLMASK   0x3F00

Definition at line 109 of file lantiq.c.

#define ASCFSTAT_TXFREEMASK   0x3F000000

Definition at line 110 of file lantiq.c.

#define ASCFSTAT_TXFREEOFF   24

Definition at line 111 of file lantiq.c.

#define ASCOPT_CSIZE   0x3

Definition at line 75 of file lantiq.c.

#define ASCRXFCON_RXFEN   0x0001

Definition at line 104 of file lantiq.c.

#define ASCRXFCON_RXFFLU   0x0002

Definition at line 105 of file lantiq.c.

#define ASCRXFCON_RXFITLMASK   0x3F00

Definition at line 106 of file lantiq.c.

#define ASCRXFCON_RXFITLOFF   8

Definition at line 107 of file lantiq.c.

#define ASCSTATE_ANY   (ASCSTATE_ROE|ASCSTATE_PE|ASCSTATE_FE)

Definition at line 94 of file lantiq.c.

#define ASCSTATE_FE   0x00020000

Definition at line 92 of file lantiq.c.

#define ASCSTATE_PE   0x00010000

Definition at line 91 of file lantiq.c.

#define ASCSTATE_ROE   0x00080000

Definition at line 93 of file lantiq.c.

#define ASCTXFCON_TXFEN   0x0001

Definition at line 100 of file lantiq.c.

#define ASCTXFCON_TXFFLU   0x0002

Definition at line 101 of file lantiq.c.

#define ASCTXFCON_TXFITLMASK   0x3F00

Definition at line 102 of file lantiq.c.

#define ASCTXFCON_TXFITLOFF   8

Definition at line 103 of file lantiq.c.

#define ASCWHBSTATE_CLRFE   0x00000008

Definition at line 98 of file lantiq.c.

#define ASCWHBSTATE_CLRPE   0x00000004

Definition at line 97 of file lantiq.c.

#define ASCWHBSTATE_CLRREN   0x00000001

Definition at line 95 of file lantiq.c.

#define ASCWHBSTATE_CLRROE   0x00000020

Definition at line 99 of file lantiq.c.

#define ASCWHBSTATE_SETREN   0x00000002

Definition at line 96 of file lantiq.c.

#define DRVNAME   "lantiq,asc"

Definition at line 46 of file lantiq.c.

#define LTQ_ASC_BG   0x0050

Definition at line 64 of file lantiq.c.

#define LTQ_ASC_CLC   0x0000

Definition at line 58 of file lantiq.c.

#define LTQ_ASC_CON   0x0010

Definition at line 63 of file lantiq.c.

#define LTQ_ASC_FSTAT   0x0048

Definition at line 54 of file lantiq.c.

#define LTQ_ASC_ID   0x0008

Definition at line 59 of file lantiq.c.

#define LTQ_ASC_IRNCR   0x00F8

Definition at line 57 of file lantiq.c.

#define LTQ_ASC_IRNREN   0x00F4

Definition at line 65 of file lantiq.c.

#define LTQ_ASC_PISEL   0x0004

Definition at line 60 of file lantiq.c.

#define LTQ_ASC_RBUF   0x0024

Definition at line 52 of file lantiq.c.

#define LTQ_ASC_RXFCON   0x0040

Definition at line 62 of file lantiq.c.

#define LTQ_ASC_STATE   0x0014

Definition at line 56 of file lantiq.c.

#define LTQ_ASC_TBUF   0x0020

Definition at line 51 of file lantiq.c.

#define LTQ_ASC_TXFCON   0x0044

Definition at line 61 of file lantiq.c.

#define LTQ_ASC_WHBSTATE   0x0018

Definition at line 55 of file lantiq.c.

#define MAXPORTS   2

Definition at line 44 of file lantiq.c.

#define PORT_LTQ_ASC   111

Definition at line 43 of file lantiq.c.

#define RXFIFO_FL   1

Definition at line 77 of file lantiq.c.

#define TXFIFO_FL   1

Definition at line 76 of file lantiq.c.

#define UART_DUMMY_UER_RX   1

Definition at line 45 of file lantiq.c.

Function Documentation

console_initcall ( lqasc_console_init  )
int __init init_lqasc ( void  )

Definition at line 759 of file lantiq.c.

MODULE_DESCRIPTION ( "Lantiq serial port driver )
MODULE_DEVICE_TABLE ( of  ,
ltq_asc_match   
)
module_init ( init_lqasc  )
MODULE_LICENSE ( "GPL"  )