7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * CDDL HEADER START
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * The contents of this file are subject to the terms of the
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * Common Development and Distribution License (the "License").
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * You may not use this file except in compliance with the License.
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * See the License for the specific language governing permissions
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * and limitations under the License.
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * When distributing Covered Code, include this CDDL HEADER in each
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * If applicable, add the following below this CDDL HEADER, with the
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * fields enclosed by brackets "[]" replaced with your own identifying
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * information: Portions Copyright [yyyy] [name of copyright owner]
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * CDDL HEADER END
d4bc0535efa2c2219e9f83246a5f371dc7f94273Krishna Elango * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * Use is subject to license terms.
0eb822a1c0c2bea495647510b75f77f0e57633ebcindihb_process(topo_mod_t *mod, tnode_t *ptn, topo_instance_t hbi, di_node_t bn)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi if ((hbdid = did_create(mod, bn, 0, hbi, NO_RC, TRUST_BDF)) == NULL)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi return (-1);
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi if ((hb = pcihostbridge_declare(mod, ptn, bn, hbi)) == NULL)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi return (-1);
12cc75c814f0c017004a9bbc96429911e008601bcindi hb, PCI_BUS, PCI_BUS, 0, MAX_HB_BUSES, (void *)hbdid) < 0) {
12cc75c814f0c017004a9bbc96429911e008601bcindi return (-1);
12cc75c814f0c017004a9bbc96429911e008601bcindi return (0);
0eb822a1c0c2bea495647510b75f77f0e57633ebcindirc_process(topo_mod_t *mod, tnode_t *ptn, topo_instance_t hbi, di_node_t bn)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi if ((hbdid = did_create(mod, bn, 0, hbi, hbi, TRUST_BDF)) == NULL)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi return (-1);
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi if ((hb = pciexhostbridge_declare(mod, ptn, bn, hbi)) == NULL)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi return (-1);
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi return (-1);
12cc75c814f0c017004a9bbc96429911e008601bcindi rc, PCI_BUS, PCIEX_BUS, 0, MAX_HB_BUSES, (void *)hbdid) < 0) {
12cc75c814f0c017004a9bbc96429911e008601bcindi return (-1);
12cc75c814f0c017004a9bbc96429911e008601bcindi return (0);
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi /* Scan for buses, top-level devinfo nodes with the right driver */
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi return (0);
00d0963faf2e861a4aef6b1bf28f99a5b2b20755dilpreet for (cnode = di_child_node(pnode); cnode != DI_NODE_NIL;
d4bc0535efa2c2219e9f83246a5f371dc7f94273Krishna Elango if (strcmp(di_driver_name(cnode), PCIEB) == 0) {
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi return (0);
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi/*ARGSUSED*/
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiplatform_hb_enum(topo_mod_t *mod, tnode_t *parent, const char *name,
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi/*ARGSUSED*/