iob_platform.c revision 0eb822a1c0c2bea495647510b75f77f0e57633eb
/*
* 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 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* SUNW,Sun-Fire platform ioboard topology enumerator
*/
#include <string.h>
#include <libdevinfo.h>
#include <fm/topo_mod.h>
#include <ioboard.h>
#include <hostbridge.h>
#include <util.h>
#define IOBOARD "ioboard"
#define LABEL "IOBD"
#define ERIE "SUNW,Sun-Fire-T1000"
#define ERIE2 "SUNW,SPARC-Enterprise-T1000"
#define HB_MAX 1
/*ARGSUSED*/
int
{
return (0);
}
static tnode_t *
{
int err;
!= 0) {
return (NULL);
}
}
return (NULL);
}
return (NULL); /* mod_errno already set */
}
}
return (ion);
}
/*ARGSUSED*/
int
{
int err;
char *plat;
}
/*
* The SUNW,SunFireT1000 (Erie) platform links in the SUNW,SunFireT200
* hc-topology. Unfortunately, the SUNW,SunFireT1000 does not contain an
* ioboard. For SUNW,SunFireT1000 systems, we must begin the I/O
* topology directly below the motherboard.
*
* To further the mess, on the SUNW,SunFireT200 (Ontario) platform, a
* mistake was made with the topology defintion. The ioboard was made
* a peer to the motherboard. This is incorrect in terms of
* what we allow for an hc topology according the Fault
* Managed Resources specification and what is physically
* possible in the system. Nevertheless, a change to
* the topology will result in mis-diagnoses for systems
* that have already shipped. In the interest of backward
* compatibility, we continue to allow the
* ioboard to be a peer to the motherboard SUNW,SunFireT200 systems.
*/
return (0);
}
return (0);
} else {
}
return (-1); /* mod_errno already set */
}
< 0) {
"failed: %s\n", HOSTBRIDGE, 0,
return (-1); /* mod_errno already set */
}
return (0);
}