127Sjchu /* 227Sjchu * CDDL HEADER START 327Sjchu * 427Sjchu * The contents of this file are subject to the terms of the 52549Sgovinda * Common Development and Distribution License (the "License"). 62549Sgovinda * 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 /* 222549Sgovinda * 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 /* 362549Sgovinda * The following flag is used for Broadcom 5714/5715 bridge prefetch issue. 372549Sgovinda * This flag will be used both by px and px_pci nexus drivers. 382549Sgovinda */ 392549Sgovinda #define PX_DMAI_FLAGS_MAP_BUFZONE 0x40000 402549Sgovinda 412549Sgovinda /* 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); 482738Skrishnae extern int pcie_postattach_child(dev_info_t *dip); 491159Sjchu extern void pcie_enable_errors(dev_info_t *dip, 501159Sjchu ddi_acc_handle_t config_handle); 511159Sjchu extern void pcie_disable_errors(dev_info_t *dip, 521159Sjchu ddi_acc_handle_t config_handle); 53*3156Sgirish extern dev_info_t *pcie_get_my_childs_dip(dev_info_t *dip, dev_info_t *rdip); 542738Skrishnae extern int pcie_enable_ce(dev_info_t *dip, 552738Skrishnae ddi_acc_handle_t config_handle); 5627Sjchu 5727Sjchu #ifdef __cplusplus 5827Sjchu } 5927Sjchu #endif 6027Sjchu 6127Sjchu #endif /* _SYS_PCIE_IMPL_H */ 62