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

Go to the source code of this file.

Data Structures

struct  layer1
 

Macros

#define TIMER3_DEFAULT_VALUE   7000
 
#define L1S_STATE_COUNT   (ST_L1_F8 + 1)
 
#define L1_EVENT_COUNT   (EV_TIMER3 + 1)
 

Enumerations

enum  {
  ST_L1_F2, ST_L1_F3, ST_L1_F4, ST_L1_F5,
  ST_L1_F6, ST_L1_F7, ST_L1_F8
}
 
enum  {
  EV_PH_ACTIVATE, EV_PH_DEACTIVATE, EV_RESET_IND, EV_DEACT_CNF,
  EV_DEACT_IND, EV_POWER_UP, EV_ANYSIG_IND, EV_INFO2_IND,
  EV_INFO4_IND, EV_TIMER_DEACT, EV_TIMER_ACT, EV_TIMER3
}
 

Functions

int l1_event (struct layer1 *l1, u_int event)
 
 EXPORT_SYMBOL (l1_event)
 
int create_l1 (struct dchannel *dch, dchannel_l1callback *dcb)
 
 EXPORT_SYMBOL (create_l1)
 
int l1_init (u_int *deb)
 
void l1_cleanup (void)
 

Macro Definition Documentation

#define L1_EVENT_COUNT   (EV_TIMER3 + 1)

Definition at line 82 of file layer1.c.

#define L1S_STATE_COUNT   (ST_L1_F8 + 1)

Definition at line 54 of file layer1.c.

#define TIMER3_DEFAULT_VALUE   7000

Definition at line 39 of file layer1.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
ST_L1_F2 
ST_L1_F3 
ST_L1_F4 
ST_L1_F5 
ST_L1_F6 
ST_L1_F7 
ST_L1_F8 

Definition at line 44 of file layer1.c.

anonymous enum
Enumerator:
EV_PH_ACTIVATE 
EV_PH_DEACTIVATE 
EV_RESET_IND 
EV_DEACT_CNF 
EV_DEACT_IND 
EV_POWER_UP 
EV_ANYSIG_IND 
EV_INFO2_IND 
EV_INFO4_IND 
EV_TIMER_DEACT 
EV_TIMER_ACT 
EV_TIMER3 

Definition at line 67 of file layer1.c.

Function Documentation

int create_l1 ( struct dchannel dch,
dchannel_l1callback dcb 
)

Definition at line 383 of file layer1.c.

EXPORT_SYMBOL ( l1_event  )
EXPORT_SYMBOL ( create_l1  )
void l1_cleanup ( void  )

Definition at line 422 of file layer1.c.

int l1_event ( struct layer1 l1,
u_int  event 
)

Definition at line 317 of file layer1.c.

int l1_init ( u_int deb)

Definition at line 410 of file layer1.c.