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

Go to the source code of this file.

Data Structures

struct  dchannel
 
struct  bchannel
 

Macros

#define DEBUG_HW   0x00000001
 
#define DEBUG_HW_OPEN   0x00000002
 
#define DEBUG_HW_DCHANNEL   0x00000100
 
#define DEBUG_HW_DFIFO   0x00000200
 
#define DEBUG_HW_BCHANNEL   0x00001000
 
#define DEBUG_HW_BFIFO   0x00002000
 
#define MAX_DFRAME_LEN_L1   300
 
#define MAX_MON_FRAME   32
 
#define MAX_LOG_SPACE   2048
 
#define MISDN_COPY_SIZE   32
 
#define FLG_TX_BUSY   0 /* tx_buf in use */
 
#define FLG_TX_NEXT   1 /* next_skb in use */
 
#define FLG_L1_BUSY   2 /* L1 is permanent busy */
 
#define FLG_L2_ACTIVATED   3 /* activated from L2 */
 
#define FLG_OPEN   5 /* channel is in use */
 
#define FLG_ACTIVE   6 /* channel is activated */
 
#define FLG_BUSY_TIMER   7
 
#define FLG_DCHANNEL   8 /* channel is D-channel */
 
#define FLG_BCHANNEL   9 /* channel is B-channel */
 
#define FLG_ECHANNEL   10 /* channel is E-channel */
 
#define FLG_TRANSPARENT   12 /* channel use transparent data */
 
#define FLG_HDLC   13 /* channel use hdlc data */
 
#define FLG_L2DATA   14 /* channel use L2 DATA primitivs */
 
#define FLG_ORIGIN   15 /* channel is on origin site */
 
#define FLG_FILLEMPTY   16 /* fill fifo on first frame (empty) */
 
#define FLG_ARCOFI_TIMER   17
 
#define FLG_ARCOFI_ERROR   18
 
#define FLG_INITIALIZED   17
 
#define FLG_DLEETX   18
 
#define FLG_LASTDLE   19
 
#define FLG_FIRST   20
 
#define FLG_LASTDATA   21
 
#define FLG_NMD_DATA   22
 
#define FLG_FTI_RUN   23
 
#define FLG_LL_OK   24
 
#define FLG_LL_CONN   25
 
#define FLG_DTMFSEND   26
 
#define FLG_TX_EMPTY   27
 
#define FLG_RX_OFF   28
 
#define FLG_RECVQUEUE   30
 
#define FLG_PHCHANGE   31
 
#define schedule_event(s, ev)
 
#define INFO0   0x8002
 
#define INFO1   0x8102
 
#define INFO2   0x8202
 
#define INFO3_P8   0x8302
 
#define INFO3_P10   0x8402
 
#define INFO4_P8   0x8502
 
#define INFO4_P10   0x8602
 
#define LOSTFRAMING   0x8702
 
#define ANYSIGNAL   0x8802
 
#define HW_POWERDOWN   0x8902
 
#define HW_RESET_REQ   0x8a02
 
#define HW_POWERUP_REQ   0x8b02
 
#define HW_DEACT_REQ   0x8c02
 
#define HW_ACTIVATE_REQ   0x8e02
 
#define HW_D_NOBLOCKED   0x8f02
 
#define HW_RESET_IND   0x9002
 
#define HW_POWERUP_IND   0x9102
 
#define HW_DEACT_IND   0x9202
 
#define HW_ACTIVATE_IND   0x9302
 
#define HW_DEACT_CNF   0x9402
 
#define HW_TESTLOOP   0x9502
 
#define HW_TESTRX_RAW   0x9602
 
#define HW_TESTRX_HDLC   0x9702
 
#define HW_TESTRX_OFF   0x9802
 
#define HW_TIMER3_IND   0x9902
 
#define HW_TIMER3_VALUE   0x9a00
 
#define HW_TIMER3_VMASK   0x00FF
 
#define MISDN_BCH_FILL_SIZE   4
 

Typedefs

typedef intdchannel_l1callback )(struct dchannel *, u_int)
 

Functions

int create_l1 (struct dchannel *, dchannel_l1callback *)
 
int l1_event (struct layer1 *, u_int)
 
int mISDN_initdchannel (struct dchannel *, int, void *)
 
int mISDN_initbchannel (struct bchannel *, unsigned short, unsigned short)
 
int mISDN_freedchannel (struct dchannel *)
 
void mISDN_clear_bchannel (struct bchannel *)
 
void mISDN_freebchannel (struct bchannel *)
 
int mISDN_ctrl_bchannel (struct bchannel *, struct mISDN_ctrl_req *)
 
void queue_ch_frame (struct mISDNchannel *, u_int, int, struct sk_buff *)
 
int dchannel_senddata (struct dchannel *, struct sk_buff *)
 
int bchannel_senddata (struct bchannel *, struct sk_buff *)
 
int bchannel_get_rxbuf (struct bchannel *, int)
 
void recv_Dchannel (struct dchannel *)
 
