xref: /onnv-gate/usr/src/cmd/mdb/sparc/kmdb/kmdb_promif_isadep.h (revision 5584:4b4402ef936b)
10Sstevel@tonic-gate /*
20Sstevel@tonic-gate  * CDDL HEADER START
30Sstevel@tonic-gate  *
40Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
51772Sjl139090  * Common Development and Distribution License (the "License").
61772Sjl139090  * You may not use this file except in compliance with the License.
70Sstevel@tonic-gate  *
80Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate  * See the License for the specific language governing permissions
110Sstevel@tonic-gate  * and limitations under the License.
120Sstevel@tonic-gate  *
130Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate  *
190Sstevel@tonic-gate  * CDDL HEADER END
200Sstevel@tonic-gate  */
210Sstevel@tonic-gate /*
22*5584Sjimand  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
230Sstevel@tonic-gate  * Use is subject to license terms.
240Sstevel@tonic-gate  */
250Sstevel@tonic-gate 
260Sstevel@tonic-gate #ifndef _KMDB_PROMIF_ISADEP_H
270Sstevel@tonic-gate #define	_KMDB_PROMIF_ISADEP_H
280Sstevel@tonic-gate 
290Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
300Sstevel@tonic-gate 
310Sstevel@tonic-gate #include <sys/obpdefs.h>
320Sstevel@tonic-gate #include <sys/termios.h>
330Sstevel@tonic-gate 
340Sstevel@tonic-gate #include <mdb/mdb_target.h>
350Sstevel@tonic-gate #include <kmdb/kmdb_promif.h>
360Sstevel@tonic-gate 
370Sstevel@tonic-gate #ifdef __cplusplus
380Sstevel@tonic-gate extern "C" {
390Sstevel@tonic-gate #endif
400Sstevel@tonic-gate 
41789Sahrens extern void kmdb_prom_walk_cpus(int (*)(pnode_t, void *, void *),
420Sstevel@tonic-gate     void *, void *);
430Sstevel@tonic-gate extern void kmdb_prom_enter_mon(void);
440Sstevel@tonic-gate extern void kmdb_prom_exit_to_mon(void);
450Sstevel@tonic-gate extern void kmdb_prom_interpret(const char *);
46789Sahrens extern int kmdb_prom_getprop(pnode_t, char *, caddr_t);
470Sstevel@tonic-gate 
481772Sjl139090 #ifndef	sun4v
491772Sjl139090 extern pnode_t kmdb_prom_getcpu_propnode(pnode_t);
50*5584Sjimand extern void kmdb_prom_preserve_kctx_init(void);
511772Sjl139090 #endif	/* sun4v */
521772Sjl139090 
530Sstevel@tonic-gate /* private to promif */
540Sstevel@tonic-gate extern int kmdb_prom_translate_virt(uintptr_t, physaddr_t *);
550Sstevel@tonic-gate 
560Sstevel@tonic-gate #ifdef __cplusplus
570Sstevel@tonic-gate }
580Sstevel@tonic-gate #endif
590Sstevel@tonic-gate 
600Sstevel@tonic-gate #endif /* _KMDB_PROMIF_ISADEP_H */
61