xref: /titanic_44/usr/src/uts/common/io/hxge/hxge_fzc.h (revision 22eb7cb54d8a6bcf6fe2674cb4b1f0cf2d85cfb6)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License (the "License").
6  * You may not use this file except in compliance with the License.
7  *
8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9  * or http://www.opensolaris.org/os/licensing.
10  * See the License for the specific language governing permissions
11  * and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL HEADER in each
14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15  * If applicable, add the following below this CDDL HEADER, with the
16  * fields enclosed by brackets "[]" replaced with your own identifying
17  * information: Portions Copyright [yyyy] [name of copyright owner]
18  *
19  * CDDL HEADER END
20  */
21 /*
22  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23  * Use is subject to license terms.
24  */
25 
26 #ifndef	_SYS_HXGE_HXGE_FZC_H
27 #define	_SYS_HXGE_HXGE_FZC_H
28 
29 #pragma ident	"%Z%%M%	%I%	%E% SMI"
30 
31 #ifdef	__cplusplus
32 extern "C" {
33 #endif
34 
35 #include <hpi_vir.h>
36 
37 hxge_status_t hxge_fzc_intr_init(p_hxge_t hxgep);
38 hxge_status_t hxge_fzc_intr_ldg_num_set(p_hxge_t hxgep);
39 hxge_status_t hxge_fzc_intr_tmres_set(p_hxge_t hxgep);
40 hxge_status_t hxge_fzc_intr_sid_set(p_hxge_t hxgep);
41 
42 hxge_status_t hxge_init_fzc_txdma_channel(p_hxge_t hxgep, uint16_t channel,
43 	p_tx_ring_t tx_ring_p, p_tx_mbox_t mbox_p);
44 
45 hxge_status_t hxge_init_fzc_rxdma_channel(p_hxge_t hxgep, uint16_t channel,
46 	p_rx_rbr_ring_t rbr_p, p_rx_rcr_ring_t rcr_p, p_rx_mbox_t mbox_p);
47 
48 hxge_status_t hxge_init_fzc_rx_common(p_hxge_t hxgep);
49 
50 hxge_status_t hxge_init_fzc_rxdma_channel_pages(p_hxge_t hxgep,
51 	uint16_t channel, p_rx_rbr_ring_t rbr_p);
52 
53 hxge_status_t hxge_init_fzc_txdma_channel_pages(p_hxge_t hxgep,
54 	uint16_t channel, p_tx_ring_t tx_ring_p);
55 
56 hxge_status_t hxge_fzc_sys_err_mask_set(p_hxge_t hxgep, boolean_t mask);
57 
58 #ifdef	__cplusplus
59 }
60 #endif
61 
62 #endif	/* _SYS_HXGE_HXGE_FZC_H */
63