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

Go to the source code of this file.

Data Structures

struct  frame_buf
 

Macros

#define BANK1   0x0000U /* PC -> Board */
 
#define BANK2   0x01ffU /* Board -> PC */
 
#define BANK3   0x03feU /* Att Board */
 
#define BANK4   0x03ffU /* Att PC */
 
#define BANKLEN   0x01FFU
 
#define LOAD_ZONE_START   0x03f8U
 
#define LOAD_ZONE_END   0x03fdU
 
#define LOAD_RETRY   18000000
 
#define PREHDR_LEN   8
 
#define FRAME_HDR_LEN   8
 
#define MSG_CONN_REQ   0x08000100
 
#define MSG_CONN_CONF   0x00000101
 
#define MSG_CONN_IND   0x00000102
 
#define MSG_CONN_RESP   0x08000103
 
#define MSG_CONN_ACTV_REQ   0x08000300
 
#define MSG_CONN_ACTV_CONF   0x00000301
 
#define MSG_CONN_ACTV_IND   0x00000302
 
#define MSG_CONN_ACTV_RESP   0x08000303
 
#define MSG_DISC_REQ   0x08000400
 
#define MSG_DISC_CONF   0x00000401
 
#define MSG_DISC_IND   0x00000402
 
#define MSG_DISC_RESP   0x08000403
 
#define MSG_TDATA_REQ   0x0908E200
 
#define MSG_TDATA_CONF   0x0000E201
 
#define MSG_TDATA_IND   0x0000E202
 
#define MSG_TDATA_RESP   0x0908E203
 
#define MSG_SELP_REQ   0x09004000
 
#define MSG_SELP_CONF   0x00004001
 
#define MSG_ACT_TRANSP_REQ   0x0908E000
 
#define MSG_ACT_TRANSP_CONF   0x0000E001
 
#define MSG_STPROT_REQ   0x09004100
 
#define MSG_STPROT_CONF   0x00004101
 
#define MSG_PING188_REQ   0x09030500
 
#define MSG_PING188_CONF   0x000005bc
 
#define MSG_WATCH188   0x09030400
 
#define MSG_API_ON   0x08020102
 
#define MSG_POOL_PCBIT   0x08020400
 
#define MSG_POOL_PCBIT_CONF   0x00000401
 
#define MSG_INFO_IND   0x00002602
 
#define MSG_INFO_RESP   0x08002603
 
#define MSG_DEBUG_188   0x0000ff00
 
#define MAX_QUEUED   7
 
#define SCHED_READ   0x01
 
#define SCHED_WRITE   0x02
 
#define SET_RUN_TIMEOUT   2 * HZ /* 2 seconds */
 

Functions

int pcbit_l2_write (struct pcbit_dev *dev, ulong msg, ushort refnum, struct sk_buff *skb, unsigned short hdr_len)
 
irqreturn_t pcbit_irq_handler (int interrupt, void *)
 

Variables

struct pcbit_dev * dev_pcbit [MAX_PCBIT_CARDS]
 

Macro Definition Documentation

#define BANK1   0x0000U /* PC -> Board */

Definition at line 24 of file layer2.h.

#define BANK2   0x01ffU /* Board -> PC */

Definition at line 25 of file layer2.h.

#define BANK3   0x03feU /* Att Board */

Definition at line 26 of file layer2.h.

#define BANK4   0x03ffU /* Att PC */

Definition at line 27 of file layer2.h.

#define BANKLEN   0x01FFU

Definition at line 29 of file layer2.h.

#define FRAME_HDR_LEN   8

Definition at line 41 of file layer2.h.

#define LOAD_RETRY   18000000

Definition at line 34 of file layer2.h.

#define LOAD_ZONE_END   0x03fdU

Definition at line 32 of file layer2.h.

#define LOAD_ZONE_START   0x03f8U

Definition at line 31 of file layer2.h.

#define MAX_QUEUED   7