void recv_Echannel (struct dchannel *, struct dchannel *)
 
void recv_Bchannel (struct bchannel *, unsigned int, bool)
 
void recv_Dchannel_skb (struct dchannel *, struct sk_buff *)
 
void recv_Bchannel_skb (struct bchannel *, struct sk_buff *)
 
int get_next_bframe (struct bchannel *)
 
int get_next_dframe (struct dchannel *)
 

Macro Definition Documentation

#define ANYSIGNAL   0x8802

Definition at line 124 of file mISDNhw.h.

#define DEBUG_HW   0x00000001

Definition at line 31 of file mISDNhw.h.

#define DEBUG_HW_BCHANNEL   0x00001000

Definition at line 35 of file mISDNhw.h.

#define DEBUG_HW_BFIFO   0x00002000

Definition at line 36 of file mISDNhw.h.

#define DEBUG_HW_DCHANNEL   0x00000100

Definition at line 33 of file mISDNhw.h.

#define DEBUG_HW_DFIFO   0x00000200

Definition at line 34 of file mISDNhw.h.

#define DEBUG_HW_OPEN   0x00000002

Definition at line 32 of file mISDNhw.h.

#define FLG_ACTIVE   6 /* channel is activated */

Definition at line 49 of file mISDNhw.h.

#define FLG_ARCOFI_ERROR   18

Definition at line 63 of file mISDNhw.h.

#define FLG_ARCOFI_TIMER   17

Definition at line 62 of file mISDNhw.h.

#define FLG_BCHANNEL   9 /* channel is B-channel */

Definition at line 53 of file mISDNhw.h.

#define FLG_BUSY_TIMER   7

Definition at line 50 of file mISDNhw.h.

#define FLG_DCHANNEL   8 /* channel is D-channel */

Definition at line 52 of file mISDNhw.h.

#define FLG_DLEETX   18

Definition at line 66 of file mISDNhw.h.

#define FLG_DTMFSEND   26

Definition at line 74 of file mISDNhw.h.

#define FLG_ECHANNEL   10 /* channel is E-channel */

Definition at line 54 of file mISDNhw.h.

#define FLG_FILLEMPTY   16 /* fill fifo on first frame (empty) */

Definition at line 60 of file mISDNhw.h.

#define FLG_FIRST   20

Definition at line 68 of file mISDNhw.h.

#define FLG_FTI_RUN   23

Definition at line 71 of file mISDNhw.h.

#define FLG_HDLC   13 /* channel use hdlc data */

Definition at line 56 of file mISDNhw.h.

#define FLG_INITIALIZED   17

Definition at line 65 of file mISDNhw.h.

#define FLG_L1_BUSY   2 /* L1 is permanent busy */

Definition at line 46 of file mISDNhw.h.

#define FLG_L2_ACTIVATED   3 /* activated from L2 */

Definition at line 47 of file mISDNhw.h.

#define FLG_L2DATA   14 /* channel use L2 DATA primitivs */

Definition at line 57 of file mISDNhw.h.

#define FLG_LASTDATA   21

Definition at line 69 of file mISDNhw.h.

#define FLG_LASTDLE   19

Definition at line 67 of file mISDNhw.h.

#define FLG_LL_CONN   25

Definition at line 73 of file mISDNhw.h.

#define FLG_LL_OK   24

Definition at line 72 of file mISDNhw.h.

#define FLG_NMD_DATA   22

Definition at line 70 of file mISDNhw.h.

#define FLG_OPEN   5 /* channel is in use */

Definition at line 48 of file mISDNhw.h.

#define FLG_ORIGIN   15 /* channel is on origin site */

Definition at line 58 of file mISDNhw.h.

#define FLG_PHCHANGE   31

Definition at line 80 of file mISDNhw.h.

#define FLG_RECVQUEUE   30

Definition at line 79 of file mISDNhw.h.

#define FLG_RX_OFF   28

Definition at line 77 of file mISDNhw.h.

#define FLG_TRANSPARENT   12 /* channel use transparent data */

Definition at line 55 of file mISDNhw.h.

#define FLG_TX_BUSY   0 /* tx_buf in use */

Definition at line 44 of file mISDNhw.h.

#define FLG_TX_EMPTY   27

Definition at line 75 of file mISDNhw.h.

#define FLG_TX_NEXT   1 /* next_skb in use */

Definition at line 45 of file mISDNhw.h.

#define HW_ACTIVATE_IND   0x9302

Definition at line 134 of file mISDNhw.h.

#define HW_ACTIVATE_REQ   0x8e02

Definition at line 129 of file mISDNhw.h.

#define HW_D_NOBLOCKED   0x8f02

Definition at line 130 of file mISDNhw.h.

#define HW_DEACT_CNF   0x9402

Definition at line 135 of file mISDNhw.h.

#define HW_DEACT_IND   0x9202

Definition at line 133 of file mISDNhw.h.

#define HW_DEACT_REQ   0x8c02

Definition at line 128 of file mISDNhw.h.

#define HW_POWERDOWN   0x8902

