2001-02-11 22:46:19 +00:00
|
|
|
/* $Id$
|
|
|
|
*
|
|
|
|
* Layer 1 defines
|
|
|
|
*
|
|
|
|
* This file is (c) under GNU PUBLIC LICENSE
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2003-07-21 12:00:05 +00:00
|
|
|
#include <linux/mISDNif.h>
|
2001-02-13 10:42:55 +00:00
|
|
|
#include "fsm.h"
|
2003-11-21 22:57:08 +00:00
|
|
|
#ifdef MISDN_MEMDEBUG
|
2001-03-03 08:07:30 +00:00
|
|
|
#include "memdbg.h"
|
|
|
|
#endif
|
2001-02-13 10:42:55 +00:00
|
|
|
|
2001-02-11 22:46:19 +00:00
|
|
|
#define D_RCVBUFREADY 0
|
|
|
|
#define D_XMTBUFREADY 1
|
|
|
|
#define D_L1STATECHANGE 2
|
|
|
|
#define D_CLEARBUSY 3
|
|
|
|
#define D_RX_MON0 4
|
|
|
|
#define D_RX_MON1 5
|
|
|
|
#define D_TX_MON0 6
|
|
|
|
#define D_TX_MON1 7
|
2001-09-30 17:10:25 +00:00
|
|
|
#define D_BLOCKEDATOMIC 8
|
2001-02-11 22:46:19 +00:00
|
|
|
|
2001-09-30 17:10:25 +00:00
|
|
|
#define B_RCVBUFREADY 0
|
|
|
|
#define B_XMTBUFREADY 1
|
|
|
|
#define B_BLOCKEDATOMIC 2
|
2001-02-13 10:42:55 +00:00
|
|
|
|
|
|
|
#define FLG_L1_ACTIVATING 1
|
|
|
|
#define FLG_L1_ACTIVATED 2
|
|
|
|
#define FLG_L1_DEACTTIMER 3
|
|
|
|
#define FLG_L1_ACTTIMER 4
|
|
|
|
#define FLG_L1_T3RUN 5
|
|
|
|
#define FLG_L1_PULL_REQ 6
|
|
|
|
#define FLG_L1_UINT 7
|
|
|
|
#define FLG_L1_DBLOCKED 8
|
2003-06-21 21:39:54 +00:00
|
|
|
|
|
|
|
/* L1 Debug */
|
|
|
|
#define L1_DEB_WARN 0x01
|
|
|
|
#define L1_DEB_INTSTAT 0x02
|
|
|
|
#define L1_DEB_ISAC 0x04
|
|
|
|
#define L1_DEB_ISAC_FIFO 0x08
|
|
|
|
#define L1_DEB_HSCX 0x10
|
|
|
|
#define L1_DEB_HSCX_FIFO 0x20
|
|
|
|
#define L1_DEB_LAPD 0x40
|
|
|
|
#define L1_DEB_IPAC 0x80
|
|
|
|
#define L1_DEB_RECEIVE_FRAME 0x100
|
|
|
|
#define L1_DEB_MONITOR 0x200
|
|
|
|
#define DEB_DLOG_HEX 0x400
|
|
|
|
#define DEB_DLOG_VERBOSE 0x800
|
|
|
|
|