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

📄 sad.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:            %M%
*
*       Identification:         %Z% %I% %M%
*
*       Date:                   %G%  %U%
*
****************************************************************************
*/

/*
 RCS header identifier - $Id: sad.h,v 1.3 1993/10/05 18:09:12 robert Exp $
*/
/*
 * Copyrighted as an unpublished work.
 * (c) Copyright 1992-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.
 */

#ifndef __SAD_H
#define __SAD_H

#ifdef __cplusplus
extern "C" {
#endif

#include "sys/conf.h"

/*******************************************************************************
 * maximum nmber of modules that can be pushed on a Stream usng the
 * autopush feature should be less than NSTRPUSH
 */
#define MAXAPUSH	8


/*******************************************************************************
 * autopush information common to user and kernel
 */
struct apcommon {
	uint	apc_cmd;	/* command - see below */
	long	apc_major;	/* major device number */
	long	apc_minor;	/* minor device number */
	long	apc_lastminor;	/* last minor device number for range */
	uint	apc_npush;	/* number of modules to push */
};

/* ap_cmd - various options of autopush */

#define SAP_CLEAR	0	/* remove configuration list */
#define SAP_ONE		1	/* configure one minor device */
#define SAP_RANGE	2	/* configure range of minor devices */
#define SAP_ALL		3	/* configure all minor devices */


/*******************************************************************************
 * format of autopush ioctls (SPG E-8)
 */
struct strapush {
	struct apcommon sap_common;
	char	sap_list[MAXAPUSH][FMNAMESZ + 1];	/* module list */
};

#define sap_cmd		sap_common.apc_cmd
#define sap_major	sap_common.apc_major
#define sap_minor	sap_common.apc_minor
#define sap_lastminor	sap_common.apc_lastminor
#define sap_npush	sap_common.apc_npush


/*******************************************************************************
 * sad(7) ioctl commands (block of values: 0x0200 to 0x02ff)
 */
#define SAD_SAP		0x0201
#define SAD_GAP		0x0202
#define SAD_VML		0x0203

#ifdef __cplusplus
}
#endif

#endif	/* __SAD_H */

⌨️ 快捷键说明

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