Add the DragonFly cvs id and perform general cleanups on cvs/rcs/sccs ids. Most
[dragonfly.git] / sys / net / i4b / layer3 / i4b_l3.h
1 /*
2  * Copyright (c) 1997, 2000 Hellmuth Michaelis. All rights reserved.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  * 1. Redistributions of source code must retain the above copyright
8  *    notice, this list of conditions and the following disclaimer.
9  * 2. Redistributions in binary form must reproduce the above copyright
10  *    notice, this list of conditions and the following disclaimer in the
11  *    documentation and/or other materials provided with the distribution.
12  *
13  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23  * SUCH DAMAGE.
24  *
25  *---------------------------------------------------------------------------
26  *
27  *      i4b_l3.h - layer 3 header file
28  *      ------------------------------
29  *
30  *      $Id: i4b_l3.h,v 1.11 2000/04/27 09:25:21 hm Exp $ 
31  *
32  * $FreeBSD: src/sys/i4b/layer3/i4b_l3.h,v 1.6.2.1 2001/08/10 14:08:42 obrien Exp $
33  * $DragonFly: src/sys/net/i4b/layer3/i4b_l3.h,v 1.2 2003/06/17 04:28:40 dillon Exp $
34  *
35  *      last edit-date: [Thu Apr 27 11:07:01 2000]
36  *
37  *---------------------------------------------------------------------------*/
38
39 #ifndef _I4B_L3_H_
40 #define _I4B_L3_H_
41
42 extern int utoc_tab[];
43 extern unsigned char cause_tab_q931[];
44
45 extern int i4b_aoc ( unsigned char *, call_desc_t *cd );
46 extern void i4b_decode_q931 ( int unit, int msg_len, u_char *msg_ptr );
47 extern int i4b_decode_q931_cs0_ie ( int unit, call_desc_t *cd, int msg_len, u_char *msg_ptr );
48 extern void i4b_decode_q931_message ( int unit, call_desc_t *cd, u_char message_type );
49 extern void i4b_l3_stop_all_timers ( call_desc_t *cd );
50 extern void i4b_l3_tx_alert ( call_desc_t *cd );
51 extern void i4b_l3_tx_connect ( call_desc_t *cd );
52 extern void i4b_l3_tx_connect_ack ( call_desc_t *cd );
53 extern void i4b_l3_tx_disconnect ( call_desc_t *cd );
54 extern void i4b_l3_tx_release ( call_desc_t *cd, int send_cause_flag );
55 extern void i4b_l3_tx_release_complete ( call_desc_t *cd, int send_cause_flag );
56 extern void i4b_l3_tx_setup ( call_desc_t *cd );
57 extern void i4b_l3_tx_status ( call_desc_t *cd, u_char q850cause );
58 extern int i4b_dl_data_ind ( int unit, struct mbuf *m );
59 extern int i4b_dl_establish_cnf ( int unit );
60 extern int i4b_dl_establish_ind ( int unit );
61 extern int i4b_dl_release_cnf ( int unit );
62 extern int i4b_dl_release_ind ( int unit );
63 extern int i4b_dl_unit_data_ind ( int unit, struct mbuf *m );
64 extern int i4b_get_dl_stat( call_desc_t *cd );
65 extern int i4b_mdl_status_ind ( int unit, int status, int parm);
66 extern void i4b_print_frame ( int len, u_char *buf );
67 extern void next_l3state ( call_desc_t *cd, int event );
68 extern char *print_l3state ( call_desc_t *cd );
69 extern unsigned char setup_cr ( call_desc_t *cd, unsigned char cr );
70 extern void T303_start ( call_desc_t *cd );
71 extern void T303_stop ( call_desc_t *cd );
72 extern void T305_start ( call_desc_t *cd );
73 extern void T305_stop ( call_desc_t *cd );
74 extern void T308_start ( call_desc_t *cd );
75 extern void T308_stop ( call_desc_t *cd );
76 extern void T309_start ( call_desc_t *cd );
77 extern void T309_stop ( call_desc_t *cd );
78 extern void T310_start ( call_desc_t *cd );
79 extern void T310_stop ( call_desc_t *cd );
80 extern void T313_start ( call_desc_t *cd );
81 extern void T313_stop ( call_desc_t *cd );
82
83 #endif /* _I4B_L3_H_ */