Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
hisax.h File Reference
#include <linux/errno.h>
#include <linux/fs.h>
#include <linux/major.h>
#include <asm/io.h>
#include <linux/delay.h>
#include <linux/kernel.h>
#include <linux/signal.h>
#include <linux/slab.h>
#include <linux/mm.h>
#include <linux/mman.h>
#include <linux/interrupt.h>
#include <linux/ioport.h>
#include <linux/timer.h>
#include <linux/wait.h>
#include <linux/isdnif.h>
#include <linux/tty.h>
#include <linux/serial_reg.h>
#include <linux/netdevice.h>

Go to the source code of this file.

Macros

#define ERROR_STATISTIC
 
#define REQUEST   0
 
#define CONFIRM   1
 
#define INDICATION   2
 
#define RESPONSE   3
 
#define HW_ENABLE   0x0000
 
#define HW_RESET   0x0004
 
#define HW_POWERUP   0x0008
 
#define HW_ACTIVATE   0x0010
 
#define HW_DEACTIVATE   0x0018
 
#define HW_INFO1   0x0010
 
#define HW_INFO2   0x0020
 
#define HW_INFO3   0x0030
 
#define HW_INFO4   0x0040
 
#define HW_INFO4_P8   0x0040
 
#define HW_INFO4_P10   0x0048
 
#define HW_RSYNC   0x0060
 
#define HW_TESTLOOP   0x0070
 
#define CARD_RESET   0x00F0
 
#define CARD_INIT   0x00F2
 
#define CARD_RELEASE   0x00F3
 
#define CARD_TEST   0x00F4
 
#define CARD_AUX_IND   0x00F5
 
#define PH_ACTIVATE   0x0100
 
#define PH_DEACTIVATE   0x0110
 
#define PH_DATA   0x0120
 
#define PH_PULL   0x0130
 
#define PH_TESTLOOP   0x0140
 
#define PH_PAUSE   0x0150
 
#define MPH_ACTIVATE   0x0180
 
#define MPH_DEACTIVATE   0x0190
 
#define MPH_INFORMATION   0x01A0
 
#define DL_ESTABLISH   0x0200
 
#define DL_RELEASE   0x0210
 
#define DL_DATA   0x0220
 
#define DL_FLUSH   0x0224
 
#define DL_UNIT_DATA   0x0230
 
#define MDL_BC_RELEASE   0x0278
 
#define MDL_BC_ASSIGN   0x027C
 
#define MDL_ASSIGN   0x0280
 
#define MDL_REMOVE   0x0284
 
#define MDL_ERROR   0x0288
 
#define MDL_INFO_SETUP   0x02E0
 
#define MDL_INFO_CONN   0x02E4
 
#define MDL_INFO_REL   0x02E8
 
#define CC_SETUP   0x0300
 
#define CC_RESUME   0x0304
 
#define CC_MORE_INFO   0x0310
 
#define CC_IGNORE   0x0320
 
#define CC_REJECT   0x0324
 
#define CC_SETUP_COMPL   0x0330
 
#define CC_PROCEEDING   0x0340
 
#define CC_ALERTING   0x0344
 
#define CC_PROGRESS   0x0348
 
#define CC_CONNECT   0x0350
 
#define CC_CHARGE   0x0354
 
#define CC_NOTIFY   0x0358
 
#define CC_DISCONNECT   0x0360
 
#define CC_RELEASE   0x0368
 
#define CC_SUSPEND   0x0370
 
#define CC_PROCEED_SEND   0x0374
 
#define CC_REDIR   0x0378
 
#define CC_T302   0x0382
 
#define CC_T303   0x0383
 
#define CC_T304   0x0384
 
#define CC_T305   0x0385
 
#define CC_T308_1   0x0388
 
#define CC_T308_2   0x038A
 
#define CC_T309   0x0309
 
#define CC_T310   0x0390
 
#define CC_T313   0x0393
 
#define CC_T318   0x0398
 
#define CC_T319   0x0399
 
#define CC_TSPID   0x03A0
 
#define CC_NOSETUP_RSP   0x03E0
 
#define CC_SETUP_ERR   0x03E1
 
#define CC_SUSPEND_ERR   0x03E2
 
#define CC_RESUME_ERR   0x03E3
 
#define CC_CONNECT_ERR   0x03E4
 
#define CC_RELEASE_ERR   0x03E5
 
#define CC_RESTART   0x03F4
 
#define CC_TDSS1_IO   0x13F4 /* DSS1 IO user timer */
 
#define CC_TNI1_IO   0x13F5 /* NI1 IO user timer */
 
#define MAX_WAITING_CALLS   2
 
#define HZDELAY(jiffs)
 

Functions

int ll_run (struct IsdnCardState *cs, int addfeatures)
 
