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

Go to the source code of this file.

Macros

#define L3_STATE_COUNT   (ST_L3_LC_ESTAB + 1)
 
#define L3_EVENT_COUNT   (EV_TIMEOUT + 1)
 
#define DREL_TIMER_VALUE   40000
 

Enumerations

enum  {
  ST_L3_LC_REL, ST_L3_LC_ESTAB_WAIT, ST_L3_LC_REL_DELAY, ST_L3_LC_REL_WAIT,
  ST_L3_LC_ESTAB
}
 
enum  {
  EV_ESTABLISH_REQ, EV_ESTABLISH_IND, EV_ESTABLISH_CNF, EV_RELEASE_REQ,
  EV_RELEASE_CNF, EV_RELEASE_IND, EV_TIMEOUT
}
 

Functions

u_charfindie (u_char *p, int size, u_char ie, int wanted_set)
 
int getcallref (u_char *p)
 
int newcallref (void)
 
void newl3state (struct l3_process *pc, int state)
 
void L3InitTimer (struct l3_process *pc, struct L3Timer *t)
 
void L3DelTimer (struct L3Timer *t)
 
int L3AddTimer (struct L3Timer *t, int millisec, int event)
 
void StopAllL3Timer (struct l3_process *pc)
 
struct sk_buffl3_alloc_skb (int len)
 
struct l3_process * getl3proc (struct PStack *st, int cr)
 
struct l3_process * new_l3_process (struct PStack *st, int cr)
 
void release_l3_process (struct l3_process *p)
 
void setstack_l3dc (struct PStack *st, struct Channel *chanp)
 
void releasestack_isdnl3 (struct PStack *st)
 
void setstack_l3bc (struct PStack *st, struct Channel *chanp)
 
void l3_msg (struct PStack *st, int pr, void *arg)
 
int __init Isdnl3New (void)
 
void Isdnl3Free (void)
 

Variables

const charl3_revision = "$Revision: 2.22.2.3 $"
 

Macro Definition Documentation

#define DREL_TIMER_VALUE   40000

Definition at line 417 of file isdnl3.c.

#define L3_EVENT_COUNT   (EV_TIMEOUT + 1)

Definition at line 56 of file isdnl3.c.

#define L3_STATE_COUNT   (ST_L3_LC_ESTAB + 1)

Definition at line 35 of file isdnl3.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
ST_L3_LC_REL 
ST_L3_LC_ESTAB_WAIT 
ST_L3_LC_REL_DELAY 
ST_L3_LC_REL_WAIT 
ST_L3_LC_ESTAB 

Definition at line 27 of file isdnl3.c.

anonymous enum
Enumerator:
EV_ESTABLISH_REQ 
EV_ESTABLISH_IND 
EV_ESTABLISH_CNF 
EV_RELEASE_REQ 
EV_RELEASE_CNF 
EV_RELEASE_IND 
EV_TIMEOUT 

Definition at line 46 of file isdnl3.c.

Function Documentation

u_char* findie ( u_char p,
int  size,
u_char  ie,
int  wanted_set 
)

Definition at line 81 of file isdnl3.c.

int getcallref ( u_char p)

Definition at line 126 of file isdnl3.c.

struct l3_process* getl3proc ( struct PStack *  st,
int  cr 
)
read

Definition at line 236 of file isdnl3.c.

void Isdnl3Free ( void  )

Definition at line 593 of file isdnl3.c.

int __init Isdnl3New ( void  )

Definition at line 583 of file isdnl3.c.

struct sk_buff* l3_alloc_skb ( int  len)
read

Definition at line 205 of file isdnl3.c.

void l3_msg ( struct PStack *  st,
int  pr,
void arg 
)

Definition at line 548 of file isdnl3.c.

int L3AddTimer ( struct L3Timer *  t,
int  millisec,
int  event 
)

Definition at line 184 of file isdnl3.c.

void L3DelTimer ( struct L3Timer *  t)

Definition at line 178 of file isdnl3.c.

void L3InitTimer ( struct l3_process *  pc,
struct L3Timer *  t 
)

Definition at line 169 of file isdnl3.c.

struct l3_process* new_l3_process ( struct PStack *  st,
int  cr 
)
read

Definition at line 249 of file isdnl3.c.

int newcallref ( void  )

Definition at line 143 of file isdnl3.c.

void newl3state ( struct l3_process *  pc,
int  state 
)

Definition at line 153 of file isdnl3.c.

void release_l3_process ( struct l3_process *  p)

Definition at line 277 of file isdnl3.c.

void releasestack_isdnl3 ( struct PStack *  st)

Definition at line 387 of file isdnl3.c.

void setstack_l3bc ( struct PStack *  st,
struct Channel chanp 
)

Definition at line 401 of file isdnl3.c.

void setstack_l3dc ( struct PStack *  st,
struct Channel chanp 
)

Definition at line 330 of file isdnl3.c.

void StopAllL3Timer ( struct l3_process *  pc)

Definition at line 199 of file isdnl3.c.

Variable Documentation

const char* l3_revision = "$Revision: 2.22.2.3 $"

Definition at line 23 of file isdnl3.c.