Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
sync_serial.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/major.h>
#include <linux/sched.h>
#include <linux/interrupt.h>
#include <linux/poll.h>
#include <linux/init.h>
#include <linux/mutex.h>
#include <linux/timer.h>
#include <asm/irq.h>
#include <asm/dma.h>
#include <asm/io.h>
#include <arch/svinto.h>
#include <asm/uaccess.h>
#include <asm/sync_serial.h>
#include <arch/io_interface_mux.h>

Go to the source code of this file.

Data Structures

struct  sync_port
 

Macros

#define SYNC_SERIAL_MAJOR   125
 
#define IN_BUFFER_SIZE   12288
 
#define IN_DESCR_SIZE   256
 
#define NUM_IN_DESCR   (IN_BUFFER_SIZE/IN_DESCR_SIZE)
 
#define OUT_BUFFER_SIZE   4096
 
#define DEFAULT_FRAME_RATE   0
 
#define DEFAULT_WORD_RATE   7
 
#define DEBUG(x)
 
#define DEBUGREAD(x)
 
#define DEBUGWRITE(x)
 
#define DEBUGPOLL(x)
 
#define DEBUGRXINT(x)
 
#define DEBUGTXINT(x)
 
#define SETF(var, reg, field, val)
 
#define SETS(var, reg, field, val)
 
#define NUMBER_OF_PORTS   2
 

Functions

 module_init (etrax_sync_serial_init)
 

Macro Definition Documentation

#define DEBUG (   x)

Definition at line 73 of file sync_serial.c.

#define DEBUGPOLL (   x)

Definition at line 76 of file sync_serial.c.

#define DEBUGREAD (   x)

Definition at line 74 of file sync_serial.c.

#define DEBUGRXINT (   x)

Definition at line 77 of file sync_serial.c.

#define DEBUGTXINT (   x)

Definition at line 78 of file sync_serial.c.

#define DEBUGWRITE (   x)

Definition at line 75 of file sync_serial.c.

#define DEFAULT_FRAME_RATE   0

Definition at line 67 of file sync_serial.c.

#define DEFAULT_WORD_RATE   7

Definition at line 68 of file sync_serial.c.

#define IN_BUFFER_SIZE   12288

Definition at line 62 of file sync_serial.c.

#define IN_DESCR_SIZE   256

Definition at line 63 of file sync_serial.c.

#define NUM_IN_DESCR   (IN_BUFFER_SIZE/IN_DESCR_SIZE)

Definition at line 64 of file sync_serial.c.

#define NUMBER_OF_PORTS   2

Definition at line 244 of file sync_serial.c.

#define OUT_BUFFER_SIZE   4096

Definition at line 65 of file sync_serial.c.

#define SETF (   var,
  reg,
  field,
  val 
)
Value:
do { \
var = (var & ~IO_MASK_(reg##_, field##_)) | \
IO_FIELD_(reg##_, field##_, val); \
} while (0)

Definition at line 81 of file sync_serial.c.

#define SETS (   var,
  reg,
  field,
  val 
)
Value:
do { \
var = (var & ~IO_MASK_(reg##_, field##_)) | \
IO_STATE_(reg##_, field##_, _##val); \
} while (0)

Definition at line 87 of file sync_serial.c.

#define SYNC_SERIAL_MAJOR   125

Definition at line 58 of file sync_serial.c.

Function Documentation

module_init ( etrax_sync_serial_init  )