vcons_conf.c revision ceeba6f9f0adf370c2a0f5c81a0d6ef1ba146cb4
/*
* 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
*/
/*
*/
#include <sys/sysmacros.h>
#include <sys/ddi_impldefs.h>
#ifdef DEBUG
#endif
/* set if console driver is attached */
/* active virtual console minor number */
/*
* console_user symbol link minor number.
*/
/* vc_state_t AVL tree */
/* virtual console global lock */
/*
* Called from vt devname part. Checks if dip is attached. If it is,
* return its major number.
*/
vt_wc_attached(void)
{
if (wc_dip)
return (maj);
}
void
{
else
}
void
{
if (vc_cons_user == VT_MINOR_INVALID) {
return;
}
}
{
if (minor == 0)
return (B_TRUE);
return (B_FALSE);
}
if (minor < VC_INSTANCES_COUNT) {
return (B_TRUE);
}
return (B_FALSE);
}