kernel: Sync ACPICA with Intel's version 20140424.
[dragonfly.git] / sys / dev / atm / hea / eni_var.h
1 /*
2  *
3  * ===================================
4  * HARP  |  Host ATM Research Platform
5  * ===================================
6  *
7  *
8  * This Host ATM Research Platform ("HARP") file (the "Software") is
9  * made available by Network Computing Services, Inc. ("NetworkCS")
10  * "AS IS".  NetworkCS does not provide maintenance, improvements or
11  * support of any kind.
12  *
13  * NETWORKCS MAKES NO WARRANTIES OR REPRESENTATIONS, EXPRESS OR IMPLIED,
14  * INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY
15  * AND FITNESS FOR A PARTICULAR PURPOSE, AS TO ANY ELEMENT OF THE
16  * SOFTWARE OR ANY SUPPORT PROVIDED IN CONNECTION WITH THIS SOFTWARE.
17  * In no event shall NetworkCS be responsible for any damages, including
18  * but not limited to consequential damages, arising from or relating to
19  * any use of the Software or related support.
20  *
21  * Copyright 1994-1998 Network Computing Services, Inc.
22  *
23  * Copies of this Software may be made, however, the above copyright
24  * notice must be reproduced on all copies.
25  *
26  *      @(#) $FreeBSD: src/sys/dev/hea/eni_var.h,v 1.2 1999/08/28 00:41:46 peter Exp $
27  *      @(#) $DragonFly: src/sys/dev/atm/hea/eni_var.h,v 1.4 2005/02/01 00:51:49 joerg Exp $
28  *
29  */
30
31 /*
32  * Efficient ENI Adapter Support
33  * -----------------------------
34  *
35  * Local driver include files and global declarations
36  *
37  */
38
39 #ifndef _ENI_ENI_VAR_H
40 #define _ENI_ENI_VAR_H
41
42 /*
43  * Global function declarations
44  */
45         /* eni_buffer.c */
46 int     eni_init_memory (Eni_unit *);
47 caddr_t eni_allocate_buffer (Eni_unit *, u_long *);
48 void    eni_free_buffer (Eni_unit *, caddr_t);
49
50         /* eni_if.c */
51 int     eni_atm_ioctl (int, caddr_t, caddr_t);
52 void    eni_zero_stats (Eni_unit *);
53
54         /* eni_init.c */
55 int     eni_init (Eni_unit *);
56
57         /* eni_intr.c */
58 void    eni_intr (void *);
59
60         /* eni_receive.c */
61 void    eni_do_service (Eni_unit *);
62 void    eni_recv_drain (Eni_unit *);
63
64         /* eni_transmit.c */
65 int     eni_set_dma (Eni_unit *, int, u_long *, int, long *, int, u_long, int );
66 void    eni_output (Cmn_unit *, Cmn_vcc *, KBuffer *);
67 void    eni_xmit_drain (Eni_unit *);
68
69         /* eni_vcm.c */
70 int     eni_instvcc (Cmn_unit *, Cmn_vcc *);
71 int     eni_openvcc (Cmn_unit *, Cmn_vcc *);
72 int     eni_closevcc (Cmn_unit *, Cmn_vcc *);
73
74 /*
75  * Global variable declarations
76  */
77 extern Eni_unit         *eni_units[];
78 extern struct stack_defn        *eni_services;
79 extern struct sp_info   eni_nif_pool;
80 extern struct sp_info   eni_vcc_pool;
81
82 #endif  /* _ENI_ENI_VAR_H */