⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 if_sl.h

📁 VRTX 商用嵌入式实时操作系统
💻 H
字号:
/***************************************************************************
*
*               Copyright (c) 1993 READY SYSTEMS CORPORATION.
*
*       All rights reserved. READY SYSTEMS' source code is an unpublished
*       work and the use of a copyright notice does not imply otherwise.
*       This source code contains confidential, trade secret material of
*       READY SYSTEMS. Any attempt or participation in deciphering, decoding,
*       reverse engineering or in any way altering the source code is
*       strictly prohibited, unless the prior written consent of
*       READY SYSTEMS is obtained.
*
*
*       Module Name:            if_sl.h
*
*       Identification:         @(#) 1.3 if_sl.h
*
*       Date:                   1/6/94  16:36:17
*
****************************************************************************
*/

/*
 RCS header identifier - $Id: if_sl.h,v 1.3 1993/10/05 18:08:33 robert Exp $
*/
/*
 * Copyrighted as an unpublished work.
 * (c) Copyright 1987-1993 Lachman Technology, Incorporated
 * 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.
 */
/*
 * Copyright (c) 1985 Regents of the University of California.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms are permitted
 * provided that the above copyright notice and this paragraph are
 * duplicated in all such forms and that any documentation,
 * advertising materials, and other materials related to such
 * distribution and use acknowledge that the software was developed
 * by the University of California, Berkeley.  The name of the
 * University may not be used to endorse or promote products derived
 * from this software without specific prior written permission.
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 */

#ifndef if_sl__h
#define if_sl__h

#ifdef __cplusplus
extern "C" {
#endif

/*
 * N.B.: SLMTU is now a hard limit on input packet size. SLMTU must be <=
 * CLBYTES - sizeof(struct ifnet *). 
 */
#define	SLMTU	1006
#define	SLIP_HIWAT	1000	/* don't start a new packet if HIWAT on queue */
#define	CLISTRESERVE	1000	/* Can't let clists get too low */

struct sl_softc {
	struct ifnet    sc_if;	/* network-visible interface */
	short           sc_flags;	/* see below */
	short           sc_ilen;/* length of input-packet-so-*/
	struct tty      *sc_ttyp;/* pointer to tty structure */
	int             sc_len;	/* length of buffer remaining */
	struct mbuf     *sc_m;	/* head of mbuf chain */
	struct mbuf     *sc_mt;	/* tail of mbuf chain */
	unsigned char   *sc_mp;	/* pointer to next available buf char */
	ushort          sc_cflag;	/* tty control flags */
	dev_t           sc_dev;	/* physical device */
};

#define t_scunit t_lflag	/* store unit number in tp lflag */

#ifdef __cplusplus
}
#endif

#endif				/* if_sl__h */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -