]> CyberLeo.Net >> Repos - FreeBSD/releng/7.2.git/blob - sys/i4b/layer4/i4b_l4.h
Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.
[FreeBSD/releng/7.2.git] / sys / i4b / layer4 / i4b_l4.h
1 /*-
2  * Copyright (c) 1997, 2001 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  *
28  *      i4b_l4.h - kernel interface to userland header file
29  *      ---------------------------------------------------
30  *
31  * $FreeBSD$
32  *
33  *      last edit-date: [Thu Oct 18 10:11:51 2001]
34  *
35  *---------------------------------------------------------------------------*/
36
37 #ifndef _I4B_L4_H_
38 #define _I4B_L4_H_
39
40 extern void i4bputqueue ( struct mbuf *m );
41 extern void i4bputqueue_hipri(struct mbuf *m);
42 extern void i4b_l4_accounting(int, int, int, int, int, int, int, int, int);
43 extern void i4b_l4_alert_ind ( call_desc_t *cd );
44 extern void i4b_l4_charging_ind( call_desc_t *cd );
45 extern void i4b_l4_connect_active_ind ( call_desc_t *cd );
46 extern void i4b_l4_connect_ind ( call_desc_t *cd );
47 extern void i4b_l4_daemon_attached(void);
48 extern void i4b_l4_daemon_detached(void);
49 extern void i4b_l4_dialout( int driver, int driver_unit );
50 extern void i4b_l4_dialoutnumber(int driver, int driver_unit, int cmdlen, char *cmd);
51 extern void i4b_l4_keypad(int driver, int driver_unit, int cmdlen, char *cmd);
52 extern void i4b_l4_disconnect_ind ( call_desc_t *cd );
53 extern void i4b_l4_drvrdisc (int driver, int driver_unit );
54 extern void i4b_l4_negcomplete( call_desc_t *cd );
55 extern void i4b_l4_ifstate_changed( call_desc_t *cd, int new_state );
56 extern void i4b_l4_idle_timeout_ind( call_desc_t *cd );
57 extern void i4b_l4_info_ind ( call_desc_t *cd );
58 extern void i4b_l4_packet_ind(int, int, int, struct mbuf *pkt);
59 extern void i4b_l4_l12stat(int controller, int layer, int state);
60 extern void i4b_l4_pdeact(int controller, int numactive);
61 extern void i4b_l4_teiasg(int controller, int tei);
62 extern void i4b_l4_status_ind ( call_desc_t *cd );
63 extern void i4b_l4_proceeding_ind ( call_desc_t *cd );
64 extern void i4b_idle_check(call_desc_t *cdp);
65 extern call_desc_t * cd_by_cdid ( unsigned int cdid );
66 extern call_desc_t * cd_by_unitcr ( int unit, int cr, int crf );
67 extern void freecd_by_cd ( call_desc_t *cd );
68 extern unsigned char get_rand_cr ( int unit );
69 extern call_desc_t * reserve_cd ( void );
70 extern void T400_start ( call_desc_t *cd );
71 extern void T400_stop ( call_desc_t *cd );
72
73 #endif /* _I4B_L4_H_ */