dk.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* 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) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */
#ifndef _BNU_DK_H
#define _BNU_DK_H
#ifdef DIAL
#define GLOBAL static
#define EXTERN static
#else
#define EXTERN extern
#define GLOBAL
#endif
/*
* DATAKIT VCS User Level definitions
* @(#)dk.h 2.13+BNU DKHOST 87/06/01
*
* CommKit(R) Software - Datakit(R) VCS Interface Release
* Copyright 1984 AT&T
* All Rights Reserved
*/
/*
* ioctl codes
*/
with physical KMC # */
/* driver control */
/* diagnostic control codes */
/* Get info from driver */
/* special codes used by dkxstdio */
/*
* structure returned from DIOCQQABO giving receive status
*/
struct dkqqabo {
short rcv_resid ; /* residual length in buffer */
short rcv_reason ; /* set of bits giving reasons */
short rcv_ctlchar ; /* ctl char that finished block */
} ;
/*
* receive mode, and completion indicators
*/
#ifndef DKR_FULL
#endif
/*
* structure passed with ioctl to request a service
* actually used as a general-purpose struct to pass
* info from a kernel ioctl to user space.
*/
struct diocreq {
short req_traffic ; /* traffic intensity generated */
short req_1param ; /* typ: service requested */
short req_2param ; /* parameter to server */
} ;
/*
* values returned from service request
*/
#define req_error req_traffic
#define req_driver req_traffic
#define req_chans req_traffic
#define req_chmin req_1param
/*
* structure received by server when new connection made
*/
struct mgrmsg {
short m_chan ; /* channel number of connection */
unsigned short m_tstamp ; /* time stamp of request */
char * m_protocol ; /* protocol options from user */
char * m_origtype ; /* type of originating device */
char * m_parm ; /* parameter string from user */
char * m_dial ; /* dial string entered */
char * m_source ; /* originator, as known to remote node */
char * m_lname ; /* originator, as known to local node */
char * m_service ; /* service type requested by user */
char * m_lflag ; /* L == call from local node,
* R == call from a remote one. */
char * m_srcnode; /* originating node (last segment) */
char * m_srcmod; /* originating mod */
char * m_srcchan; /* originating channel */
char * m_cflag; /* call flag: F=first, P=previous */
char * m_errmsg ; /* possible error msg if m_chan <= 0 */
} ;
/*
* routines declared in libdk.a
*/
#ifndef DIAL
EXTERN char mh_hostname[];
#endif
/*
* structure passed with ioctl to request a splice
*/
struct diocspl {
short spl_fdin; /* the other file descriptor */
short spl_un1used;
short spl_un2used;
} ;
/*
* Default file names
*/
/*
* Number of longs in the stat array returned by the firmware
*/
#define STATLEN 16
#endif