xref: /illumos-gate/usr/src/uts/sun4/io/px/px_intr.h (revision 09b1eac2)
17c478bd9Sstevel@tonic-gate /*
27c478bd9Sstevel@tonic-gate  * CDDL HEADER START
37c478bd9Sstevel@tonic-gate  *
47c478bd9Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
5614edcaeSEvan Yan  * Common Development and Distribution License (the "License").
6614edcaeSEvan Yan  * You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate  *
87c478bd9Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate  * See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate  * and limitations under the License.
127c478bd9Sstevel@tonic-gate  *
137c478bd9Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate  *
197c478bd9Sstevel@tonic-gate  * CDDL HEADER END
207c478bd9Sstevel@tonic-gate  */
217c478bd9Sstevel@tonic-gate /*
22614edcaeSEvan Yan  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
237c478bd9Sstevel@tonic-gate  * Use is subject to license terms.
247c478bd9Sstevel@tonic-gate  */
257c478bd9Sstevel@tonic-gate 
267c478bd9Sstevel@tonic-gate #ifndef	_SYS_PX_INTR_H
277c478bd9Sstevel@tonic-gate #define	_SYS_PX_INTR_H
287c478bd9Sstevel@tonic-gate 
297c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
307c478bd9Sstevel@tonic-gate extern "C" {
317c478bd9Sstevel@tonic-gate #endif
327c478bd9Sstevel@tonic-gate 
337c478bd9Sstevel@tonic-gate extern dev_info_t *px_get_my_childs_dip(dev_info_t *dip, dev_info_t *rdip);
347c478bd9Sstevel@tonic-gate 
357c478bd9Sstevel@tonic-gate extern int px_intx_ops(dev_info_t *dip, dev_info_t *rdip, ddi_intr_op_t op,
367c478bd9Sstevel@tonic-gate 	ddi_intr_handle_impl_t *handle, void *result);
377c478bd9Sstevel@tonic-gate extern int px_msix_ops(dev_info_t *dip, dev_info_t *rdip, ddi_intr_op_t op,
387c478bd9Sstevel@tonic-gate 	ddi_intr_handle_impl_t *handle, void *result);
397c478bd9Sstevel@tonic-gate 
407c478bd9Sstevel@tonic-gate extern int px_add_intx_intr(dev_info_t *dip, dev_info_t *rdip,
417c478bd9Sstevel@tonic-gate 	ddi_intr_handle_impl_t *hdlp);
427c478bd9Sstevel@tonic-gate extern int px_rem_intx_intr(dev_info_t *dip, dev_info_t *rdip,
437c478bd9Sstevel@tonic-gate 	ddi_intr_handle_impl_t *hdlp);
447c478bd9Sstevel@tonic-gate 
457c478bd9Sstevel@tonic-gate extern int px_add_msiq_intr(dev_info_t *dip, dev_info_t *rdip,
467c478bd9Sstevel@tonic-gate 	ddi_intr_handle_impl_t *hdlp, msiq_rec_type_t rec_type,
47*09b1eac2SEvan Yan 	msgcode_t msg_code, cpuid_t cpuid, msiqid_t *msiq_id_p);
487c478bd9Sstevel@tonic-gate extern int px_rem_msiq_intr(dev_info_t *dip, dev_info_t *rdip,
497c478bd9Sstevel@tonic-gate 	ddi_intr_handle_impl_t *hdlp, msiq_rec_type_t rec_type,
507c478bd9Sstevel@tonic-gate 	msgcode_t msg_code, msiqid_t msiq_id);
517c478bd9Sstevel@tonic-gate 
527c478bd9Sstevel@tonic-gate extern uint_t px_intx_intr(caddr_t arg);
537c478bd9Sstevel@tonic-gate extern uint_t px_msiq_intr(caddr_t arg);
547c478bd9Sstevel@tonic-gate 
557c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
567c478bd9Sstevel@tonic-gate }
577c478bd9Sstevel@tonic-gate #endif
587c478bd9Sstevel@tonic-gate 
597c478bd9Sstevel@tonic-gate #endif	/* _SYS_PX_INTR_H */
60