| 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.3 2003/08/27 10:35:15 rob 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 | #if defined(BSD) && BSD < 199506 |
| 59 | int eni_intr (void *); |
| 60 | #else |
| 61 | void eni_intr (void *); |
| 62 | #endif |
| 63 | |
| 64 | /* eni_receive.c */ |
| 65 | void eni_do_service (Eni_unit *); |
| 66 | void eni_recv_drain (Eni_unit *); |
| 67 | |
| 68 | /* eni_transmit.c */ |
| 69 | int eni_set_dma (Eni_unit *, int, u_long *, int, long *, int, u_long, int ); |
| 70 | void eni_output (Cmn_unit *, Cmn_vcc *, KBuffer *); |
| 71 | void eni_xmit_drain (Eni_unit *); |
| 72 | |
| 73 | /* eni_vcm.c */ |
| 74 | int eni_instvcc (Cmn_unit *, Cmn_vcc *); |
| 75 | int eni_openvcc (Cmn_unit *, Cmn_vcc *); |
| 76 | int eni_closevcc (Cmn_unit *, Cmn_vcc *); |
| 77 | |
| 78 | /* |
| 79 | * Global variable declarations |
| 80 | */ |
| 81 | extern Eni_unit *eni_units[]; |
| 82 | extern struct stack_defn *eni_services; |
| 83 | extern struct sp_info eni_nif_pool; |
| 84 | extern struct sp_info eni_vcc_pool; |
| 85 | |
| 86 | #endif /* _ENI_ENI_VAR_H */ |