xref: /titanic_44/usr/src/uts/sun4/io/px/px_intr.h (revision b9e93c10c0a2a4bb069d38bb311021a9478c4711)
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 2009 Sun Microsystems, Inc.  All rights reserved.
23  * Use is subject to license terms.
24  */
25 
26 #ifndef	_SYS_PX_INTR_H
27 #define	_SYS_PX_INTR_H
28 
29 #ifdef	__cplusplus
30 extern "C" {
31 #endif
32 
33 extern dev_info_t *px_get_my_childs_dip(dev_info_t *dip, dev_info_t *rdip);
34 
35 extern int px_intx_ops(dev_info_t *dip, dev_info_t *rdip, ddi_intr_op_t op,
36 	ddi_intr_handle_impl_t *handle, void *result);
37 extern int px_msix_ops(dev_info_t *dip, dev_info_t *rdip, ddi_intr_op_t op,
38 	ddi_intr_handle_impl_t *handle, void *result);
39 
40 extern int px_add_intx_intr(dev_info_t *dip, dev_info_t *rdip,
41 	ddi_intr_handle_impl_t *hdlp);
42 extern int px_rem_intx_intr(dev_info_t *dip, dev_info_t *rdip,
43 	ddi_intr_handle_impl_t *hdlp);
44 
45 extern int px_add_msiq_intr(dev_info_t *dip, dev_info_t *rdip,
46 	ddi_intr_handle_impl_t *hdlp, msiq_rec_type_t rec_type,
47 	msgcode_t msg_code, msiqid_t *msiq_id_p);
48 extern int px_rem_msiq_intr(dev_info_t *dip, dev_info_t *rdip,
49 	ddi_intr_handle_impl_t *hdlp, msiq_rec_type_t rec_type,
50 	msgcode_t msg_code, msiqid_t msiq_id);
51 
52 extern uint_t px_intx_intr(caddr_t arg);
53 extern uint_t px_msiq_intr(caddr_t arg);
54 
55 #ifdef	__cplusplus
56 }
57 #endif
58 
59 #endif	/* _SYS_PX_INTR_H */
60