/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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 (c) 2001 by Sun Microsystems, Inc.
* All rights reserved.
*/
#ifndef _TTYMUXUSER_H
#define _TTYMUXUSER_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/*
* Generic serial multiplexor ioctls.
*/
/*
* Ioctls for serial multiplexors acting as the system console.
*/
/*
* Optional control ioctl.
*/
/*
* Create or destroy associations TTYMUX_ASSOC and TTYMUX_DISASSOC
*/
typedef struct ttymux_association {
/* the device type of a linked lower stream */
/* the linkid of a linked lower stream */
int ttymux_linkid;
/* OBP device path of ldev */
/*
* List all links known to a mux driver TTYMUX_LIST
* If the user ioctl arg is NULL the return value is the
* number of links in the driver (to facilitate the user
* allocating enough space for the link information.
* Otherwise the ioctl arg should point to the following
* structure. nlinks indicates how many entries the user
* has allocated in the array. The return value indicates the
* number of entries that have been filled in.
* EINVAL if nlinks is < 1
* EAGAIN if no resources.
*/
typedef struct ttymux_associations {
/*
* Enable or disable aborting to the system monitor
* TTYMUX_SETABORT and TTYMUX_GETABORT
*/
typedef struct ttymux_abort {
/* apply request to this device */
/*
* Ioctl acknowledgement policies.
*/
#define FIRSTACK 0
/*
* Set or get the ioctl acknowledgement policy and masking of control bits
* TTYMUX_SETCTL and TTYMUX_GETCTL
*/
struct ttymux_policy {
/* determines the method used to ack M_IOCTLS */
int ttymux_policy;
};
#ifdef __cplusplus
}
#endif
#endif /* _TTYMUXUSER_H */