OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [drivers/] [isdn/] [avmb1/] [capidrv.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1626 jcastillo
/*
2
 * $Id: capidrv.h,v 1.1 2005-12-20 10:16:58 jcastillo Exp $
3
 *
4
 * ISDN4Linux Driver, using capi20 interface (kernelcapi)
5
 *
6
 * Copyright 1997 by Carsten Paeth (calle@calle.in-berlin.de)
7
 *
8
 * $Log: not supported by cvs2svn $
9
 * Revision 1.1.1.1  2001/09/10 07:44:18  simons
10
 * Initial import
11
 *
12
 * Revision 1.1.1.1  2001/07/02 17:58:32  simons
13
 * Initial revision
14
 *
15
 * Revision 1.1.2.1  1998/03/20 14:38:28  calle
16
 * capidrv: prepared state machines for suspend/resume/hold
17
 * capidrv: fix bug in state machine if B1/T1 is out of nccis
18
 * b1capi: changed some errno returns.
19
 * b1capi: detect if you try to add same T1 to different io address.
20
 * b1capi: change number of nccis depending on number of channels.
21
 * b1lli: cosmetics
22
 *
23
 * Revision 1.1  1997/03/04 21:50:33  calle
24
 * Frirst version in isdn4linux
25
 *
26
 * Revision 2.2  1997/02/12 09:31:39  calle
27
 * new version
28
 *
29
 * Revision 1.1  1997/01/31 10:32:20  calle
30
 * Initial revision
31
 *
32
 */
33
#ifndef __CAPIDRV_H__
34
#define __CAPIDRV_H__
35
 
36
/*
37
 * LISTEN state machine
38
 */
39
#define ST_LISTEN_NONE                  0        /* L-0 */
40
#define ST_LISTEN_WAIT_CONF             1       /* L-0.1 */
41
#define ST_LISTEN_ACTIVE                2       /* L-1 */
42
#define ST_LISTEN_ACTIVE_WAIT_CONF      3       /* L-1.1 */
43
 
44
 
45
#define EV_LISTEN_REQ                   1       /* L-0 -> L-0.1
46
                                                   L-1 -> L-1.1 */
47
#define EV_LISTEN_CONF_ERROR            2       /* L-0.1 -> L-0
48
                                                   L-1.1 -> L-1 */
49
#define EV_LISTEN_CONF_EMPTY            3       /* L-0.1 -> L-0
50
                                                   L-1.1 -> L-0 */
51
#define EV_LISTEN_CONF_OK               4       /* L-0.1 -> L-1
52
                                                   L-1.1 -> L.1 */
53
 
54
/*
55
 * per plci state machine
56
 */
57
#define ST_PLCI_NONE                    0        /* P-0 */
58
#define ST_PLCI_OUTGOING                1       /* P-0.1 */
59
#define ST_PLCI_ALLOCATED               2       /* P-1 */
60
#define ST_PLCI_ACTIVE                  3       /* P-ACT */
61
#define ST_PLCI_INCOMING                4       /* P-2 */
62
#define ST_PLCI_FACILITY_IND            5       /* P-3 */
63
#define ST_PLCI_ACCEPTING               6       /* P-4 */
64
#define ST_PLCI_DISCONNECTING           7       /* P-5 */
65
#define ST_PLCI_DISCONNECTED            8       /* P-6 */
66
#define ST_PLCI_RESUMEING               9       /* P-0.Res */
67
#define ST_PLCI_RESUME                  10      /* P-Res */
68
#define ST_PLCI_HELD                    11      /* P-HELD */
69
 
70
#define EV_PLCI_CONNECT_REQ             1       /* P-0 -> P-0.1
71
                                                 */
72
#define EV_PLCI_CONNECT_CONF_ERROR      2       /* P-0.1 -> P-0
73
                                                 */
74
#define EV_PLCI_CONNECT_CONF_OK         3       /* P-0.1 -> P-1
75
                                                 */
76
#define EV_PLCI_FACILITY_IND_UP         4       /* P-0 -> P-1
77
                                                 */
78
#define EV_PLCI_CONNECT_IND             5       /* P-0 -> P-2
79
                                                 */
80
#define EV_PLCI_CONNECT_ACTIVE_IND      6       /* P-1 -> P-ACT
81
                                                 */
82
#define EV_PLCI_CONNECT_REJECT          7       /* P-2 -> P-5
83
                                                   P-3 -> P-5
84
                                                 */
85
#define EV_PLCI_DISCONNECT_REQ          8       /* P-1 -> P-5
86
                                                   P-2 -> P-5
87
                                                   P-3 -> P-5
88
                                                   P-4 -> P-5
89
                                                   P-ACT -> P-5
90
                                                   P-Res -> P-5 (*)
91
                                                   P-HELD -> P-5 (*)
92
                                                   */
93
#define EV_PLCI_DISCONNECT_IND          9       /* P-1 -> P-6
94
                                                   P-2 -> P-6
95
                                                   P-3 -> P-6
96
                                                   P-4 -> P-6
97
                                                   P-5 -> P-6
98
                                                   P-ACT -> P-6
99
                                                   P-Res -> P-6 (*)
100
                                                   P-HELD -> P-6 (*)
101
                                                   */
102
#define EV_PLCI_FACILITY_IND_DOWN       10      /* P-0.1 -> P-5
103
                                                   P-1 -> P-5
104
                                                   P-ACT -> P-5
105
                                                   P-2 -> P-5
106
                                                   P-3 -> P-5
107
                                                   P-4 -> P-5
108
                                                   */
109
#define EV_PLCI_DISCONNECT_RESP         11      /* P-6 -> P-0
110
                                                   */
111
#define EV_PLCI_CONNECT_RESP            12      /* P-6 -> P-0
112
                                                   */
113
 
114
#define EV_PLCI_RESUME_REQ              13      /* P-0 -> P-0.Res
115
                                                 */
116
#define EV_PLCI_RESUME_CONF_OK          14      /* P-0.Res -> P-Res
117
                                                 */
118
#define EV_PLCI_RESUME_CONF_ERROR       15      /* P-0.Res -> P-0
119
                                                 */
120
#define EV_PLCI_RESUME_IND              16      /* P-Res -> P-ACT
121
                                                 */
122
#define EV_PLCI_HOLD_IND                17      /* P-ACT -> P-HELD
123
                                                 */
124
#define EV_PLCI_RETRIEVE_IND            18      /* P-HELD -> P-ACT
125
                                                 */
126
#define EV_PLCI_SUSPEND_IND             19      /* P-ACT -> P-5
127
                                                 */
128
#define EV_PLCI_CD_IND                  20      /* P-2 -> P-5
129
                                                 */
130
 
131
/*
132
 * per ncci state machine
133
 */
134
#define ST_NCCI_PREVIOUS                        -1
135
#define ST_NCCI_NONE                            0        /* N-0 */
136
#define ST_NCCI_OUTGOING                        1       /* N-0.1 */
137
#define ST_NCCI_INCOMING                        2       /* N-1 */
138
#define ST_NCCI_ALLOCATED                       3       /* N-2 */
139
#define ST_NCCI_ACTIVE                          4       /* N-ACT */
140
#define ST_NCCI_RESETING                        5       /* N-3 */
141
#define ST_NCCI_DISCONNECTING                   6       /* N-4 */
142
#define ST_NCCI_DISCONNECTED                    7       /* N-5 */
143
 
144
#define EV_NCCI_CONNECT_B3_REQ                  1       /* N-0 -> N-0.1 */
145
#define EV_NCCI_CONNECT_B3_IND                  2       /* N-0 -> N.1 */
146
#define EV_NCCI_CONNECT_B3_CONF_OK              3       /* N-0.1 -> N.2 */
147
#define EV_NCCI_CONNECT_B3_CONF_ERROR           4       /* N-0.1 -> N.0 */
148
#define EV_NCCI_CONNECT_B3_REJECT               5       /* N-1 -> N-4 */
149
#define EV_NCCI_CONNECT_B3_RESP                 6       /* N-1 -> N-2 */
150
#define EV_NCCI_CONNECT_B3_ACTIVE_IND           7       /* N-2 -> N-ACT */
151
#define EV_NCCI_RESET_B3_REQ                    8       /* N-ACT -> N-3 */
152
#define EV_NCCI_RESET_B3_IND                    9       /* N-3 -> N-ACT */
153
#define EV_NCCI_DISCONNECT_B3_IND               10      /* N-4 -> N.5 */
154
#define EV_NCCI_DISCONNECT_B3_CONF_ERROR        11      /* N-4 -> previous */
155
#define EV_NCCI_DISCONNECT_B3_REQ               12      /* N-1 -> N-4
156
                                                           N-2 -> N-4
157
                                                           N-3 -> N-4
158
                                                           N-ACT -> N-4 */
159
#define EV_NCCI_DISCONNECT_B3_RESP              13      /* N-5 -> N-0 */
160
 
161
#endif                          /* __CAPIDRV_H__ */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.