remove __P() from this directory
[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 $
38e94a25 27 * @(#) $DragonFly: src/sys/dev/atm/hfa/fore_include.h,v 1.5 2003/08/27 10:35:16 rob Exp $
984263bc
MD
28 *
29 */
30
31/*
32 * FORE Systems 200-Series Adapter Support
33 * ---------------------------------------
34 *
35 * Local driver include files and global declarations
36 *
37 */
38
39#ifndef _FORE_INCLUDE_H
40#define _FORE_INCLUDE_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 */
47#if !(defined(FORE_PCI) || defined(FORE_SBUS))
48#if defined(sparc)
49#define FORE_SBUS
50#elif defined(__i386__)
51#define FORE_PCI
52#endif
53#endif
54
55#ifdef FORE_PCI
1f2de5d4
MD
56#include <bus/pci/pcireg.h>
57#include <bus/pci/pcivar.h>
984263bc
MD
58#endif
59
1f2de5d4
MD
60#include "fore.h"
61#include "fore_aali.h"
62#include "fore_slave.h"
63#include "fore_stats.h"
64#include "fore_var.h"
984263bc
MD
65
66/*
67 * Global function declarations
68 */
69 /* fore_buffer.c */
38e94a25
RG
70int fore_buf_allocate (Fore_unit *);
71void fore_buf_initialize (Fore_unit *);
72void fore_buf_supply (Fore_unit *);
73void fore_buf_free (Fore_unit *);
984263bc
MD
74
75 /* fore_command.c */
38e94a25
RG
76int fore_cmd_allocate (Fore_unit *);
77void fore_cmd_initialize (Fore_unit *);
78void fore_cmd_drain (Fore_unit *);
79void fore_cmd_free (Fore_unit *);
984263bc
MD
80
81 /* fore_if.c */
38e94a25
RG
82int fore_atm_ioctl (int, caddr_t, caddr_t);
83void fore_interface_free (Fore_unit *);
984263bc
MD
84
85 /* fore_init.c */
38e94a25
RG
86void fore_initialize (Fore_unit *);
87void fore_initialize_complete (Fore_unit *);
984263bc
MD
88
89 /* fore_intr.c */
90#if defined(sun)
38e94a25 91int fore_poll (void);
984263bc
MD
92#endif
93#if (defined(BSD) && (BSD <= 199306))
38e94a25 94int fore_intr (void *);
984263bc 95#else
38e94a25 96void fore_intr (void *);
984263bc 97#endif
38e94a25 98void fore_watchdog (Fore_unit *);
984263bc
MD
99
100 /* fore_load.c */
101
102 /* fore_output.c */
38e94a25 103void fore_output (Cmn_unit *, Cmn_vcc *, KBuffer *);
984263bc
MD
104
105 /* fore_receive.c */
38e94a25
RG
106int fore_recv_allocate (Fore_unit *);
107void fore_recv_initialize (Fore_unit *);
108void fore_recv_drain (Fore_unit *);
109void fore_recv_free (Fore_unit *);
984263bc
MD
110
111 /* fore_stats.c */
38e94a25 112int fore_get_stats (Fore_unit *);
984263bc
MD
113
114 /* fore_timer.c */
38e94a25 115void fore_timeout (struct atm_time *);
984263bc
MD
116
117 /* fore_transmit.c */
38e94a25
RG
118int fore_xmit_allocate (Fore_unit *);
119void fore_xmit_initialize (Fore_unit *);
120void fore_xmit_drain (Fore_unit *);
121void fore_xmit_free (Fore_unit *);
984263bc
MD
122
123 /* fore_vcm.c */
38e94a25
RG
124int fore_instvcc (Cmn_unit *, Cmn_vcc *);
125int fore_openvcc (Cmn_unit *, Cmn_vcc *);
126int fore_closevcc (Cmn_unit *, Cmn_vcc *);
984263bc
MD
127
128
129/*
130 * Global variable declarations
131 */
132extern Fore_device fore_devices[];
133extern Fore_unit *fore_units[];
134extern int fore_nunits;
135extern struct stack_defn *fore_services;
136extern struct sp_info fore_nif_pool;
137extern struct sp_info fore_vcc_pool;
138extern struct atm_time fore_timer;
139
140#endif /* _FORE_INCLUDE_H */