📄 pciscan.h
字号:
/*****************************************************************************
Copyright (c) VIA Technologies(China), Inc.
Author: Charlie Feng, Software Team
File: pciscan.h
Version: 0.2
Last Modified: 2007-04-25
Description: The header file of pciscan.
*****************************************************************************/
#ifndef TRAINNING_PCI_SCAN_H
#define TRAINNING_PCI_SCAN_H
// Two Configuration Space Registers
#define PCI_CONFIG_ADDRESS 0xCF8
#define PCI_CONFIG_DATA 0xCFC
// Maximum possible numbers of Bus/Device/Function
#define BUS_MAX 0xff
#define DEVICE_MAX 0x1f
#define FUNCTION_MAX 0x7
// Mask bits for Bus/Device/Function
#define BUS_MASK 0xff00
#define DEVICE_MASK 0x00f8
#define FUNCTION_MASK 0x0007
// Other consts
#define FILE_NAME_MAX 30
// Calculate the Index written to PCI_CONFIG_ADDRESS
DWORD PCI_Index(unsigned int nBus, unsigned int nDevice, unsigned int nFunction);
// Display welcome information
void WelcomeMsg();
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -