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

📄 device.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:            device.h
*
*       Identification:         @(#) 1.6 device.h
*
*       Date:                   1/6/94  16:27:51
*
****************************************************************************
*/

/*
 RCS header identifier - $Id: device.h,v 1.7 1993/10/05 18:08:07 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 _H_DEVICE
#define _H_DEVICE

#ifdef __cplusplus
extern "C" {
#endif

#define major(dev)		(unsigned short)((dev_t)(dev) >> 16)
#define minor(dev)		(unsigned short)((dev_t)(dev) & 0xffff)
#define getmajor(dev)		major(dev)
#define getemajor(dev)		major(dev)
#define getminor(dev)		minor(dev)
#define geteminor(dev)		minor(dev)
#define itoemajor(imaj,premaj)	(imaj)
#define etoimajor(emaj)		(emaj)
#define makedev(maj,min)	(((dev_t)(maj) << 16) | (unsigned short)(min))
#define makedevice			makedev
#define	drv_priv(cred)		0
#define drv_hztousec(hz)	(1000000 * ((long)(hz)) / HZ)
#define drv_usectohz(usec)	(HZ * ((long)(usec)) / 1000000)
#define NODEV		((dev_t)0)
#define CLONE_MAJOR	((unsigned short)0)   /* major number of clone device */
#define PIPE_DEV	((char *)"/dev/pipe")

#define I_PIPE	('P'<<8 | 1)	/* special pipe ioctl to weld 2 streams */

#ifndef	SUCCESS
#define	SUCCESS			0
#define	FAILURE			(-1)
#endif	/* SUCCESS */

/* defs for drv_getparm() */
#define LBOLT	1
#define TIME	2
#define PPID	3

#ifdef __cplusplus
}
#endif

#endif

⌨️ 快捷键说明

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