03831d35f7499c87d51205817c93e9a8d42c4baestevel * CDDL HEADER START
03831d35f7499c87d51205817c93e9a8d42c4baestevel * The contents of this file are subject to the terms of the
03831d35f7499c87d51205817c93e9a8d42c4baestevel * Common Development and Distribution License, Version 1.0 only
03831d35f7499c87d51205817c93e9a8d42c4baestevel * (the "License"). You may not use this file except in compliance
03831d35f7499c87d51205817c93e9a8d42c4baestevel * with the License.
03831d35f7499c87d51205817c93e9a8d42c4baestevel * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
03831d35f7499c87d51205817c93e9a8d42c4baestevel * See the License for the specific language governing permissions
03831d35f7499c87d51205817c93e9a8d42c4baestevel * and limitations under the License.
03831d35f7499c87d51205817c93e9a8d42c4baestevel * When distributing Covered Code, include this CDDL HEADER in each
03831d35f7499c87d51205817c93e9a8d42c4baestevel * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
03831d35f7499c87d51205817c93e9a8d42c4baestevel * If applicable, add the following below this CDDL HEADER, with the
03831d35f7499c87d51205817c93e9a8d42c4baestevel * fields enclosed by brackets "[]" replaced with your own identifying
03831d35f7499c87d51205817c93e9a8d42c4baestevel * information: Portions Copyright [yyyy] [name of copyright owner]
03831d35f7499c87d51205817c93e9a8d42c4baestevel * CDDL HEADER END
03831d35f7499c87d51205817c93e9a8d42c4baestevel * Copyright (c) 1999-2001 by Sun Microsystems, Inc.
03831d35f7499c87d51205817c93e9a8d42c4baestevel * All rights reserved.
03831d35f7499c87d51205817c93e9a8d42c4baestevel#pragma ident "%Z%%M% %I% %E% SMI"
03831d35f7499c87d51205817c93e9a8d42c4baestevel /* Look version */
03831d35f7499c87d51205817c93e9a8d42c4baestevel * POST string follows the NULL terminated OBP
03831d35f7499c87d51205817c93e9a8d42c4baestevel * version string. Do not attempt to print POST
03831d35f7499c87d51205817c93e9a8d42c4baestevel * string unless node size is larger than the
03831d35f7499c87d51205817c93e9a8d42c4baestevel * length of the OBP version string.
03831d35f7499c87d51205817c93e9a8d42c4baestevel /* Display Prom revision header */
03831d35f7499c87d51205817c93e9a8d42c4baestevel "revisions:\n"), 0);
03831d35f7499c87d51205817c93e9a8d42c4baestevel if ((pnode = find_device(bnode, 0x1F, SBUS_NAME)) == NULL) {
03831d35f7499c87d51205817c93e9a8d42c4baestevel * in case of platforms with multiple flashproms, find and
03831d35f7499c87d51205817c93e9a8d42c4baestevel * display all proms with a "version"(OBP) property. bug 4187301
03831d35f7499c87d51205817c93e9a8d42c4baestevel for (pnode = dev_find_node(pnode, "flashprom"); pnode != NULL;
03831d35f7499c87d51205817c93e9a8d42c4baestevel * Get the class-code of this node and return it
03831d35f7499c87d51205817c93e9a8d42c4baestevel * if it exists. Otherwise return (-1).
03831d35f7499c87d51205817c93e9a8d42c4baestevel value = get_prop_val(find_prop(card_node, "class-code"));
03831d35f7499c87d51205817c93e9a8d42c4baestevel return (*(int *)value);
03831d35f7499c87d51205817c93e9a8d42c4baestevel return (-1);