kernel: Fix LINT too.
[dragonfly.git] / sys / dev / atm / hfa / fore_include.h
CommitLineData
984263bc
MD
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/hfa/fore_include.h,v 1.2 1999/08/28 00:41:50 peter Exp $
984263bc
MD
27 */
28
29/*
30 * FORE Systems 200-Series Adapter Support
31 * ---------------------------------------
32 *
33 * Local driver include files and global declarations
34 *
35 */
36
37#ifndef _FORE_INCLUDE_H
38#define _FORE_INCLUDE_H
39
9f621687
SW
40#include <sys/bus.h>
41
d2438d69 42#include <netproto/atm/kern_include.h>
984263bc
MD
43
44/*
45 * If not specified elsewhere, guess which type of bus support we want
46 */
1f2de5d4
MD
47#include <bus/pci/pcireg.h>
48#include <bus/pci/pcivar.h>
984263bc 49
1f2de5d4
MD
50#include "fore.h"
51#include "fore_aali.h"
52#include "fore_slave.h"
53#include "fore_stats.h"
54#include "fore_var.h"
984263bc
MD
55
56/*
57 * Global function declarations
58 */
59 /* fore_buffer.c */
38e94a25
RG
60int fore_buf_allocate (Fore_unit *);
61void fore_buf_initialize (Fore_unit *);
62void fore_buf_supply (Fore_unit *);
63void fore_buf_free (Fore_unit *);
984263bc
MD
64
65 /* fore_command.c */
38e94a25
RG
66int fore_cmd_allocate (Fore_unit *);
67void fore_cmd_initialize (Fore_unit *);
68void fore_cmd_drain (Fore_unit *);
69void fore_cmd_free (Fore_unit *);
984263bc
MD
70
71 /* fore_if.c */
38e94a25
RG
72int fore_atm_ioctl (int, caddr_t, caddr_t);
73void fore_interface_free (Fore_unit *);
984263bc
MD
74
75 /* fore_init.c */
7a651277 76void fore_initialize(void *);
38e94a25 77void fore_initialize_complete (Fore_unit *);
984263bc
MD
78
79 /* fore_intr.c */
38e94a25 80void fore_intr (void *);
38e94a25 81void fore_watchdog (Fore_unit *);
984263bc
MD
82
83 /* fore_load.c */
84
85 /* fore_output.c */
38e94a25 86void fore_output (Cmn_unit *, Cmn_vcc *, KBuffer *);
984263bc
MD
87
88 /* fore_receive.c */
38e94a25
RG
89int fore_recv_allocate (Fore_unit *);
90void fore_recv_initialize (Fore_unit *);
91void fore_recv_drain (Fore_unit *);
92void fore_recv_free (Fore_unit *);
984263bc
MD
93
94 /* fore_stats.c */
38e94a25 95int fore_get_stats (Fore_unit *);
984263bc
MD
96
97 /* fore_timer.c */
38e94a25 98void fore_timeout (struct atm_time *);
984263bc
MD
99
100 /* fore_transmit.c */
38e94a25
RG
101int fore_xmit_allocate (Fore_unit *);
102void fore_xmit_initialize (Fore_unit *);
103void fore_xmit_drain (Fore_unit *);
104void fore_xmit_free (Fore_unit *);
984263bc
MD
105
106 /* fore_vcm.c */
38e94a25
RG
107int fore_instvcc (Cmn_unit *, Cmn_vcc *);
108int fore_openvcc (Cmn_unit *, Cmn_vcc *);
109int fore_closevcc (Cmn_unit *, Cmn_vcc *);
984263bc
MD
110
111
112/*
113 * Global variable declarations
114 */
115extern Fore_device fore_devices[];
116extern Fore_unit *fore_units[];
117extern int fore_nunits;
118extern struct stack_defn *fore_services;
119extern struct sp_info fore_nif_pool;
120extern struct sp_info fore_vcc_pool;
121extern struct atm_time fore_timer;
122
123#endif /* _FORE_INCLUDE_H */