int CallcNew (void)
 
void CallcFree (void)
 
int CallcNewChan (struct IsdnCardState *cs)
 
void CallcFreeChan (struct IsdnCardState *cs)
 
int Isdnl1New (void)
 
void Isdnl1Free (void)
 
int Isdnl2New (void)
 
void Isdnl2Free (void)
 
int Isdnl3New (void)
 
void Isdnl3Free (void)
 
void init_tei (struct IsdnCardState *cs, int protocol)
 
void release_tei (struct IsdnCardState *cs)
 
charHiSax_getrev (const char *revision)
 
int TeiNew (void)
 
void TeiFree (void)
 

Macro Definition Documentation

#define CARD_AUX_IND   0x00F5

Definition at line 53 of file hisax.h.

#define CARD_INIT   0x00F2

Definition at line 50 of file hisax.h.

#define CARD_RELEASE   0x00F3

Definition at line 51 of file hisax.h.

#define CARD_RESET   0x00F0

Definition at line 49 of file hisax.h.

#define CARD_TEST   0x00F4

Definition at line 52 of file hisax.h.

#define CC_ALERTING   0x0344

Definition at line 87 of file hisax.h.

#define CC_CHARGE   0x0354

Definition at line 90 of file hisax.h.

#define CC_CONNECT   0x0350

Definition at line 89 of file hisax.h.

#define CC_CONNECT_ERR   0x03E4

Definition at line 113 of file hisax.h.

#define CC_DISCONNECT   0x0360

Definition at line 92 of file hisax.h.

#define CC_IGNORE   0x0320

Definition at line 83 of file hisax.h.

#define CC_MORE_INFO   0x0310

Definition at line 82 of file hisax.h.

#define CC_NOSETUP_RSP   0x03E0

Definition at line 109 of file hisax.h.

#define CC_NOTIFY   0x0358

Definition at line 91 of file hisax.h.

#define CC_PROCEED_SEND   0x0374

Definition at line 95 of file hisax.h.

#define CC_PROCEEDING   0x0340

Definition at line 86 of file hisax.h.

#define CC_PROGRESS   0x0348

Definition at line 88 of file hisax.h.

#define CC_REDIR   0x0378

Definition at line 96 of file hisax.h.

#define CC_REJECT   0x0324

Definition at line 84 of file hisax.h.

#define CC_RELEASE   0x0368

Definition at line 93 of file hisax.h.

#define CC_RELEASE_ERR   0x03E5

Definition at line 114 of file hisax.h.

#define CC_RESTART   0x03F4

Definition at line 115 of file hisax.h.

#define CC_RESUME   0x0304

Definition at line 81 of file hisax.h.

#define CC_RESUME_ERR   0x03E3

Definition at line 112 of file hisax.h.

#define CC_SETUP   0x0300

Definition at line 80 of file hisax.h.

#define CC_SETUP_COMPL   0x0330

Definition at line 85 of file hisax.h.

#define CC_SETUP_ERR   0x03E1

Definition at line 110 of file hisax.h.

#define CC_SUSPEND   0x0370

Definition at line 94 of file hisax.h.

#define CC_SUSPEND_ERR   0x03E2

Definition at line 111 of file hisax.h.

#define CC_T302   0x0382

Definition at line 97 of file hisax.h.

#define CC_T303   0x0383

Definition at line 98 of file hisax.h.

#define CC_T304   0x0384

Definition at line 99 of file hisax.h.

#define CC_T305   0x0385

Definition at line 100 of file hisax.h.

#define CC_T308_1   0x0388

Definition at line 101 of file hisax.h.

#define CC_T308_2   0x038A

Definition at line 102 of file hisax.h.

#define CC_T309   0x0309

Definition at line 103 of file hisax.h.

#define CC_T310   0x0390

Definition at line 104 of file hisax.h.

#define CC_T313   0x0393

Definition at line 105 of file hisax.h.

#define CC_T318   0x0398

Definition at line 106 of file hisax.h.

#define CC_T319   0x0399

Definition at line 107 of file hisax.h.

#define CC_TDSS1_IO   0x13F4 /* DSS1 IO user timer */

Definition at line 116 of file hisax.h.

#define CC_TNI1_IO   0x13F5 /* NI1 IO user timer */

Definition at line 117 of file hisax.h.

#define CC_TSPID   0x03A0

Definition at line 108 of file hisax.h.

#define CONFIRM   1

Definition at line 31 of file hisax.h.

#define DL_DATA   0x0220

Definition at line 67 of file hisax.h.

#define DL_ESTABLISH   0x0200

Definition at line 65 of file hisax.h.

#define DL_FLUSH   0x0224

Definition at line 68 of file hisax.h.

#define DL_RELEASE   0x0210

Definition at line 66 of file hisax.h.

