Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions
tei.c File Reference
#include "layer2.h"
#include <linux/random.h>
#include <linux/slab.h>
#include "core.h"

Go to the source code of this file.

Macros

#define ID_REQUEST   1
 
#define ID_ASSIGNED   2
 
#define ID_DENIED   3
 
#define ID_CHK_REQ   4
 
#define ID_CHK_RES   5
 
#define ID_REMOVE   6
 
#define ID_VERIFY   7
 
#define TEI_ENTITY_ID   0xf
 
#define MGR_PH_ACTIVE   16
 
#define MGR_PH_NOTREADY   17
 
#define DATIMER_VAL   10000
 
#define DEACT_STATE_COUNT   (ST_L1_ACTIV + 1)
 
#define DEACT_EVENT_COUNT   (EV_DATIMER + 1)
 
#define TEI_STATE_COUNT   (ST_TEI_IDVERIFY + 1)
 
#define TEI_EVENT_COUNT   (EV_TIMER + 1)
 

Enumerations

enum  { ST_L1_DEACT, ST_L1_DEACT_PENDING, ST_L1_ACTIV }
 
enum  {
  EV_ACTIVATE, EV_ACTIVATE_IND, EV_DEACTIVATE, EV_DEACTIVATE_IND,
  EV_UI, EV_DATIMER
}
 
enum  { ST_TEI_NOP, ST_TEI_IDREQ, ST_TEI_IDVERIFY }
 
enum  {
  EV_IDREQ, EV_ASSIGN, EV_ASSIGN_REQ, EV_DENIED,
  EV_CHKREQ, EV_CHKRESP, EV_REMOVE, EV_VERIFY,
  EV_TIMER
}
 

Functions

int l2_tei (struct layer2 *l2, u_int cmd, u_long arg)
 
void TEIrelease (struct layer2 *l2)
 
void delete_teimanager (struct mISDNchannel *ch)
 
int create_teimanager (struct mISDNdevice *dev)
 
int TEIInit (u_int *deb)
 
void TEIFree (void)
 

Macro Definition Documentation

#define DATIMER_VAL   10000

Definition at line 35 of file tei.c.

#define DEACT_EVENT_COUNT   (EV_DATIMER + 1)

Definition at line 66 of file tei.c.

#define DEACT_STATE_COUNT   (ST_L1_ACTIV + 1)

Definition at line 48 of file tei.c.

#define ID_ASSIGNED   2

Definition at line 23 of file tei.c.

#define ID_CHK_REQ   4

Definition at line 25 of file tei.c.

#define ID_CHK_RES   5

Definition at line 26 of file tei.c.

#define ID_DENIED   3

Definition at line 24 of file tei.c.

#define ID_REMOVE   6

Definition at line 27 of file tei.c.

#define ID_REQUEST   1

Definition at line 22 of file tei.c.

#define ID_VERIFY   7

Definition at line 28 of file tei.c.

#define MGR_PH_ACTIVE   16

Definition at line 32 of file tei.c.

#define MGR_PH_NOTREADY   17

Definition at line 33 of file tei.c.

#define TEI_ENTITY_ID   0xf

Definition at line 30 of file tei.c.

#define TEI_EVENT_COUNT   (EV_TIMER + 1)

Definition at line 212 of file tei.c.

#define TEI_STATE_COUNT   (ST_TEI_IDVERIFY + 1)

Definition at line 191 of file tei.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
ST_L1_DEACT 
ST_L1_DEACT_PENDING 
ST_L1_ACTIV 

Definition at line 43 of file tei.c.

anonymous enum
Enumerator:
EV_ACTIVATE 
EV_ACTIVATE_IND 
EV_DEACTIVATE 
EV_DEACTIVATE_IND 
EV_UI 
EV_DATIMER 

Definition at line 57 of file tei.c.

anonymous enum
Enumerator:
ST_TEI_NOP 
ST_TEI_IDREQ 
ST_TEI_IDVERIFY 

Definition at line 185 of file tei.c.

anonymous enum
Enumerator:
EV_IDREQ 
EV_ASSIGN 
EV_ASSIGN_REQ 
EV_DENIED 
EV_CHKREQ 
EV_CHKRESP 
EV_REMOVE 
EV_VERIFY 
EV_TIMER 

Definition at line 200 of file tei.c.

Function Documentation

int create_teimanager ( struct mISDNdevice *  dev)

Definition at line 1356 of file tei.c.

void delete_teimanager ( struct mISDNchannel *  ch)

Definition at line 1248 of file tei.c.

int l2_tei ( struct layer2 l2,
u_int  cmd,
u_long  arg 
)

Definition at line 943 of file tei.c.

void TEIFree ( void  )

Definition at line 1409 of file tei.c.

int TEIInit ( u_int deb)

Definition at line 1388 of file tei.c.

void TEIrelease ( struct layer2 l2)

Definition at line 978 of file tei.c.