KPciConfiguration, KPciSlot类:
一、Overview
二、Member Functions of KPciConfiguration
1、KPciConfiguration - Constructor (4 forms)构造函数四种形式
2、Initialize - Initialization when default constructor used当用默认的不带参数的构造函数时,这个函数完成初始化任务
3、Invalidate - Removes the object from an initialized state从一个初始化了的状态删除对象资源
4、IsValid - Test if the object is initialized测试这个对象是否已经初始化成功
5、ReadHeader - Read PCI configuration header读PCI配置空间的头信息
6、WriteHeader - Write PCI configuration header写PCI配置空间的头信息
7、ReadDeviceSpecificConfig
8、WriteDeviceSpecificConfi
9、ReadCommandRegister - Read the PCI command register读PCI命令寄存器
10、WriteCommandRegister - Write the PCI command register写PCI命令寄存器
11、Control - Access the PCI control register读写PCI的控制寄存器
12、ReadStatusRegister - Read the PCI status register读PCI的状态寄存器
13、ReadBaseAddress - Read one of the base address registers from the PCI configuration space (two forms)从PCI配置空间中读一个基地址寄存器(两种形式)
14、WriteBaseAddress - Write one of the base address registers in the PCI configuration space (two forms)从PCI配置空间中写一个基地址寄存器(两种形式)
15、ReadInterrupt - Read the interrupt register读中断寄存器
16、WriteInterrupt - Write the interrupt register写中断寄存器
17、Enumerate - Static member to enumerate all PCI devices静态函数,用于列举所有PCI设备。
三、Member Functions of KPciSlot
1、KPciSlot - Constructor构造函数
2、Initialize - Initialize the object初始化对象的函数
3、Invalidate - Removes the object from an initialized state从一个初始化了的状态删除对象
4、Slot - Accessor to retrieve the slot vector获取插槽向量
5、Bus - Accessor to retrieve the bus number获取总线序号
6、Device - Accessor to retrieve the device number获取设备序号
7、Function - Accessor to retrieve the function number获取功能序号
8、Increment - Advance to the next function前进到下一个功能
9、IncrementDevice - Advance to the next device前进到下一个设备
10、MarkInvalid - Mark the object as invalid把对象标记为不合法
11、IsValid - Test the validity of the object测试对象的合法性
四、Example
class SuperFastCard : public KDevice
{
SuperFastCard::SuperFastCard(void) :
{
}