/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#include <sys/pci_cfgspace.h>
#include <vm/seg_kmem.h>
#include <sys/cpu_module.h>
#include "intel_nhm.h"
void
{
int i, j, k;
reg.pci_phys_mid = 0;
reg.pci_phys_low = 0;
reg.pci_size_hi = 0;
for (i = 0; i < MAX_CPU_NODES; i++) {
for (j = 0; j < CPU_PCI_DEVS; j++) {
for (k = 0; k < CPU_PCI_FUNCS; k++) {
<< PCI_REG_BUS_SHIFT) +
(j << PCI_REG_DEV_SHIFT) +
(k << PCI_REG_FUNC_SHIFT);
"cannot create reg property");
if (pci_config_setup(dip,
&dev_pci_hdl[i][j][k]) != DDI_SUCCESS)
"pci_config_setup failed");
}
}
}
}
void
{
int i, j, k;
for (i = 0; i < MAX_CPU_NODES; i++) {
for (j = 0; j < CPU_PCI_DEVS; j++) {
for (k = 0; k < CPU_PCI_FUNCS; k++) {
pci_config_teardown(&dev_pci_hdl[i][j][k]);
}
}
}
}
static ddi_acc_handle_t
{
int slot;
} else {
hdl = 0;
}
return (hdl);
}
{
}
{
}
{
}
void
{
}
void
{
}
void
{
}