xref: /onnv-gate/usr/src/uts/common/sys/hotplug/pci/pcishpc.h (revision 11445:03736011d310)
11531Skini /*
21531Skini  * CDDL HEADER START
31531Skini  *
41531Skini  * The contents of this file are subject to the terms of the
51540Skini  * Common Development and Distribution License (the "License").
61540Skini  * You may not use this file except in compliance with the License.
71531Skini  *
81531Skini  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
91531Skini  * or http://www.opensolaris.org/os/licensing.
101531Skini  * See the License for the specific language governing permissions
111531Skini  * and limitations under the License.
121531Skini  *
131531Skini  * When distributing Covered Code, include this CDDL HEADER in each
141531Skini  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
151531Skini  * If applicable, add the following below this CDDL HEADER, with the
161531Skini  * fields enclosed by brackets "[]" replaced with your own identifying
171531Skini  * information: Portions Copyright [yyyy] [name of copyright owner]
181531Skini  *
191531Skini  * CDDL HEADER END
201531Skini  */
211531Skini /*
22*11445SEvan.Yan@Sun.COM  * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
231531Skini  * Use is subject to license terms.
241531Skini  */
251531Skini 
2610923SEvan.Yan@Sun.COM #ifndef	_SYS_HOTPLUG_PCI_PCISHPC_H
2710923SEvan.Yan@Sun.COM #define	_SYS_HOTPLUG_PCI_PCISHPC_H
281531Skini 
291531Skini #ifdef	__cplusplus
301531Skini extern "C" {
311531Skini #endif
321531Skini 
3310923SEvan.Yan@Sun.COM int pcishpc_init(dev_info_t *dip);
3410923SEvan.Yan@Sun.COM int pcishpc_uninit(dev_info_t *dip);
3510923SEvan.Yan@Sun.COM int pcishpc_intr(dev_info_t *dip);
36*11445SEvan.Yan@Sun.COM int pcishpc_enable_irqs(pcie_hp_ctrl_t *ctrl_p);
37*11445SEvan.Yan@Sun.COM int pcishpc_disable_irqs(pcie_hp_ctrl_t *ctrl_p);
3810923SEvan.Yan@Sun.COM int pcishpc_hp_ops(dev_info_t *dip, char *cn_name, ddi_hp_op_t op, void *arg,
3910923SEvan.Yan@Sun.COM     void *result);
401531Skini 
411531Skini #ifdef	__cplusplus
421531Skini }
431531Skini #endif
441531Skini 
4510923SEvan.Yan@Sun.COM #endif	/* _SYS_HOTPLUG_PCI_PCISHPC_H */
46