📄 hardware.h
字号:
/*************************************************************************/
/* */
/* Copyright (c) 1993-1998 Accelerated Technology, Inc. */
/* */
/* PROPRIETARY RIGHTS of Accelerated Technology are involved in the */
/* subject matter of this material. All manufacturing, reproduction, */
/* use, and sales rights pertaining to this subject matter are governed */
/* by the license agreement. The recipient of this software implicitly */
/* accepts the terms of the license. */
/* */
/*************************************************************************/
/*************************************************************************/
/* */
/* FILE NAME VERSION */
/* */
/* hardware.h PLUS/MNT */
/* VERSION 1.4 */
/* COMPONENT */
/* */
/* */
/* */
/* DESCRIPTION */
/* */
/* This file contains the target dependent defines for the */
/* version of PLUS for Windows NT. */
/* */
/* */
/* DATA STRUCTURES */
/* */
/* lwp_info */
/* */
/* FUNCTIONS */
/* */
/* None */
/* */
/* DEPENDENCIES */
/* */
/* None */
/* */
/* HISTORY */
/* */
/* NAME DATE REMARKS */
/* */
/* B. Haggerty 03-12-1997 Released MNT Version 1.0 */
/* B. Haggerty 08-11-1997 Released MNT Version 1.1 */
/* D. Sharer 04-03-1998 Released MNT Version 1.2 */
/* R. Smith 11-17-1998 Released MNT Version 1.4 */
/* */
/*************************************************************************/
#define VCTRTBLSIZE 256 /* thirty-two interrupt levels */
/*
* Vector Table & Thread related stuff. The ethernet and Console
* is at the same interrupt vector because in simulating them, keyboard
* and Ethernet data is read via file descriptors which both use the
* same SIGIO signal to notify when data is present. Since there
* can only be one agent waiting on a SIGIO, there is one thread at the
* IOPRIO level that get both forms of data and then differentiates
* based on the descriptor that is active.
*/
#define MAXPRIO 250 /* Maximum thread priority */
#define CLKPRIO 245 /* Priority of clock thread */
#define VNETPRIO 244 /* Priority of Virtual Network ISR */
#define URTPRIO 240 /* UART priority */
#define ETHPRIO 238 /* Ethernet priority */
#define HISRPRIO 230 /* HISR priority */
#define TSKPRIO 230 /* Task priority */
/*
* For LWP
*/
#define MINSTACKSZ NU_MIN_STACK_SIZE
#define MINSTACK MINSTACKSZ
/* Each thread's stack size should be
at least the minimum required by
the architecture */
#define MAXTHREADS 256 /* Architectural limit */
/*
* Process related stuff
*/
#define QUITPROGCHAR (char)3 /* Ctrl-C quits the program */
/*
* Hardware clock Related
*/
#define HC_GRANULARITY 50*1000 /* Simulated Hardware Clock granularity */
/* of 50 msecs. */
/*
* Lan related
*/
#define MAXETHERPKT 1536 /* Maximum size of an ethernet packet */
#define NUMHRDWRBUFS 10 /* Number of ether packets at once */
void TMT_Timer_Interrupt(int);
void UART_Lisr(int);
typedef unsigned long DWORD;
typedef void *HANDLE;
/* Define global data structures */
typedef struct lwp_info {
DWORD thread_id;
HANDLE thread_hdl;
char thread_name[10];
} thrd_t;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -