/*
* 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
*/
/*
*/
#include <string.h>
#include <strings.h>
#include <libdevinfo.h>
#include <fm/topo_mod.h>
#include "cpuboard_topo.h"
static tnode_t *
{
return (NULL);
}
/* Create FMRI */
return (NULL);
}
/* Create and bind node */
return (NULL); /* mod_errno already set */
}
return (node);
}
/*
* cpuboard_rc_node_create()
* Description:
* Create a root complex node pciexrc
* Parameters:
* mp: topo module pointer
* parent: topo parent node of the newly created pciexrc node
* dnode: Solaris device node of the root complex
* rcpath: Used to populated the dev property of the topo pciexrc node if
* the local host does not own the root complex.
*/
static tnode_t *
{
int err;
char *dnpath;
return (NULL);
}
/* Inherit parent FRU's label */
/*
* Set ASRU to be the dev-scheme ASRU
*/
/*
* The local host owns the root complex, so use the dev path
* from the di_devfs_path(), instead of the passed in rcpath,
* to populate the dev property.
*/
"dev:///%s fmri creation failed.\n",
dnpath);
return (NULL);
}
return (NULL);
}
} else {
}
/*
* Set pciexrc properties for root complex nodes
*/
/* Add the io and pci property groups */
return (NULL);
}
return (NULL);
}
/* Add the devfs path property */
if (rcpath) {
}
}
if (dnpath) {
}
/* T5440 device type is always "pciex" */
}
/* T5440 driver is always "px" */
}
}
/* This is a PCIEX Root Complex */
}
/* BDF of T5440 root complex is constant */
}
/* Make room for children */
return (rcn);
}
/*
* Create a hostbridge node.
*/
static tnode_t *
{
int err;
"cpuboard_node_create() failed.\n");
return (NULL);
}
/* Inherit parent FRU's label */
/* Make room for children */
return (hbn);
}
/*
* Enumerate hostbridge on the cpuboard. Hostbridge and root complex instances
* match the cpuboard instance.
*/
int
{
int hb;
int rc;
/* Load the pcibus module. We'll need it later. */
return (-1);
}
/* The root complex exists! */
"/motherboard=0/cpuboard=%d/hostbridge=%d/"
/* Create the hostbridge node */
"unable to create hbnode: %s\n",
return (-1);
}
/* Create the root complex node */
"unable to create rcnode: %s\n",
return (-1);
}
/*
* If dnode not NULL, enumerate pcibus nodes under the root complex.
* If dnode NULL, skip enumeration. Condition could occur if the RC
* is assigned to non-control domain.
*/
"error enumerating pcibus: %s\n",
return (-1);
}
return (0);
}