xref: /onnv-gate/usr/src/uts/common/sys/hotplug/pci/pciehpc.h (revision 881:e6bc7f4b8a33)
1*881Sjohnny /*
2*881Sjohnny  * CDDL HEADER START
3*881Sjohnny  *
4*881Sjohnny  * The contents of this file are subject to the terms of the
5*881Sjohnny  * Common Development and Distribution License, Version 1.0 only
6*881Sjohnny  * (the "License").  You may not use this file except in compliance
7*881Sjohnny  * with the License.
8*881Sjohnny  *
9*881Sjohnny  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*881Sjohnny  * or http://www.opensolaris.org/os/licensing.
11*881Sjohnny  * See the License for the specific language governing permissions
12*881Sjohnny  * and limitations under the License.
13*881Sjohnny  *
14*881Sjohnny  * When distributing Covered Code, include this CDDL HEADER in each
15*881Sjohnny  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*881Sjohnny  * If applicable, add the following below this CDDL HEADER, with the
17*881Sjohnny  * fields enclosed by brackets "[]" replaced with your own identifying
18*881Sjohnny  * information: Portions Copyright [yyyy] [name of copyright owner]
19*881Sjohnny  *
20*881Sjohnny  * CDDL HEADER END
21*881Sjohnny  */
22*881Sjohnny 
23*881Sjohnny /*
24*881Sjohnny  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
25*881Sjohnny  * Use is subject to license terms.
26*881Sjohnny  */
27*881Sjohnny 
28*881Sjohnny #ifndef	_SYS_HOTPLUG_PCI_PCIEHPC_H
29*881Sjohnny #define	_SYS_HOTPLUG_PCI_PCIEHPC_H
30*881Sjohnny 
31*881Sjohnny #pragma ident	"%Z%%M%	%I%	%E% SMI"
32*881Sjohnny 
33*881Sjohnny #ifdef	__cplusplus
34*881Sjohnny extern "C" {
35*881Sjohnny #endif
36*881Sjohnny 
37*881Sjohnny /*
38*881Sjohnny  * Interfaces exported by PCI-E nexus Hot Plug Controller extension module
39*881Sjohnny  */
40*881Sjohnny 
41*881Sjohnny /* register ops for read/write of non-standard HPC (e.g: OPL platform) */
42*881Sjohnny typedef struct pciehpc_regops {
43*881Sjohnny 	uint_t	(*get)(void *cookie, off_t offset);
44*881Sjohnny 	uint_t	(*put)(void *cookie, off_t offset, uint_t val);
45*881Sjohnny 	void	*cookie;
46*881Sjohnny } pciehpc_regops_t;
47*881Sjohnny 
48*881Sjohnny int pciehpc_init(dev_info_t *, pciehpc_regops_t *);
49*881Sjohnny int pciehpc_uninit(dev_info_t *);
50*881Sjohnny int pciehpc_intr(dev_info_t *);
51*881Sjohnny 
52*881Sjohnny #ifdef	__cplusplus
53*881Sjohnny }
54*881Sjohnny #endif
55*881Sjohnny 
56*881Sjohnny #endif	/* _SYS_HOTPLUG_PCI_PCIEHPC_H */
57