npe_misc.c revision db2bae3047e71d795bde12e3baa621f4b6cc8930
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim * CDDL HEADER START
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim * The contents of this file are subject to the terms of the
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim * Common Development and Distribution License (the "License").
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim * You may not use this file except in compliance with the License.
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim * See the License for the specific language governing permissions
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim * and limitations under the License.
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim * When distributing Covered Code, include this CDDL HEADER in each
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim * If applicable, add the following below this CDDL HEADER, with the
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim * fields enclosed by brackets "[]" replaced with your own identifying
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim * information: Portions Copyright [yyyy] [name of copyright owner]
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim * CDDL HEADER END
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim * Use is subject to license terms.
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim * Library file that has miscellaneous support for npe(7d)
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim * Prototype declaration
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kimvoid npe_ck804_fix_aer_ptr(ddi_acc_handle_t cfg_hdl);
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kimint npe_disable_empty_bridges_workaround(dev_info_t *child);
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kimvoid npe_nvidia_error_mask(ddi_acc_handle_t cfg_hdl);
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kimvoid npe_intel_error_mask(ddi_acc_handle_t cfg_hdl);
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim * Default ecfga base address
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim * Query the MCFG table using ACPI. If MCFG is found, setup the
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim * 'ecfga-base-address' (Enhanced Configuration Access base address)
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim * property accordingly. Otherwise, set the value of the property
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim * to the default value.
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim /* Query the MCFG table using ACPI */
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim if (AcpiGetTable(ACPI_SIG_MCFG, 1, (ACPI_TABLE_HEADER **)&mcfgp) ==
9e86db79b7d1bbc5f2f04e99954cbd5eae0e22bbHyon Kim cfg_baap = (CFG_BASE_ADDR_ALLOC *)mcfgp->CfgBaseAddrAllocList;
cfg_baap++;
* generation/checking need to be disabled. There is a
* the future, then ECRC generation/checking should be enabled
* Disable ECRC generation/checking by masking ECRC in the AER
* disable ECRC generation/checking in the AER Control register.