Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
bfin_jtag_comm.c File Reference
#include <linux/circ_buf.h>
#include <linux/console.h>
#include <linux/delay.h>
#include <linux/err.h>
#include <linux/kernel.h>
#include <linux/kthread.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/tty.h>
#include <linux/tty_driver.h>
#include <linux/tty_flip.h>
#include <linux/atomic.h>

Go to the source code of this file.

Macros

#define DRV_NAME   "bfin-jtag-comm"
 
#define DEV_NAME   "ttyBFJC"
 
#define pr_fmt(fmt)   DRV_NAME ": " fmt
 
#define pr_init(fmt, args...)   ({ static const __initconst char __fmt[] = fmt; printk(__fmt, ## args); })
 
#define EMUDOF   0x00000001 /* EMUDAT_OUT full & valid */
 
#define EMUDIF   0x00000002 /* EMUDAT_IN full & valid */
 
#define EMUDOOVF   0x00000004 /* EMUDAT_OUT overflow */
 
#define EMUDIOVF   0x00000008 /* EMUDAT_IN overflow */
 
#define CIRC_SIZE   2048 /* see comment in tty_io.c:do_tty_write() */
 
#define CIRC_MASK   (CIRC_SIZE - 1)
 
#define circ_empty(circ)   ((circ)->head == (circ)->tail)
 
#define circ_free(circ)   CIRC_SPACE((circ)->head, (circ)->tail, CIRC_SIZE)
 
#define circ_cnt(circ)   CIRC_CNT((circ)->head, (circ)->tail, CIRC_SIZE)
 
#define circ_byte(circ, idx)   ((circ)->buf[(idx) & CIRC_MASK])
 
#define console_lock()
 
#define console_unlock()
 

Functions

 module_init (bfin_jc_init)
 
 module_exit (bfin_jc_exit)
 
 MODULE_AUTHOR ("Mike Frysinger <[email protected]>")
 
 MODULE_DESCRIPTION ("TTY over Blackfin JTAG Communication")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define circ_byte (   circ,
  idx 
)    ((circ)->buf[(idx) & CIRC_MASK])

Definition at line 61 of file bfin_jtag_comm.c.

#define circ_cnt (   circ)    CIRC_CNT((circ)->head, (circ)->tail, CIRC_SIZE)

Definition at line 60 of file bfin_jtag_comm.c.

#define circ_empty (   circ)    ((circ)->head == (circ)->tail)

Definition at line 58 of file bfin_jtag_comm.c.

#define circ_free (   circ)    CIRC_SPACE((circ)->head, (circ)->tail, CIRC_SIZE)

Definition at line 59 of file bfin_jtag_comm.c.

#define CIRC_MASK   (CIRC_SIZE - 1)

Definition at line 57 of file bfin_jtag_comm.c.

#define CIRC_SIZE   2048 /* see comment in tty_io.c:do_tty_write() */

Definition at line 56 of file bfin_jtag_comm.c.

#define console_lock (   void)

Definition at line 184 of file bfin_jtag_comm.c.

#define console_unlock (   void)

Definition at line 185 of file bfin_jtag_comm.c.

#define DEV_NAME   "ttyBFJC"

Definition at line 12 of file bfin_jtag_comm.c.

#define DRV_NAME   "bfin-jtag-comm"

Definition at line 11 of file bfin_jtag_comm.c.

#define EMUDIF   0x00000002 /* EMUDAT_IN full & valid */

Definition at line 34 of file bfin_jtag_comm.c.

#define EMUDIOVF   0x00000008 /* EMUDAT_IN overflow */

Definition at line 36 of file bfin_jtag_comm.c.

#define EMUDOF   0x00000001 /* EMUDAT_OUT full & valid */

Definition at line 33 of file bfin_jtag_comm.c.

#define EMUDOOVF   0x00000004 /* EMUDAT_OUT overflow */

Definition at line 35 of file bfin_jtag_comm.c.

#define pr_fmt (   fmt)    DRV_NAME ": " fmt

Definition at line 13 of file bfin_jtag_comm.c.

#define pr_init (   fmt,
  args... 
)    ({ static const __initconst char __fmt[] = fmt; printk(__fmt, ## args); })

Definition at line 30 of file bfin_jtag_comm.c.

Function Documentation

MODULE_AUTHOR ( "Mike Frysinger <[email protected]>"  )
MODULE_DESCRIPTION ( "TTY over Blackfin JTAG Communication"  )
module_exit ( bfin_jc_exit  )
module_init ( bfin_jc_init  )
MODULE_LICENSE ( "GPL"  )