25cf1a301a396c38e8adf52c15f537b80d2483f7jl * CDDL HEADER START
25cf1a301a396c38e8adf52c15f537b80d2483f7jl * The contents of this file are subject to the terms of the
25cf1a301a396c38e8adf52c15f537b80d2483f7jl * Common Development and Distribution License (the "License").
25cf1a301a396c38e8adf52c15f537b80d2483f7jl * You may not use this file except in compliance with the License.
25cf1a301a396c38e8adf52c15f537b80d2483f7jl * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
25cf1a301a396c38e8adf52c15f537b80d2483f7jl * See the License for the specific language governing permissions
25cf1a301a396c38e8adf52c15f537b80d2483f7jl * and limitations under the License.
25cf1a301a396c38e8adf52c15f537b80d2483f7jl * When distributing Covered Code, include this CDDL HEADER in each
25cf1a301a396c38e8adf52c15f537b80d2483f7jl * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
25cf1a301a396c38e8adf52c15f537b80d2483f7jl * If applicable, add the following below this CDDL HEADER, with the
25cf1a301a396c38e8adf52c15f537b80d2483f7jl * fields enclosed by brackets "[]" replaced with your own identifying
25cf1a301a396c38e8adf52c15f537b80d2483f7jl * information: Portions Copyright [yyyy] [name of copyright owner]
25cf1a301a396c38e8adf52c15f537b80d2483f7jl * CDDL HEADER END
25cf1a301a396c38e8adf52c15f537b80d2483f7jl * All Rights Reserved, Copyright (c) FUJITSU LIMITED 2006
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#pragma ident "%Z%%M% %I% %E% SMI"
25cf1a301a396c38e8adf52c15f537b80d2483f7jlextern "C" {
25cf1a301a396c38e8adf52c15f537b80d2483f7jl/* ack_flag */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl/* active_flag */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl/* undefined path number */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl/* sleep and wakeup control flag */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl/* write/read control flag */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl/* message priority */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl/* miscellaneous */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl/* timeout interval */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#define MSU_XON_4 (MSU_XON << 24|MSU_XON << 16|MSU_XON << 8|MSU_XON)
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#define MSU_XOFF_4 (MSU_XOFF << 24|MSU_XOFF << 16|MSU_XOFF << 8|MSU_XOFF)
25cf1a301a396c38e8adf52c15f537b80d2483f7jl/* main path code used by MSU_CMD_START ioctl */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl/* maximum number of minor device number */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl/* node mask */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl/* node_flag */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl/* node_flag check macro */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl/* termio_flag */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl/* binding name */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl/* tty-port# properties */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl/* board# properties */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl * oplmsu command code
25cf1a301a396c38e8adf52c15f537b80d2483f7jl * oplmsu path status for status member on upper path info table
25cf1a301a396c38e8adf52c15f537b80d2483f7jl * oplmsu additional status for traditional_status member on
25cf1a301a396c38e8adf52c15f537b80d2483f7jl * upper path info table
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#define MSU_LINK_NU 2 /* link state(no link ID, no upper path info) */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#define MSU_SETID_NU 3 /* set ID state(link ID, no upper path info) */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#define MSU_WSTR_ACK 6 /* wait ack/nak of MSU_CMD_START state */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#define MSU_WTMS_ACK 9 /* wait ack/nak of TIOCMSET state */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#define MSU_WPPS_ACK 10 /* wait ack/nak of TIOCSPPS state */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#define MSU_WWSZ_ACK 11 /* wait ack/nak of TIOCSWINSZ state */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#define MSU_WCAR_ACK 12 /* wait ack/nak of TIOCSSOFTCAR state */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#define MSU_WSTP_ACK 14 /* wait ack/nak of MSU_CMD_STOP state */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#define MSU_WCHK_ACK 16 /* wait ack/nak of OPLMSUSELFTEST */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#define MSU_SETID 17 /* set ID state(link ID, upper path info) */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#define MSU_LINK 19 /* link state(no link ID, upper path info) */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#define MSU_WPTH_CHG 20 /* wait ack/nak of OPLMSUPATHCHG state */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl * oplmsu instance status for inst_status member on
25cf1a301a396c38e8adf52c15f537b80d2483f7jl * upper instance info talbe
25cf1a301a396c38e8adf52c15f537b80d2483f7jl * oplmsu lower path Info table ext status for ext member on
25cf1a301a396c38e8adf52c15f537b80d2483f7jl * lower path info table
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#define MSU_EXT_ACTIVE_CANDIDATE -2 /* active path candidate by */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl /* MSU_CMD_START */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl/* oplmsu/su pathname size */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl/* control block(path parameter) */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl/* control block(device parameter) */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl/* serial device control block */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl/* serial device countrl block list */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl/* upper path table */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl/* lower path table */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl/* control table */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#define MSU_MAX_ABTSLEN 24 /* maximum length for abort sequence */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl/* upper instance table */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl/* queue table for bufcall() and timeout() */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl/* rwlock macro */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl/* oplmsu_trace_on */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl/* oplmsu_debug_mode */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl/* op type */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl/* trace macro */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl/* debug print macro */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#else /* ! DEBUG */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl/* trace macro */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl/* debug print macro */
25cf1a301a396c38e8adf52c15f537b80d2483f7jl#endif /* _OPLMSU_H */