11708Sstevel /* 21708Sstevel * CDDL HEADER START 31708Sstevel * 41708Sstevel * The contents of this file are subject to the terms of the 5*5544Sfw157321 * Common Development and Distribution License (the "License"). 6*5544Sfw157321 * You may not use this file except in compliance with the License. 71708Sstevel * 81708Sstevel * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 91708Sstevel * or http://www.opensolaris.org/os/licensing. 101708Sstevel * See the License for the specific language governing permissions 111708Sstevel * and limitations under the License. 121708Sstevel * 131708Sstevel * When distributing Covered Code, include this CDDL HEADER in each 141708Sstevel * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 151708Sstevel * If applicable, add the following below this CDDL HEADER, with the 161708Sstevel * fields enclosed by brackets "[]" replaced with your own identifying 171708Sstevel * information: Portions Copyright [yyyy] [name of copyright owner] 181708Sstevel * 191708Sstevel * CDDL HEADER END 201708Sstevel */ 211708Sstevel /* 22*5544Sfw157321 * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 231708Sstevel * Use is subject to license terms. 241708Sstevel */ 251708Sstevel 261708Sstevel #ifndef _DISPLAY_SUN4V_H 271708Sstevel #define _DISPLAY_SUN4V_H 281708Sstevel 291708Sstevel #pragma ident "%Z%%M% %I% %E% SMI" 301708Sstevel 311708Sstevel #ifdef __cplusplus 321708Sstevel extern "C" { 331708Sstevel #endif 341708Sstevel 351708Sstevel #include <picl.h> 361708Sstevel 371708Sstevel #define CLK_FREQ_TO_MHZ(x) (((x) + 500000) / 1000000) 381708Sstevel #define MAXSTRLEN 256 391708Sstevel 401708Sstevel #define EM_INIT_FAIL dgettext(TEXT_DOMAIN,\ 411708Sstevel "picl_initialize failed: %s\n") 421708Sstevel #define EM_GET_ROOT_FAIL dgettext(TEXT_DOMAIN,\ 431708Sstevel "Getting root node failed: %s\n") 441708Sstevel 451708Sstevel void sun4v_display_pci(picl_nodehdl_t plafh); 461708Sstevel void sun4v_display_memoryconf(); 471708Sstevel void sun4v_display_cpu_devices(picl_nodehdl_t plafh); 481708Sstevel int sun4v_display_cpus(picl_nodehdl_t cpuh, void* args); 491708Sstevel void sun4v_display_diaginfo(int flag, Prom_node *root, picl_nodehdl_t plafh); 501708Sstevel int sun4v_display(Sys_tree *, Prom_node *, int, picl_nodehdl_t); 511708Sstevel 521708Sstevel #ifdef __cplusplus 531708Sstevel } 541708Sstevel #endif 551708Sstevel 561708Sstevel #endif /* _DISPLAY_SUN4V_H */ 57