/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <sys/promimpl.h>
/*
* Because kmdb links prom_stdout_is_framebuffer into its own
* module and coherent console adds "device-type=console" for
* /os-io node, we also check if the device-type is "console",
* (if not "display"), so that prom_stdout_is_framebuffer still
* works corrrectly after /os-io node is registered into OBP.
*/
int
{
if (remember != -1)
return (remember);
if (remember == 0)
return (remember);
}
/*
* get inverse? and inverse-screen? property,
* -1 is returned if true, 0 is returned if false.
*/
void
{
"my-self >r stdout @ is my-self "
"inverse? swap l! inverse-screen? swap l! "
"r> is my-self",
}
/*
* get current cursor position from the stdout handle, which
* containing the instance handle of the OBP console output device.
*/
void
{
"my-self >r stdout @ is my-self "
"line# swap l! column# swap l! "
"r> is my-self",
}
/*
* get the font size and the start window top of
* OBP terminal emulator
*/
void
{
"my-self >r stdout @ is my-self "
"char-height swap l! window-top swap l! "
"r> is my-self",
}
/* Clear the spining "|" character and hide the PROM cursor. */
void
prom_hide_cursor(void)
{
"my-self >r stdout @ is my-self "
"toggle-cursor "
"1 delete-characters "
"r> is my-self",
0, 0, 0, 0, 0);
}
static size_t
{
size_t n = 0;
str++;
}
return (n);
}
/*
* Here we use the "screen-#columns" and "screen-#rows" settings of
* PROM to help us decide the console size and cursor position. The
* actual sizes of PROM's TEM and the console might be different with
* those "screen-#.." settings, in cases that they are too big to
* accommodate.
*/
void
{
int len;
return;
}
}
}