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

📄 incldef.h

📁 DOS下使用PCI扩展串口的程序希望对大家有用
💻 H
字号:
#ifndef _incldef.h
#define _incldef.h

#include <ctype.h>
#include <dos.h>
#include <io.h>
#include <limits.h>
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include   <process.h>
#include   <bios.h>


#define   THR   0       /*write1  1--lcr[7]=0*/
#define   RBR   0       /*read1*/
#define   IER   1       /*R/W12   2--ACR[7]=0*/
#define   FCR   2       /*W3  3--LCR!=0xbf*/
#define   ISR   2       /*R3*/
#define   LCR   3       /*R/W4  4--to read ACR[7]=0*/
#define   MCR   4       /*R/W34*/
#define   LSR   5       /*R/W35 5--to read ACR[6]=0*/
#define   MSR   6       /*R3*/
#define   SPR   7
#define   DL   0       /*R/W  lcr[7]=1*/
#define   DM   1       /*R/W  lcr[7]=1*/


#define   EFR    2        /*R/W*/
#define   XON1   4        /*R/W*/
#define   XON2   5        /*R/W*/
#define   XOFF1  6        /*R/W*/
#define   XOFF2  7        /*R/W*/


#define   ASR   1       /*R/W167 7--only bits 0,1 can be written*/
#define   RFL   3       /*R6   6--ACR[1]=0*/
#define   TFL   4       /*R36  */
#define   ICR   5       /*R/W389  8--to read ACR[6]=1  9--act as a window to access ICR*/

#define   ACR   0
#define   CPR   1
#define   TCR   2
#define   CKS   3
#define   TTL   4
#define   RTL   5
#define   FCL   6
#define   FCH   7
#define   CSR   12
#define   NMR   13
#define   MDM   14

#define   ID1   8
#define   ID2   9
#define   ID3   10
#define   REV   11
#define   RFC   15
#define   GDS   16
#define  interques   0x0b
#define  internum    0x73
#define  mainMIR     0x21
#define  seconMIR    0x0a1

#define VERSION "1.00"

#define lengthof(x) ((sizeof(x))/(sizeof(x[0])))

#ifdef __TURBOC__
# pragma option -a-  /* byte alignment */
#endif /* __TURBOC__ */

#ifndef FALSE
# define FALSE (0)
#endif /* FALSE */

#ifndef TRUE
# define TRUE (!FALSE)
#endif /* TRUE */

/************************************************************************/
/*      Manifest Constants                                              */
/************************************************************************/

#define CAPLIST_BIT 0x0010              // does device have capabilities list?

#define MAX_LINE        512             // max length of a line
#define MAX_ENV_VAR     30              // max length of a environment var
#define MAX_ENV_LIST    20              // max length of environment list to retutn


#define SIGNATURE "PCICFG"              // PCICFG.DAT signature at start of file
#define SIGNATURE_LENGTH (sizeof(SIGNATURE)-1)

#endif


⌨️ 快捷键说明

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