3 * ===================================
4 * HARP | Host ATM Research Platform
5 * ===================================
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.
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.
21 * Copyright 1994-1998 Network Computing Services, Inc.
23 * Copies of this Software may be made, however, the above copyright
24 * notice must be reproduced on all copies.
26 * @(#) $FreeBSD: src/sys/dev/hfa/fore_include.h,v 1.2 1999/08/28 00:41:50 peter Exp $
30 * FORE Systems 200-Series Adapter Support
31 * ---------------------------------------
33 * Local driver include files and global declarations
37 #ifndef _FORE_INCLUDE_H
38 #define _FORE_INCLUDE_H
42 #include <netproto/atm/kern_include.h>
45 * If not specified elsewhere, guess which type of bus support we want
47 #include <bus/pci/pcireg.h>
48 #include <bus/pci/pcivar.h>
51 #include "fore_aali.h"
52 #include "fore_slave.h"
53 #include "fore_stats.h"
57 * Global function declarations
60 int fore_buf_allocate (Fore_unit *);
61 void fore_buf_initialize (Fore_unit *);
62 void fore_buf_supply (Fore_unit *);
63 void fore_buf_free (Fore_unit *);
66 int fore_cmd_allocate (Fore_unit *);
67 void fore_cmd_initialize (Fore_unit *);
68 void fore_cmd_drain (Fore_unit *);
69 void fore_cmd_free (Fore_unit *);
72 int fore_atm_ioctl (int, caddr_t, caddr_t);
73 void fore_interface_free (Fore_unit *);
76 void fore_initialize(void *);
77 void fore_initialize_complete (Fore_unit *);
80 void fore_intr (void *);
81 void fore_watchdog (Fore_unit *);
86 void fore_output (Cmn_unit *, Cmn_vcc *, KBuffer *);
89 int fore_recv_allocate (Fore_unit *);
90 void fore_recv_initialize (Fore_unit *);
91 void fore_recv_drain (Fore_unit *);
92 void fore_recv_free (Fore_unit *);
95 int fore_get_stats (Fore_unit *);
98 void fore_timeout (struct atm_time *);
100 /* fore_transmit.c */
101 int fore_xmit_allocate (Fore_unit *);
102 void fore_xmit_initialize (Fore_unit *);
103 void fore_xmit_drain (Fore_unit *);
104 void fore_xmit_free (Fore_unit *);
107 int fore_instvcc (Cmn_unit *, Cmn_vcc *);
108 int fore_openvcc (Cmn_unit *, Cmn_vcc *);
109 int fore_closevcc (Cmn_unit *, Cmn_vcc *);
113 * Global variable declarations
115 extern Fore_device fore_devices[];
116 extern Fore_unit *fore_units[];
117 extern int fore_nunits;
118 extern struct stack_defn *fore_services;
119 extern struct sp_info fore_nif_pool;
120 extern struct sp_info fore_vcc_pool;
121 extern struct atm_time fore_timer;
123 #endif /* _FORE_INCLUDE_H */