display_sun4v.c revision 03831d35f7499c87d51205817c93e9a8d42c4bae
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 2005 Sun Microsystems, Inc. All rights reserved.
03831d35f7499c87d51205817c93e9a8d42c4baestevel * Use is subject to license terms.
03831d35f7499c87d51205817c93e9a8d42c4baestevel#pragma ident "%Z%%M% %I% %E% SMI"
03831d35f7499c87d51205817c93e9a8d42c4baestevelsun4v_display(Sys_tree *tree, Prom_node *root, int syserrlog,
03831d35f7499c87d51205817c93e9a8d42c4baestevel struct mem_total memory_total; /* Total memory in system */
03831d35f7499c87d51205817c93e9a8d42c4baestevel struct grp_info grps; /* Info on all groups in system */
03831d35f7499c87d51205817c93e9a8d42c4baestevel * Now display the machine's configuration. We do this if we
03831d35f7499c87d51205817c93e9a8d42c4baestevel * are not logging.
03831d35f7499c87d51205817c93e9a8d42c4baestevel * Display system banner
03831d35f7499c87d51205817c93e9a8d42c4baestevel "banner-name")), 0);
03831d35f7499c87d51205817c93e9a8d42c4baestevel /* display system clock frequency */
03831d35f7499c87d51205817c93e9a8d42c4baestevel value = get_prop_val(find_prop(root, "clock-frequency"));
03831d35f7499c87d51205817c93e9a8d42c4baestevel /* Display the Memory Size */
03831d35f7499c87d51205817c93e9a8d42c4baestevel display_memorysize(tree, NULL, &grps, &memory_total);
03831d35f7499c87d51205817c93e9a8d42c4baestevel /* Display the CPU devices */
03831d35f7499c87d51205817c93e9a8d42c4baestevel /* Display the Memory configuration */
03831d35f7499c87d51205817c93e9a8d42c4baestevel /* Display all the IO cards. */
03831d35f7499c87d51205817c93e9a8d42c4baestevel sun4v_display_diaginfo((syserrlog || (logging)), root, plafh);
03831d35f7499c87d51205817c93e9a8d42c4baestevel * display_pci
03831d35f7499c87d51205817c93e9a8d42c4baestevel * Display all the PCI IO cards on this board.
03831d35f7499c87d51205817c93e9a8d42c4baestevel * This function is intentionally empty
03831d35f7499c87d51205817c93e9a8d42c4baestevel * This function is intentionally empty
03831d35f7499c87d51205817c93e9a8d42c4baestevel * Display the table header for CPUs . Then display the CPU
03831d35f7499c87d51205817c93e9a8d42c4baestevel * frequency, cache size, and processor revision of all cpus.
03831d35f7499c87d51205817c93e9a8d42c4baestevel "========================="
03831d35f7499c87d51205817c93e9a8d42c4baestevel "==============================================="
03831d35f7499c87d51205817c93e9a8d42c4baestevel (void) picl_walk_tree_by_class(plafh, "cpu", "cpu", sun4v_display_cpus);
03831d35f7499c87d51205817c93e9a8d42c4baestevel * Display the CPUs present on this board.
03831d35f7499c87d51205817c93e9a8d42c4baestevel/*ARGSUSED*/
03831d35f7499c87d51205817c93e9a8d42c4baestevel * Get cpuid property and print it and the NAC name
03831d35f7499c87d51205817c93e9a8d42c4baestevel status = picl_get_propinfo_by_name(cpuh, "cpuid", &propinfo, &proph);
03831d35f7499c87d51205817c93e9a8d42c4baestevel status = picl_get_propval(proph, &cpuid, sizeof (cpuid));
03831d35f7499c87d51205817c93e9a8d42c4baestevel status = picl_get_propinfo_by_name(cpuh, "clock-frequency", &propinfo,
03831d35f7499c87d51205817c93e9a8d42c4baestevel status = picl_get_propval(proph, int_value, propinfo.size);
03831d35f7499c87d51205817c93e9a8d42c4baestevel /* Running frequency */
03831d35f7499c87d51205817c93e9a8d42c4baestevel (void) snprintf(freq_str, sizeof (freq_str), "%d MHz",
03831d35f7499c87d51205817c93e9a8d42c4baestevel status = picl_get_propinfo_by_name(cpuh, "compatible", &propinfo,
03831d35f7499c87d51205817c93e9a8d42c4baestevel * Compatible Property only has 1 value
03831d35f7499c87d51205817c93e9a8d42c4baestevel * Compatible Property has multiple values
03831d35f7499c87d51205817c93e9a8d42c4baestevel status = picl_get_propval(proph, &tblh, propinfo.size);
03831d35f7499c87d51205817c93e9a8d42c4baestevel status = picl_get_propinfo_by_name(cpuh, "mask#", &propinfo, &proph);
03831d35f7499c87d51205817c93e9a8d42c4baestevel status = picl_get_propval(proph, &mask_no, sizeof (mask_no));
03831d35f7499c87d51205817c93e9a8d42c4baestevelsun4v_display_diaginfo(int flag, Prom_node *root, picl_nodehdl_t plafh)
03831d35f7499c87d51205817c93e9a8d42c4baestevel * This function is intentionally empty