Definition at line 107 of file layer2.h.

#define MSG_ACT_TRANSP_CONF   0x0000E001

Definition at line 67 of file layer2.h.

#define MSG_ACT_TRANSP_REQ   0x0908E000

Definition at line 66 of file layer2.h.

#define MSG_API_ON   0x08020102

Definition at line 77 of file layer2.h.

#define MSG_CONN_ACTV_CONF   0x00000301

Definition at line 49 of file layer2.h.

#define MSG_CONN_ACTV_IND   0x00000302

Definition at line 50 of file layer2.h.

#define MSG_CONN_ACTV_REQ   0x08000300

Definition at line 48 of file layer2.h.

#define MSG_CONN_ACTV_RESP   0x08000303

Definition at line 51 of file layer2.h.

#define MSG_CONN_CONF   0x00000101

Definition at line 44 of file layer2.h.

#define MSG_CONN_IND   0x00000102

Definition at line 45 of file layer2.h.

#define MSG_CONN_REQ   0x08000100

Definition at line 43 of file layer2.h.

#define MSG_CONN_RESP   0x08000103

Definition at line 46 of file layer2.h.

#define MSG_DEBUG_188   0x0000ff00

Definition at line 84 of file layer2.h.

#define MSG_DISC_CONF   0x00000401

Definition at line 54 of file layer2.h.

#define MSG_DISC_IND   0x00000402

Definition at line 55 of file layer2.h.

#define MSG_DISC_REQ   0x08000400

Definition at line 53 of file layer2.h.

#define MSG_DISC_RESP   0x08000403

Definition at line 56 of file layer2.h.

#define MSG_INFO_IND   0x00002602

Definition at line 81 of file layer2.h.

#define MSG_INFO_RESP   0x08002603

Definition at line 82 of file layer2.h.

#define MSG_PING188_CONF   0x000005bc

Definition at line 73 of file layer2.h.

#define MSG_PING188_REQ   0x09030500

Definition at line 72 of file layer2.h.

#define MSG_POOL_PCBIT   0x08020400

Definition at line 78 of file layer2.h.

#define MSG_POOL_PCBIT_CONF   0x00000401

Definition at line 79 of file layer2.h.

#define MSG_SELP_CONF   0x00004001

Definition at line 64 of file layer2.h.

#define MSG_SELP_REQ   0x09004000

Definition at line 63 of file layer2.h.

#define MSG_STPROT_CONF   0x00004101

Definition at line 70 of file layer2.h.

#define MSG_STPROT_REQ   0x09004100

Definition at line 69 of file layer2.h.

#define MSG_TDATA_CONF   0x0000E201

Definition at line 59 of file layer2.h.

#define MSG_TDATA_IND   0x0000E202

Definition at line 60 of file layer2.h.

#define MSG_TDATA_REQ   0x0908E200

Definition at line 58 of file layer2.h.

#define MSG_TDATA_RESP   0x0908E203

Definition at line 61 of file layer2.h.

#define MSG_WATCH188   0x09030400

Definition at line 75 of file layer2.h.

#define PREHDR_LEN   8

Definition at line 39 of file layer2.h.

#define SCHED_READ   0x01

Definition at line 109 of file layer2.h.

#define SCHED_WRITE   0x02

Definition at line 110 of file layer2.h.

#define SET_RUN_TIMEOUT   2 * HZ /* 2 seconds */

Definition at line 112 of file layer2.h.

Function Documentation

irqreturn_t pcbit_irq_handler ( int  interrupt,
void  
)

Definition at line 497 of file layer2.c.

int pcbit_l2_write ( struct pcbit_dev *  dev,
ulong  msg,
ushort  refnum,
struct sk_buff skb,
unsigned short  hdr_len 
)

Definition at line 75 of file layer2.c.

Variable Documentation

struct pcbit_dev* dev_pcbit[MAX_PCBIT_CARDS]

Definition at line 32 of file module.c.