Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
altera_jtaguart.c File Reference
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/console.h>
#include <linux/of.h>
#include <linux/tty.h>
#include <linux/tty_flip.h>
#include <linux/serial.h>
#include <linux/serial_core.h>
#include <linux/platform_device.h>
#include <linux/io.h>
#include <linux/altera_jtaguart.h>

Go to the source code of this file.

Data Structures

struct  altera_jtaguart
 

Macros

#define DRV_NAME   "altera_jtaguart"
 
#define ALTERA_JTAGUART_SIZE   8
 
#define ALTERA_JTAGUART_DATA_REG   0
 
#define ALTERA_JTAGUART_DATA_DATA_MSK   0x000000FF
 
#define ALTERA_JTAGUART_DATA_RVALID_MSK   0x00008000
 
#define ALTERA_JTAGUART_DATA_RAVAIL_MSK   0xFFFF0000
 
#define ALTERA_JTAGUART_DATA_RAVAIL_OFF   16
 
#define ALTERA_JTAGUART_CONTROL_REG   4
 
#define ALTERA_JTAGUART_CONTROL_RE_MSK   0x00000001
 
#define ALTERA_JTAGUART_CONTROL_WE_MSK   0x00000002
 
#define ALTERA_JTAGUART_CONTROL_RI_MSK   0x00000100
 
#define ALTERA_JTAGUART_CONTROL_RI_OFF   8
 
#define ALTERA_JTAGUART_CONTROL_WI_MSK   0x00000200
 
#define ALTERA_JTAGUART_CONTROL_AC_MSK   0x00000400
 
#define ALTERA_JTAGUART_CONTROL_WSPACE_MSK   0xFFFF0000
 
#define ALTERA_JTAGUART_CONTROL_WSPACE_OFF   16
 
#define ALTERA_JTAGUART_MAXPORTS   1
 
#define ALTERA_JTAGUART_CONSOLE   NULL
 

Functions

 module_init (altera_jtaguart_init)
 
 module_exit (altera_jtaguart_exit)
 
 MODULE_DESCRIPTION ("Altera JTAG UART driver")
 
 MODULE_AUTHOR ("Thomas Chou <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("platform:"DRV_NAME)
 

Macro Definition Documentation

#define ALTERA_JTAGUART_CONSOLE   NULL

Definition at line 395 of file altera_jtaguart.c.

#define ALTERA_JTAGUART_CONTROL_AC_MSK   0x00000400

Definition at line 53 of file altera_jtaguart.c.

#define ALTERA_JTAGUART_CONTROL_RE_MSK   0x00000001

Definition at line 48 of file altera_jtaguart.c.

#define ALTERA_JTAGUART_CONTROL_REG   4

Definition at line 46 of file altera_jtaguart.c.

#define ALTERA_JTAGUART_CONTROL_RI_MSK   0x00000100

Definition at line 50 of file altera_jtaguart.c.

#define ALTERA_JTAGUART_CONTROL_RI_OFF   8

Definition at line 51 of file altera_jtaguart.c.

#define ALTERA_JTAGUART_CONTROL_WE_MSK   0x00000002

Definition at line 49 of file altera_jtaguart.c.

#define ALTERA_JTAGUART_CONTROL_WI_MSK   0x00000200

Definition at line 52 of file altera_jtaguart.c.

#define ALTERA_JTAGUART_CONTROL_WSPACE_MSK   0xFFFF0000

Definition at line 54 of file altera_jtaguart.c.

#define ALTERA_JTAGUART_CONTROL_WSPACE_OFF   16

Definition at line 55 of file altera_jtaguart.c.

#define ALTERA_JTAGUART_DATA_DATA_MSK   0x000000FF

Definition at line 41 of file altera_jtaguart.c.

#define ALTERA_JTAGUART_DATA_RAVAIL_MSK   0xFFFF0000

Definition at line 43 of file altera_jtaguart.c.

#define ALTERA_JTAGUART_DATA_RAVAIL_OFF   16

Definition at line 44 of file altera_jtaguart.c.

#define ALTERA_JTAGUART_DATA_REG   0

Definition at line 39 of file altera_jtaguart.c.

#define ALTERA_JTAGUART_DATA_RVALID_MSK   0x00008000

Definition at line 42 of file altera_jtaguart.c.

#define ALTERA_JTAGUART_MAXPORTS   1

Definition at line 304 of file altera_jtaguart.c.

#define ALTERA_JTAGUART_SIZE   8

Definition at line 37 of file altera_jtaguart.c.

#define DRV_NAME   "altera_jtaguart"

Definition at line 30 of file altera_jtaguart.c.

Function Documentation

MODULE_ALIAS ( "platform:"  DRV_NAME)
MODULE_AUTHOR ( "Thomas Chou <[email protected]>"  )
MODULE_DESCRIPTION ( "Altera JTAG UART driver )
module_exit ( altera_jtaguart_exit  )
module_init ( altera_jtaguart_init  )
MODULE_LICENSE ( "GPL"  )