xref: /titanic_44/usr/src/lib/libprtdiag/inc/display_sun4v.h (revision 7ae4bfcbefd6100bcc6079f530f1df87f4801110)
103831d35Sstevel /*
203831d35Sstevel  * CDDL HEADER START
303831d35Sstevel  *
403831d35Sstevel  * The contents of this file are subject to the terms of the
5*7ae4bfcbSfw157321  * Common Development and Distribution License (the "License").
6*7ae4bfcbSfw157321  * You may not use this file except in compliance with the License.
703831d35Sstevel  *
803831d35Sstevel  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
903831d35Sstevel  * or http://www.opensolaris.org/os/licensing.
1003831d35Sstevel  * See the License for the specific language governing permissions
1103831d35Sstevel  * and limitations under the License.
1203831d35Sstevel  *
1303831d35Sstevel  * When distributing Covered Code, include this CDDL HEADER in each
1403831d35Sstevel  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1503831d35Sstevel  * If applicable, add the following below this CDDL HEADER, with the
1603831d35Sstevel  * fields enclosed by brackets "[]" replaced with your own identifying
1703831d35Sstevel  * information: Portions Copyright [yyyy] [name of copyright owner]
1803831d35Sstevel  *
1903831d35Sstevel  * CDDL HEADER END
2003831d35Sstevel  */
2103831d35Sstevel /*
22*7ae4bfcbSfw157321  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
2303831d35Sstevel  * Use is subject to license terms.
2403831d35Sstevel  */
2503831d35Sstevel 
2603831d35Sstevel #ifndef	_DISPLAY_SUN4V_H
2703831d35Sstevel #define	_DISPLAY_SUN4V_H
2803831d35Sstevel 
2903831d35Sstevel #pragma ident	"%Z%%M%	%I%	%E% SMI"
3003831d35Sstevel 
3103831d35Sstevel #ifdef	__cplusplus
3203831d35Sstevel extern "C" {
3303831d35Sstevel #endif
3403831d35Sstevel 
3503831d35Sstevel #include <picl.h>
3603831d35Sstevel 
3703831d35Sstevel #define	CLK_FREQ_TO_MHZ(x)	(((x) + 500000) / 1000000)
3803831d35Sstevel #define	MAXSTRLEN	256
3903831d35Sstevel 
4003831d35Sstevel #define	EM_INIT_FAIL		dgettext(TEXT_DOMAIN,\
4103831d35Sstevel 	"picl_initialize failed: %s\n")
4203831d35Sstevel #define	EM_GET_ROOT_FAIL	dgettext(TEXT_DOMAIN,\
4303831d35Sstevel 	"Getting root node failed: %s\n")
4403831d35Sstevel 
4503831d35Sstevel void sun4v_display_pci(picl_nodehdl_t plafh);
4603831d35Sstevel void sun4v_display_memoryconf();
4703831d35Sstevel void sun4v_display_cpu_devices(picl_nodehdl_t plafh);
4803831d35Sstevel int sun4v_display_cpus(picl_nodehdl_t cpuh, void* args);
4903831d35Sstevel void sun4v_display_diaginfo(int flag, Prom_node *root, picl_nodehdl_t plafh);
5003831d35Sstevel int sun4v_display(Sys_tree *, Prom_node *, int, picl_nodehdl_t);
5103831d35Sstevel 
5203831d35Sstevel #ifdef	__cplusplus
5303831d35Sstevel }
5403831d35Sstevel #endif
5503831d35Sstevel 
5603831d35Sstevel #endif	/* _DISPLAY_SUN4V_H */
57