1*c0da6274SZhi-Jun Robin Fu /*
2*c0da6274SZhi-Jun Robin Fu  * CDDL HEADER START
3*c0da6274SZhi-Jun Robin Fu  *
4*c0da6274SZhi-Jun Robin Fu  * The contents of this file are subject to the terms of the
5*c0da6274SZhi-Jun Robin Fu  * Common Development and Distribution License (the "License").
6*c0da6274SZhi-Jun Robin Fu  * You may not use this file except in compliance with the License.
7*c0da6274SZhi-Jun Robin Fu  *
8*c0da6274SZhi-Jun Robin Fu  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*c0da6274SZhi-Jun Robin Fu  * or http://www.opensolaris.org/os/licensing.
10*c0da6274SZhi-Jun Robin Fu  * See the License for the specific language governing permissions
11*c0da6274SZhi-Jun Robin Fu  * and limitations under the License.
12*c0da6274SZhi-Jun Robin Fu  *
13*c0da6274SZhi-Jun Robin Fu  * When distributing Covered Code, include this CDDL HEADER in each
14*c0da6274SZhi-Jun Robin Fu  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*c0da6274SZhi-Jun Robin Fu  * If applicable, add the following below this CDDL HEADER, with the
16*c0da6274SZhi-Jun Robin Fu  * fields enclosed by brackets "[]" replaced with your own identifying
17*c0da6274SZhi-Jun Robin Fu  * information: Portions Copyright [yyyy] [name of copyright owner]
18*c0da6274SZhi-Jun Robin Fu  *
19*c0da6274SZhi-Jun Robin Fu  * CDDL HEADER END
20*c0da6274SZhi-Jun Robin Fu  */
21*c0da6274SZhi-Jun Robin Fu /*
22*c0da6274SZhi-Jun Robin Fu  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23*c0da6274SZhi-Jun Robin Fu  * Use is subject to license terms.
24*c0da6274SZhi-Jun Robin Fu  */
25*c0da6274SZhi-Jun Robin Fu 
26*c0da6274SZhi-Jun Robin Fu #ifndef	_SYS_PCI_CFGACC_4V_H
27*c0da6274SZhi-Jun Robin Fu #define	_SYS_PCI_CFGACC_4V_H
28*c0da6274SZhi-Jun Robin Fu 
29*c0da6274SZhi-Jun Robin Fu #include <sys/pci.h>
30*c0da6274SZhi-Jun Robin Fu #include <sys/pci_cfgacc.h>
31*c0da6274SZhi-Jun Robin Fu #include "../../sun4/io/px/px_ioapi.h"
32*c0da6274SZhi-Jun Robin Fu 
33*c0da6274SZhi-Jun Robin Fu #ifdef	__cplusplus
34*c0da6274SZhi-Jun Robin Fu extern "C" {
35*c0da6274SZhi-Jun Robin Fu #endif
36*c0da6274SZhi-Jun Robin Fu 
37*c0da6274SZhi-Jun Robin Fu extern uint64_t hvio_config_get(devhandle_t, pci_device_t, pci_config_offset_t,
38*c0da6274SZhi-Jun Robin Fu     pci_config_size_t, pci_cfg_data_t *);
39*c0da6274SZhi-Jun Robin Fu extern uint64_t hvio_config_put(devhandle_t, pci_device_t, pci_config_offset_t,
40*c0da6274SZhi-Jun Robin Fu     pci_config_size_t, pci_cfg_data_t);
41*c0da6274SZhi-Jun Robin Fu 
42*c0da6274SZhi-Jun Robin Fu #ifdef	__cplusplus
43*c0da6274SZhi-Jun Robin Fu }
44*c0da6274SZhi-Jun Robin Fu #endif
45*c0da6274SZhi-Jun Robin Fu 
46*c0da6274SZhi-Jun Robin Fu #endif	/* _SYS_PCI_CFGACC_4V_H */
47