Definition at line 125 of file mISDNhw.h.

#define HW_POWERUP_IND   0x9102

Definition at line 132 of file mISDNhw.h.

#define HW_POWERUP_REQ   0x8b02

Definition at line 127 of file mISDNhw.h.

#define HW_RESET_IND   0x9002

Definition at line 131 of file mISDNhw.h.

#define HW_RESET_REQ   0x8a02

Definition at line 126 of file mISDNhw.h.

#define HW_TESTLOOP   0x9502

Definition at line 136 of file mISDNhw.h.

#define HW_TESTRX_HDLC   0x9702

Definition at line 138 of file mISDNhw.h.

#define HW_TESTRX_OFF   0x9802

Definition at line 139 of file mISDNhw.h.

#define HW_TESTRX_RAW   0x9602

Definition at line 137 of file mISDNhw.h.

#define HW_TIMER3_IND   0x9902

Definition at line 140 of file mISDNhw.h.

#define HW_TIMER3_VALUE   0x9a00

Definition at line 141 of file mISDNhw.h.

#define HW_TIMER3_VMASK   0x00FF

Definition at line 142 of file mISDNhw.h.

#define INFO0   0x8002

Definition at line 116 of file mISDNhw.h.

#define INFO1   0x8102

Definition at line 117 of file mISDNhw.h.

#define INFO2   0x8202

Definition at line 118 of file mISDNhw.h.

#define INFO3_P10   0x8402

Definition at line 120 of file mISDNhw.h.

#define INFO3_P8   0x8302

Definition at line 119 of file mISDNhw.h.

#define INFO4_P10   0x8602

Definition at line 122 of file mISDNhw.h.

#define INFO4_P8   0x8502

Definition at line 121 of file mISDNhw.h.

#define LOSTFRAMING   0x8702

Definition at line 123 of file mISDNhw.h.

#define MAX_DFRAME_LEN_L1   300

Definition at line 38 of file mISDNhw.h.

#define MAX_LOG_SPACE   2048

Definition at line 40 of file mISDNhw.h.

#define MAX_MON_FRAME   32

Definition at line 39 of file mISDNhw.h.

#define MISDN_BCH_FILL_SIZE   4

Definition at line 147 of file mISDNhw.h.

#define MISDN_COPY_SIZE   32

Definition at line 41 of file mISDNhw.h.

#define schedule_event (   s,
  ev 
)
Value:
do { \
test_and_set_bit(ev, &((s)->Flags)); \
schedule_work(&((s)->workq)); \
} while (0)

Definition at line 82 of file mISDNhw.h.

Typedef Documentation

typedef int( dchannel_l1callback)(struct dchannel *, u_int)

Definition at line 112 of file mISDNhw.h.

Function Documentation

int bchannel_get_rxbuf ( struct bchannel ,
int   
)

Definition at line 479 of file hwchannel.c.

int bchannel_senddata ( struct bchannel ,
struct sk_buff  
)

Definition at line 439 of file hwchannel.c.

int create_l1 ( struct dchannel ,
dchannel_l1callback  
)

Definition at line 383 of file layer1.c.

int dchannel_senddata ( struct dchannel ,
struct sk_buff  
)

Definition at line 413 of file hwchannel.c.

int get_next_bframe ( struct bchannel )

Definition at line 370 of file hwchannel.c.

int get_next_dframe ( struct dchannel )

Definition at line 332 of file hwchannel.c.

int l1_event ( struct layer1 ,
u_int   
)

Definition at line 317 of file layer1.c.

void mISDN_clear_bchannel ( struct bchannel )

Definition at line 125 of file hwchannel.c.

int mISDN_ctrl_bchannel ( struct bchannel ,
struct mISDN_ctrl_req  
)

Definition at line 165 of file hwchannel.c.

void mISDN_freebchannel ( struct bchannel )

Definition at line 157 of file hwchannel.c.

int mISDN_freedchannel ( struct dchannel )

Definition at line 107 of file hwchannel.c.

int mISDN_initbchannel ( struct bchannel ,
unsigned  short,
unsigned  short 
)

Definition at line 84 of file hwchannel.c.

int mISDN_initdchannel ( struct dchannel ,
int  ,
void  
)

Definition at line 66 of file hwchannel.c.

void queue_ch_frame ( struct mISDNchannel *  ,
u_int  ,
int  ,
struct sk_buff  
)

Definition at line 393 of file hwchannel.c.

void recv_Bchannel ( struct bchannel ,
unsigned  int,
bool   
)

Definition at line 258 of file hwchannel.c.

void recv_Bchannel_skb ( struct bchannel ,
struct sk_buff  
)

Definition at line 301 of file hwchannel.c.

void recv_Dchannel ( struct dchannel )

Definition at line 220 of file hwchannel.c.

void recv_Dchannel_skb ( struct dchannel ,
struct sk_buff  
)

Definition at line 293 of file hwchannel.c.

void recv_Echannel ( struct dchannel ,
struct dchannel  
)

Definition at line 239 of file hwchannel.c.