/*
* 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 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1990, 1991 UNIX System Laboratories, Inc. */
/* Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T */
/* All Rights Reserved */
#ifndef _SYS_SYSI86_H
#define _SYS_SYSI86_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#ifndef DIRSIZ
#endif
/*
* Commands for sysi86 system call (1-?)
*/
/* booted */
/* 71 through 74 reserved for VPIX */
/* NFA entry point */
/* XENIX Support */
/* badvise subfunction definitions */
/* data context switching */
/*
* NOTE: Numbers 106 - 110 have been registered and are reserved
* for future use for AT&T hardware.
*/
/*
* Commands for allowing the real time clock to keep local time.
*/
/*
* The SI86DSCR subcommand of the sysi86() system call
* sets a segment or gate descriptor in the kernel.
* The following descriptor types are accepted:
* - executable and data segments in the LDT at DPL 3
* - a call gate in the GDT at DPL 3 that points to a segment in the LDT
* The request structure declared below is used to pass the values
* to be placed in the descriptor. A pointer to the structure is
* passed as the second argument of the system call.
* If acc1 is zero, the descriptor is cleared.
*/
/*
* XX64 Do we need to support this for 64-bit apps?
*
* request structure passed by user
*/
struct ssd {
};
#ifdef _KERNEL
#endif /* _KERNEL */
/*
* The SI86SHFIL subcommand of the sysi86() system call
* maps a file into a region in user address space.
* The request structure declared below is used to pass the
* system call parameters. A pointer to the structure is
* passed as the second argument of the system call.
*/
struct mmf {
/* from which this region is mapped. */
};
/*
* The SI86PCHRGN subcommand of the sysi86() system call
* change the memory mapped image of a file.
* The request structure declared below is used to pass the values
* system call parameters. A pointer to the structure is
* passed as the second argument of the system call.
*/
struct cmf {
};
/*
* The SI86BADVISE subcommand of the sysi86() system call specifies
* XENIX variant behavior for certain system calls and kernel routines.
* The 'arg' argument of sysi86() for SI86BADVISE is an integer. Bits
* 8..15 specify SI86B_SET or SI86B_GET. Bits 0..7 contain
* SI86B_PRE_SV, SI86B_XOUT, or SI86B_XSDSWTCH. All these constants are
* defined below. The 'arg' argument thus consists of either SI86B_SET
* OR'ed with zero or more of SI86B_PRE_SV, SI86B_XOUT, and SI86B_XSDSWTCH,
* or of SI86B_GET.
*/
/* context switching enabled */
/*
* The request structure declared below is used by the XENIX 286 emulator
* The SI86SHRGN subcommand is used by the XENIX 286 emulator to support
* XENIX shared data. The second argument passed to sysi86() is a
* pointer to an xsdbuf struct.
*
* If the 'xsd_cmd' field of xsdbuf is SI86SHR_CP, the XENIX 286 emulator is
* using the SI86SHRGN subcommand to set up XENIX small model shared data
* context switching support for a given XENIX shared data segment. In this
* case, the xsdbuf struct contains the start addr for the shared data in
* 386 space, followed by the start addr for the shared data in the 286
* executable's private data.
*
* If the 'xsd_cmd' field is SI86SHR_SZ, the XENIX 286 emulator is using the
* SI86SHRGN subcommand to retrieve the size of an existing XENIX shared
* data segment. In this case, the xsdbuf struct contains the start addr
* for the shared data in 386 space.
* The size of the shared data segment starting at 'xsd_386vaddr' will
* be returned in the 'xsd_size' field by sysi86().
*/
struct xsdbuf {
/* or SI86SHR_SZ. */
/* the emulator. */
union {
/* in the 286 data portion of the */
/* emulator. */
} xsd_un;
};
/* End XENIX Support */
/*
* Cascade defines
*/
/* Enterprise IDNO defines */
#ifndef _KERNEL
#ifdef __STDC__
extern int sysi86(int, ...);
#else
extern int sysi86();
#endif /* __STDC__ */
#endif /* !_KERNEL */
#ifdef __cplusplus
}
#endif
#endif /* _SYS_SYSI86_H */