2 * DSS.1 module definitions
4 * Copyright (C) 1996 Universidade de Lisboa
6 * Written by Pedro Roque Marques (roque@di.fc.ul.pt)
8 * This software may be used and distributed according to the terms of
9 * the GNU General Public License, incorporated herein by reference.
18 #define ST_CALL_INIT 1 /* Call initiated */
19 #define ST_OVER_SEND 2 /* Overlap sending - Requests More Info 4 call */
20 #define ST_CALL_PROC 3 /* Call Proceeding */
21 #define ST_CALL_DELV 4
22 #define ST_CALL_PRES 6 /* Call Present - Received CONN.IND */
23 #define ST_CALL_RECV 7 /* Alerting sent */
24 #define ST_CONN_REQ 8 /* Answered - waiting 4 CONN.CONF */
25 #define ST_INCM_PROC 9
27 #define ST_DISC_REQ 11
28 #define ST_DISC_IND 12
29 #define ST_SUSP_REQ 15
30 #define ST_RESM_REQ 17
31 #define ST_RELS_REQ 19
32 #define ST_OVER_RECV 25
34 #define ST_ACTIVE_SELP 26 /* Select protocol on B-Channel */
35 #define ST_ACTIVE_ACTV 27 /* Activate B-channel protocol */
37 #define MAX_STATE ST_ACTIVE_ACTV
40 #define EV_USR_SETUP_REQ 1
41 #define EV_USR_SETUP_RESP 2
42 #define EV_USR_PROCED_REQ 3
43 #define EV_USR_RELEASE_REQ 4
44 #define EV_USR_REJECT_REQ 4
46 #define EV_NET_SETUP 16
47 #define EV_NET_CALL_PROC 17
48 #define EV_NET_SETUP_ACK 18
49 #define EV_NET_CONN 19
50 #define EV_NET_CONN_ACK 20
52 #define EV_NET_SELP_RESP 21
53 #define EV_NET_ACTV_RESP 22
55 #define EV_NET_DISC 23
56 #define EV_NET_RELEASE 24
57 #define EV_NET_RELEASE_COMP 25
64 * only the ones we use
67 #define CAUSE_NORMAL 0x10U
68 #define CAUSE_NOCHAN 0x22U
85 void (*callb)(struct pcbit_dev *, struct pcbit_chan *, struct callb_data*);
88 struct fsm_timer_entry {
90 unsigned long timeout; /* in seconds */
93 extern char * isdn_state_table[];
95 void pcbit_fsm_event(struct pcbit_dev *, struct pcbit_chan *,
96 unsigned short event, struct callb_data *);
97 char * strisdnevent(ushort ev);