#define DL_UNIT_DATA   0x0230

Definition at line 69 of file hisax.h.

#define ERROR_STATISTIC

Definition at line 28 of file hisax.h.

#define HW_ACTIVATE   0x0010

Definition at line 38 of file hisax.h.

#define HW_DEACTIVATE   0x0018

Definition at line 39 of file hisax.h.

#define HW_ENABLE   0x0000

Definition at line 35 of file hisax.h.

#define HW_INFO1   0x0010

Definition at line 41 of file hisax.h.

#define HW_INFO2   0x0020

Definition at line 42 of file hisax.h.

#define HW_INFO3   0x0030

Definition at line 43 of file hisax.h.

#define HW_INFO4   0x0040

Definition at line 44 of file hisax.h.

#define HW_INFO4_P10   0x0048

Definition at line 46 of file hisax.h.

#define HW_INFO4_P8   0x0040

Definition at line 45 of file hisax.h.

#define HW_POWERUP   0x0008

Definition at line 37 of file hisax.h.

#define HW_RESET   0x0004

Definition at line 36 of file hisax.h.

#define HW_RSYNC   0x0060

Definition at line 47 of file hisax.h.

#define HW_TESTLOOP   0x0070

Definition at line 48 of file hisax.h.

#define HZDELAY (   jiffs)
Value:
do { \
int tout = jiffs; \
\
while (tout--) { \
int loops = USEC_PER_SEC / HZ; \
while (loops--) \
udelay(1); \
} \
} while (0)

Definition at line 1304 of file hisax.h.

#define INDICATION   2

Definition at line 32 of file hisax.h.

#define MAX_WAITING_CALLS   2

Definition at line 120 of file hisax.h.

#define MDL_ASSIGN   0x0280

Definition at line 73 of file hisax.h.

#define MDL_BC_ASSIGN   0x027C

Definition at line 72 of file hisax.h.

#define MDL_BC_RELEASE   0x0278

Definition at line 71 of file hisax.h.

#define MDL_ERROR   0x0288

Definition at line 75 of file hisax.h.

#define MDL_INFO_CONN   0x02E4

Definition at line 77 of file hisax.h.

#define MDL_INFO_REL   0x02E8

Definition at line 78 of file hisax.h.

#define MDL_INFO_SETUP   0x02E0

Definition at line 76 of file hisax.h.

#define MDL_REMOVE   0x0284

Definition at line 74 of file hisax.h.

#define MPH_ACTIVATE   0x0180

Definition at line 61 of file hisax.h.

#define MPH_DEACTIVATE   0x0190

Definition at line 62 of file hisax.h.

#define MPH_INFORMATION   0x01A0

Definition at line 63 of file hisax.h.

#define PH_ACTIVATE   0x0100

Definition at line 55 of file hisax.h.

#define PH_DATA   0x0120

Definition at line 57 of file hisax.h.

#define PH_DEACTIVATE   0x0110

Definition at line 56 of file hisax.h.

#define PH_PAUSE   0x0150

Definition at line 60 of file hisax.h.

#define PH_PULL   0x0130

Definition at line 58 of file hisax.h.

#define PH_TESTLOOP   0x0140

Definition at line 59 of file hisax.h.

#define REQUEST   0

Definition at line 30 of file hisax.h.

#define RESPONSE   3

Definition at line 33 of file hisax.h.

Function Documentation

void CallcFree ( void  )

Definition at line 848 of file callc.c.

void CallcFreeChan ( struct IsdnCardState *  cs)

Definition at line 1161 of file callc.c.

int CallcNew ( void  )

Definition at line 838 of file callc.c.

int CallcNewChan ( struct IsdnCardState *  cs)

Definition at line 1120 of file callc.c.

char* HiSax_getrev ( const char revision)

Definition at line 365 of file config.c.

void init_tei ( struct IsdnCardState *  cs,
int  protocol 
)

Definition at line 421 of file tei.c.

void Isdnl1Free ( void  )

Definition at line 791 of file isdnl1.c.

int Isdnl1New ( void  )

Definition at line 755 of file isdnl1.c.

void Isdnl2Free ( void  )

Definition at line 1840 of file isdnl2.c.

int Isdnl2New ( void  )

Definition at line 1830 of file isdnl2.c.

void Isdnl3Free ( void  )

Definition at line 593 of file isdnl3.c.

int Isdnl3New ( void  )

Definition at line 583 of file isdnl3.c.

int ll_run ( struct IsdnCardState *  cs,
int  addfeatures 
)

Definition at line 741 of file config.c.

void release_tei ( struct IsdnCardState *  cs)

Definition at line 426 of file tei.c.

void TeiFree ( void  )

Definition at line 462 of file tei.c.

int TeiNew ( void  )

Definition at line 452 of file tei.c.