xref: /onnv-gate/usr/src/uts/common/sys/pcie_impl.h (revision 2549:f77a48ff3d29)
127Sjchu /*
227Sjchu  * CDDL HEADER START
327Sjchu  *
427Sjchu  * The contents of this file are subject to the terms of the
5*2549Sgovinda  * Common Development and Distribution License (the "License").
6*2549Sgovinda  * You may not use this file except in compliance with the License.
727Sjchu  *
827Sjchu  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
927Sjchu  * or http://www.opensolaris.org/os/licensing.
1027Sjchu  * See the License for the specific language governing permissions
1127Sjchu  * and limitations under the License.
1227Sjchu  *
1327Sjchu  * When distributing Covered Code, include this CDDL HEADER in each
1427Sjchu  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1527Sjchu  * If applicable, add the following below this CDDL HEADER, with the
1627Sjchu  * fields enclosed by brackets "[]" replaced with your own identifying
1727Sjchu  * information: Portions Copyright [yyyy] [name of copyright owner]
1827Sjchu  *
1927Sjchu  * CDDL HEADER END
2027Sjchu  */
2127Sjchu /*
22*2549Sgovinda  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
2327Sjchu  * Use is subject to license terms.
2427Sjchu  */
2527Sjchu 
2627Sjchu #ifndef	_SYS_PCIE_IMPL_H
2727Sjchu #define	_SYS_PCIE_IMPL_H
2827Sjchu 
2927Sjchu #pragma ident	"%Z%%M%	%I%	%E% SMI"
3027Sjchu 
3127Sjchu #ifdef	__cplusplus
3227Sjchu extern "C" {
3327Sjchu #endif
3427Sjchu 
3527Sjchu /*
36*2549Sgovinda  * The following flag is used for Broadcom 5714/5715 bridge prefetch issue.
37*2549Sgovinda  * This flag will be used both by px and px_pci nexus drivers.
38*2549Sgovinda  */
39*2549Sgovinda #define	PX_DMAI_FLAGS_MAP_BUFZONE	0x40000
40*2549Sgovinda 
41*2549Sgovinda /*
4227Sjchu  * PCI-Express Friendly Functions
4327Sjchu  */
4427Sjchu extern int pcie_initchild(dev_info_t *dip);
4527Sjchu extern void pcie_uninitchild(dev_info_t *dip);
46383Set142600 extern void pcie_clear_errors(dev_info_t *dip,
47383Set142600     ddi_acc_handle_t config_handle);
481159Sjchu extern void pcie_enable_errors(dev_info_t *dip,
491159Sjchu     ddi_acc_handle_t config_handle);
501159Sjchu extern void pcie_disable_errors(dev_info_t *dip,
511159Sjchu     ddi_acc_handle_t config_handle);
5227Sjchu 
5327Sjchu #ifdef	__cplusplus
5427Sjchu }
5527Sjchu #endif
5627Sjchu 
5727Sjchu #endif	/* _SYS_PCIE_IMPL_H */
58