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

Go to the source code of this file.

Data Structures

struct  pcbit_ioctl
 

Macros

#define MAX_PCBIT_CARDS   4
 
#define BLOCK_TIMER
 
#define PCBIT_IOCTL_GETSTAT   0x01 /* layer2 status */
 
#define PCBIT_IOCTL_LWMODE   0x02 /* linear write mode */
 
#define PCBIT_IOCTL_STRLOAD   0x03 /* start load mode */
 
#define PCBIT_IOCTL_ENDLOAD   0x04 /* end load mode */
 
#define PCBIT_IOCTL_SETBYTE   0x05 /* set byte */
 
#define PCBIT_IOCTL_GETBYTE   0x06 /* get byte */
 
#define PCBIT_IOCTL_RUNNING   0x07 /* set protocol running */
 
#define PCBIT_IOCTL_WATCH188   0x08 /* set watch 188 */
 
#define PCBIT_IOCTL_PING188   0x09 /* ping 188 */
 
#define PCBIT_IOCTL_FWMODE   0x0A /* firmware write mode */
 
#define PCBIT_IOCTL_STOP   0x0B /* stop protocol */
 
#define PCBIT_IOCTL_APION   0x0C /* issue API_ON */
 
#define PCBIT_GETSTAT   (PCBIT_IOCTL_GETSTAT + IIOCDRVCTL)
 
#define PCBIT_LWMODE   (PCBIT_IOCTL_LWMODE + IIOCDRVCTL)
 
#define PCBIT_STRLOAD   (PCBIT_IOCTL_STRLOAD + IIOCDRVCTL)
 
#define PCBIT_ENDLOAD   (PCBIT_IOCTL_ENDLOAD + IIOCDRVCTL)
 
#define PCBIT_SETBYTE   (PCBIT_IOCTL_SETBYTE + IIOCDRVCTL)
 
#define PCBIT_GETBYTE   (PCBIT_IOCTL_GETBYTE + IIOCDRVCTL)
 
#define PCBIT_RUNNING   (PCBIT_IOCTL_RUNNING + IIOCDRVCTL)
 
#define PCBIT_WATCH188   (PCBIT_IOCTL_WATCH188 + IIOCDRVCTL)
 
#define PCBIT_PING188   (PCBIT_IOCTL_PING188 + IIOCDRVCTL)
 
#define PCBIT_FWMODE   (PCBIT_IOCTL_FWMODE + IIOCDRVCTL)
 
#define PCBIT_STOP   (PCBIT_IOCTL_STOP + IIOCDRVCTL)
 
#define PCBIT_APION   (PCBIT_IOCTL_APION + IIOCDRVCTL)
 
#define MAXSUPERLINE   3000
 
#define L2_DOWN   0
 
#define L2_LOADING   1
 
#define L2_LWMODE   2
 
#define L2_FWMODE   3
 
#define L2_STARTING   4
 
#define L2_RUNNING   5
 
#define L2_ERROR   6
 

Functions

void pcbit_deliver (struct work_struct *work)
 
int pcbit_init_dev (int board, int mem_base, int irq)
 
void pcbit_terminate (int board)
 
void pcbit_l3_receive (struct pcbit_dev *dev, ulong msg, struct sk_buff *skb, ushort hdr_len, ushort refnum)
 
void pcbit_state_change (struct pcbit_dev *dev, struct pcbit_chan *chan, unsigned short i, unsigned short ev, unsigned short f)
 

Macro Definition Documentation

#define BLOCK_TIMER

Definition at line 20 of file pcbit.h.

#define L2_DOWN   0

Definition at line 161 of file pcbit.h.

#define L2_ERROR   6

Definition at line 167 of file pcbit.h.

#define L2_FWMODE   3

Definition at line 164 of file pcbit.h.

#define L2_LOADING   1

Definition at line 162 of file pcbit.h.

#define L2_LWMODE   2

Definition at line 163 of file pcbit.h.

#define L2_RUNNING   5

Definition at line 166 of file pcbit.h.

#define L2_STARTING   4

Definition at line 165 of file pcbit.h.

#define MAX_PCBIT_CARDS   4

Definition at line 17 of file pcbit.h.

#define MAXSUPERLINE   3000

