pciscan.h
来自「对PCI总线设备配置空间进行访问`枚举的小程序,」· C头文件 代码 · 共 38 行
H
38 行
/*****************************************************************************
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 + =
减小字号Ctrl + -
显示快捷键?