hb_sun4v.c revision 29493bd8e037cbaea9095b34172305abb589cb6b
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * CDDL HEADER START
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * The contents of this file are subject to the terms of the
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * Common Development and Distribution License (the "License").
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * You may not use this file except in compliance with the License.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * See the License for the specific language governing permissions
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * and limitations under the License.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * When distributing Covered Code, include this CDDL HEADER in each
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * If applicable, add the following below this CDDL HEADER, with the
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * fields enclosed by brackets "[]" replaced with your own identifying
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * information: Portions Copyright [yyyy] [name of copyright owner]
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * CDDL HEADER END
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * Use is subject to license terms.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#pragma ident "%Z%%M% %I% %E% SMI"
3db3f65c6274eb042354801a308c8e9bc4994553amw { TOPO_PGROUP_IO, TOPO_STABILITY_PRIVATE, TOPO_STABILITY_PRIVATE, 1 };
7b59d02d2a384be9a08087b14defadd214b3c1ddjb { TOPO_PGROUP_PCI, TOPO_STABILITY_PRIVATE, TOPO_STABILITY_PRIVATE, 1 };
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb * get_rcs()
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * Description:
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * Return a list of PX instances in the dev tree.
return (NULL);
return (NULL);
return (rcs);
static di_node_t
busorrc_t *p;
return (p->br_din);
return (NULL);
static tnode_t *
int err;
return (NULL);
return (NULL);
return (node);
tnode_t *
return (NULL);
return (hbn);
static tnode_t *
int err;
return (NULL);
dnpath);
return (NULL);
return (NULL);
return (NULL);
return (NULL);
return (NULL);
return (rcn);
* Given the hostbridge/pciexrc information, this enumerator creates the
* pcibus. If not, it simply create the hostbridge/pciexrc nodes without the
int err = 0;
int nhbnode = 0;
nrcs = 0;
int brd = 0;
if (err != 0)
nrcnode++;
nhbnode++;
if (err != 0) {
for (i = 0; i < nhbnode; i++)
for (i = 0; i < nrcnode; i++)
return (err);