Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
n_r3964.h File Reference
#include <linux/param.h>
#include <uapi/linux/n_r3964.h>

Go to the source code of this file.

Data Structures

struct  r3964_client_info
 
struct  r3964_message
 
struct  r3964_block_header
 
struct  r3964_info
 

Macros

#define STX   0x02
 
#define ETX   0x03
 
#define DLE   0x10
 
#define NAK   0x15
 
#define R3964_TO_QVZ   ((550)*HZ/1000)
 
#define R3964_TO_ZVZ   ((220)*HZ/1000)
 
#define R3964_TO_NO_BUF   ((400)*HZ/1000)
 
#define R3964_NO_TX_ROOM   ((100)*HZ/1000)
 
#define R3964_TO_RX_PANIC   ((4000)*HZ/1000)
 
#define R3964_MAX_RETRIES   5
 
#define RX_BUF_SIZE   4000
 
#define TX_BUF_SIZE   4000
 
#define R3964_MAX_BLOCKS_IN_RX_QUEUE   100
 
#define R3964_PARITY   0x0001
 
#define R3964_FRAME   0x0002
 
#define R3964_OVERRUN   0x0004
 
#define R3964_UNKNOWN   0x0008
 
#define R3964_BREAK   0x0010
 
#define R3964_CHECKSUM   0x0020
 
#define R3964_ERROR   0x003f
 
#define R3964_BCC   0x4000
 
#define R3964_DEBUG   0x8000
 

Enumerations

enum  {
  R3964_IDLE, R3964_TX_REQUEST, R3964_TRANSMITTING, R3964_WAIT_ZVZ_BEFORE_TX_RETRY,
  R3964_WAIT_FOR_TX_ACK, R3964_WAIT_FOR_RX_BUF, R3964_RECEIVING, R3964_WAIT_FOR_BCC,
  R3964_WAIT_FOR_RX_REPEAT
}
 

Macro Definition Documentation

#define DLE   0x10

Definition at line 59 of file n_r3964.h.

#define ETX   0x03

Definition at line 58 of file n_r3964.h.

#define NAK   0x15

Definition at line 60 of file n_r3964.h.

#define R3964_BCC   0x4000

Definition at line 144 of file n_r3964.h.

#define R3964_BREAK   0x0010

Definition at line 141 of file n_r3964.h.

#define R3964_CHECKSUM   0x0020

Definition at line 142 of file n_r3964.h.

#define R3964_DEBUG   0x8000

Definition at line 145 of file n_r3964.h.

#define R3964_ERROR   0x003f

Definition at line 143 of file n_r3964.h.

#define R3964_FRAME   0x0002

Definition at line 138 of file n_r3964.h.

#define R3964_MAX_BLOCKS_IN_RX_QUEUE   100

Definition at line 135 of file n_r3964.h.

#define R3964_MAX_RETRIES   5

Definition at line 71 of file n_r3964.h.

#define R3964_NO_TX_ROOM   ((100)*HZ/1000)

Definition at line 69 of file n_r3964.h.

#define R3964_OVERRUN   0x0004

Definition at line 139 of file n_r3964.h.

#define R3964_PARITY   0x0001

Definition at line 137 of file n_r3964.h.

#define R3964_TO_NO_BUF   ((400)*HZ/1000)

Definition at line 68 of file n_r3964.h.

#define R3964_TO_QVZ   ((550)*HZ/1000)

Definition at line 66 of file n_r3964.h.

#define R3964_TO_RX_PANIC   ((4000)*HZ/1000)

Definition at line 70 of file n_r3964.h.

#define R3964_TO_ZVZ   ((220)*HZ/1000)

Definition at line 67 of file n_r3964.h.

#define R3964_UNKNOWN   0x0008

Definition at line 140 of file n_r3964.h.

#define RX_BUF_SIZE   4000

Definition at line 133 of file n_r3964.h.

#define STX   0x02

Definition at line 57 of file n_r3964.h.

#define TX_BUF_SIZE   4000

Definition at line 134 of file n_r3964.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
R3964_IDLE 
R3964_TX_REQUEST 
R3964_TRANSMITTING 
R3964_WAIT_ZVZ_BEFORE_TX_RETRY 
R3964_WAIT_FOR_TX_ACK 
R3964_WAIT_FOR_RX_BUF 
R3964_RECEIVING 
R3964_WAIT_FOR_BCC 
R3964_WAIT_FOR_RX_REPEAT 

Definition at line 74 of file n_r3964.h.