common.h

来自「智邦网卡测试程序源码(2张网卡pingpong)」· C头文件 代码 · 共 37 行

H
37
字号
#define SCREEN_SEGMENT     0xB800
#define BLACK              0x00
#define BLUE               0x01
#define GREEN              0x02
#define GREEN_B            0x12
#define GREEN_L_B          0x1A
#define GRAY               0x07
#define RED                0x04
#define RED_L              0x14
#define GREEN_L            0x0A
#define CYAN               0x0B
#define CYAN_B             0x1B
#define RED_B              0x0C
#define PINK               0x0D
#define PINK_L             0x1D
#define YELLOW             0x0E
#define WHITE              0x0F
#define PCI_FUNCTION_ID    0xB1
#define PCI_BIOS_PRESENT   0x01
#define FIND_PCI_DEVICE    0x02
#define READ_CONFIG_BYTE   0x08
#define READ_CONFIG_WORD   0x09
#define WRITE_CONFIG_BYTE  0x0B
#define WRITE_CONFIG_WORD  0x0C
#define WRITE_CONFIG_DWORD 0x0D
#define PCI_BIOS_INT       0x1a
#define TRUE               1
#define FALSE              0
#define ERROR              1
#define NOERROR            0
//#define TEST_COUNT         (1515-60)
#define TEST_COUNT         10000
#define ERROR_COUNT        3
#define SUCCESS            0
#define FAIL               1

⌨️ 快捷键说明

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