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.
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.
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]
22 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
26 #ifndef _SYS_PX_INTR_H
27 #define _SYS_PX_INTR_H
33 extern dev_info_t
*px_get_my_childs_dip(dev_info_t
*dip
, dev_info_t
*rdip
);
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
);
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
);
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
, cpuid_t cpuid
, 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
);
52 extern uint_t
px_intx_intr(caddr_t arg
);
53 extern uint_t
px_msiq_intr(caddr_t arg
);
59 #endif /* _SYS_PX_INTR_H */