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

📄 kernel.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:            kernel.h
*
*       Identification:         @(#) 2.4 kernel.h
*
*       Date:                   9/16/94  17:53:34
*
****************************************************************************
*/

#ifndef _KERNEL_H
#define _KERNEL_H

#ifndef LLC1
#define LLC1
#endif

#ifdef __cplusplus
extern "C" {
#endif

/*
 * Configuration definitions
 */
#define HOST_NAME_LEN 15
#define ADDR_NAME_LEN 16
#define DOMAIN_NAME_LEN 33
#define MAX_TIME_SERVERS 3
#define BOOT_PATH_LEN 128

struct snx_host
{
        unsigned char snx_hostname[HOST_NAME_LEN];
        unsigned char snx_addrname[ADDR_NAME_LEN];
        unsigned char snx_hostvalid;
};

struct snx_nameserv
{
        char            nm_name[HOST_NAME_LEN];
};

struct snx_gw_entry {
        char    *gw_type;
        char    *gw_dname;
        char    *gw_gname;
        int     gw_metric;
        char    *gw_qual;
};

struct dmod_conf {
	void	(*initf)();
};

struct snx_net_interface {
	char	*ni_name;	/* name of network interface */
	char	*ni_devname;	/* name of assoc. STREAMS device driver */
	char	*ni_othermod;	/* supporting networking module */
	char	*ni_addr;	/* address of interface in dot notation */
	int	ni_broadcast;	/* does interface support broadcasts? */
	int	ni_arp;		/* does interface support arp? */
	long	ni_netmask;	/* network mask for interface */
#ifdef LLC1
	char 	*ni_frametype;
#endif
};

extern struct snx_net_interface snx_interface_table[];
extern unsigned char 		snx_local_host[HOST_NAME_LEN];
extern struct snx_host 		snx_host_table[];
extern unsigned char 		snx_domain_name[DOMAIN_NAME_LEN];
extern struct snx_nameserv 	snx_nameservers[];

#ifdef __cplusplus
}
#endif

#endif /* _KERNEL_H */

⌨️ 快捷键说明

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