Definition at line 157 of file pcbit.h.

#define PCBIT_APION   (PCBIT_IOCTL_APION + IIOCDRVCTL)

Definition at line 155 of file pcbit.h.

#define PCBIT_ENDLOAD   (PCBIT_IOCTL_ENDLOAD + IIOCDRVCTL)

Definition at line 147 of file pcbit.h.

#define PCBIT_FWMODE   (PCBIT_IOCTL_FWMODE + IIOCDRVCTL)

Definition at line 153 of file pcbit.h.

#define PCBIT_GETBYTE   (PCBIT_IOCTL_GETBYTE + IIOCDRVCTL)

Definition at line 149 of file pcbit.h.

#define PCBIT_GETSTAT   (PCBIT_IOCTL_GETSTAT + IIOCDRVCTL)

Definition at line 144 of file pcbit.h.

#define PCBIT_IOCTL_APION   0x0C /* issue API_ON */

Definition at line 140 of file pcbit.h.

#define PCBIT_IOCTL_ENDLOAD   0x04 /* end load mode */

Definition at line 132 of file pcbit.h.

#define PCBIT_IOCTL_FWMODE   0x0A /* firmware write mode */

Definition at line 138 of file pcbit.h.

#define PCBIT_IOCTL_GETBYTE   0x06 /* get byte */

Definition at line 134 of file pcbit.h.

#define PCBIT_IOCTL_GETSTAT   0x01 /* layer2 status */

Definition at line 129 of file pcbit.h.

#define PCBIT_IOCTL_LWMODE   0x02 /* linear write mode */

Definition at line 130 of file pcbit.h.

#define PCBIT_IOCTL_PING188   0x09 /* ping 188 */

Definition at line 137 of file pcbit.h.

#define PCBIT_IOCTL_RUNNING   0x07 /* set protocol running */

Definition at line 135 of file pcbit.h.

#define PCBIT_IOCTL_SETBYTE   0x05 /* set byte */

Definition at line 133 of file pcbit.h.

#define PCBIT_IOCTL_STOP   0x0B /* stop protocol */

Definition at line 139 of file pcbit.h.

#define PCBIT_IOCTL_STRLOAD   0x03 /* start load mode */

Definition at line 131 of file pcbit.h.

#define PCBIT_IOCTL_WATCH188   0x08 /* set watch 188 */

Definition at line 136 of file pcbit.h.

#define PCBIT_LWMODE   (PCBIT_IOCTL_LWMODE + IIOCDRVCTL)

Definition at line 145 of file pcbit.h.

#define PCBIT_PING188   (PCBIT_IOCTL_PING188 + IIOCDRVCTL)

Definition at line 152 of file pcbit.h.

#define PCBIT_RUNNING   (PCBIT_IOCTL_RUNNING + IIOCDRVCTL)

Definition at line 150 of file pcbit.h.

#define PCBIT_SETBYTE   (PCBIT_IOCTL_SETBYTE + IIOCDRVCTL)

Definition at line 148 of file pcbit.h.

#define PCBIT_STOP   (PCBIT_IOCTL_STOP + IIOCDRVCTL)

Definition at line 154 of file pcbit.h.

#define PCBIT_STRLOAD   (PCBIT_IOCTL_STRLOAD + IIOCDRVCTL)

Definition at line 146 of file pcbit.h.

#define PCBIT_WATCH188   (PCBIT_IOCTL_WATCH188 + IIOCDRVCTL)

Definition at line 151 of file pcbit.h.

Function Documentation

void pcbit_deliver ( struct work_struct work)

Definition at line 284 of file layer2.c.

int pcbit_init_dev ( int  board,
int  mem_base,
int  irq 
)

Definition at line 71 of file drv.c.

void pcbit_l3_receive ( struct pcbit_dev *  dev,
ulong  msg,
struct sk_buff skb,
ushort  hdr_len,
ushort  refnum 
)

Definition at line 467 of file drv.c.

void pcbit_state_change ( struct pcbit_dev *  dev,
struct pcbit_chan *  chan,
unsigned short  i,
unsigned short  ev,
unsigned short  f 
)

Definition at line 773 of file drv.c.

void pcbit_terminate ( int  board)