xref: /illumos-gate/usr/src/uts/common/io/hxge/hxge_fzc.h (revision 2d6eb4a5e0a47d30189497241345dc5466bb68ab)
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 #ifdef	__cplusplus
30 extern "C" {
31 #endif
32 
33 #include <hpi_vir.h>
34 
35 hxge_status_t hxge_fzc_intr_init(p_hxge_t hxgep);
36 hxge_status_t hxge_fzc_intr_ldg_num_set(p_hxge_t hxgep);
37 hxge_status_t hxge_fzc_intr_tmres_set(p_hxge_t hxgep);
38 hxge_status_t hxge_fzc_intr_sid_set(p_hxge_t hxgep);
39 
40 hxge_status_t hxge_init_fzc_txdma_channel(p_hxge_t hxgep, uint16_t channel,
41 	p_tx_ring_t tx_ring_p, p_tx_mbox_t mbox_p);
42 
43 hxge_status_t hxge_init_fzc_rxdma_channel(p_hxge_t hxgep, uint16_t channel,
44 	p_rx_rbr_ring_t rbr_p, p_rx_rcr_ring_t rcr_p, p_rx_mbox_t mbox_p);
45 
46 hxge_status_t hxge_init_fzc_rx_common(p_hxge_t hxgep);
47 
48 hxge_status_t hxge_init_fzc_rxdma_channel_pages(p_hxge_t hxgep,
49 	uint16_t channel, p_rx_rbr_ring_t rbr_p);
50 
51 hxge_status_t hxge_init_fzc_txdma_channel_pages(p_hxge_t hxgep,
52 	uint16_t channel, p_tx_ring_t tx_ring_p);
53 
54 hxge_status_t hxge_fzc_sys_err_mask_set(p_hxge_t hxgep, boolean_t mask);
55 
56 #ifdef	__cplusplus
57 }
58 #endif
59 
60 #endif	/* _SYS_HXGE_HXGE_FZC_H */
61