DataMuseum.dk

Presents historical artifacts from the history of:

Regnecentalen RC-900

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Regnecentalen RC-900

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download

⟦a1291cbec⟧ TextFile

    Length: 1928 (0x788)
    Types: TextFile
    Notes: UNIX file
    Names: »sl.h«

Derivation

└─⟦8c4f54e61⟧ Bits:30004068/disk2.imd Interactive TCP/IP v.1.2
└─⟦8c4f54e61⟧ UNIX Filesystem
    └─⟦this⟧ »hb/new/usr/include/sys/sl.h« 

TextFile

/*
 * Copyright (c) 1982, 1986 Regents of the University of California.
 * All rights reserved.  The Berkeley software License Agreement
 * specifies the terms and conditions for redistribution.
 *
 *	Portions of this Software
 *      Copyrighted as an unpublished work.
 *      (c) Copyright 1988 INTERACTIVE Systems Corporation
 *      All rights reserved.
 *
 *      RESTRICTED RIGHTS:
 *
 *      These programs are supplied under a license.  They may be used,
 *      disclosed, and/or copied only as permitted under such license
 *      agreement.  Any copy must contain the above copyright notice and
 *      this restricted rights notice.  Use, copying, and/or disclosure
 *      of the programs is strictly prohibited unless otherwise provided
 *      in the license agreement.
 *
 */

#ident "@(#)sl.h	1.2 - 89/09/29"

#define SLTRACE 0x01
#define SLERRS 0x02
#define SLSEND 0x04
#define SLRECV 0x08

#define NSL 1

#define SLMAXPKT 1008
#define SLHIWAT (8*SLMAXPKT)
#define SLLOWAT (4*SLMAXPKT)

#define SL_NSTATS 16

#define SLIPDEV "/dev/sl"

struct slstats {

       /* non-hardware */
   struct llcstats sls_llcs;	/* 0-3 */

       /* transmit */
   ulong	sls_xpkts;	/* 4 */
   ulong	sls_xbytes;	/* 5 */
   ulong	sls_drop;	/* 6 */
   ulong	sls_coll;	/* 7 */
   ulong	sls_under;	/* 8 */
   ulong	sls_carrier;	/* 9 */

       /* receive */
   ulong	sls_rpkts;	/* 10 */
   ulong	sls_rbytes;	/* 11 */
   ulong	sls_fcs;	/* 12 */
   ulong	sls_align;	/* 13 */
   ulong	sls_overflow;	/* 14 */
   ulong	sls_short;	/* 15 */
};

struct sl_softc {
	short	sc_flags;	/* see below */
	short	sc_ilen;	/* length of input-packet-so-far */
	struct	tty *sc_ttyp;	/* pointer to tty structure */
	char	*sc_mp;		/* pointer to next available buf char */
	char	*sc_buf;	/* input buffer */
	struct	slstats *sls;	/* pointer to stat struct for this line */
};

#define SIO			('S'<<8)
#define SIODESC			(SIO|88)	/* get line discipline desc */