|
10资产
NTSTATUS BPSKDevice::CTRL_AD9851_INIT_Handler(KIrp I)
{
NTSTATUS status = STATUS_SUCCESS;
t << "Entering BPSKDevice::CTRL_AD9851_INIT_Handler, " << I << EOL;
m_IoPortRange1.inb(0x90);
AD9851_CONTROL_STRUCT *AD9851_ctrl = (AD9851_CONTROL_STRUCT *)(I.IoctlBuffer());
for(DWORD i = 0;i < AD9851_ctrl->BytesCount;i++)
{
t<< "Control Word is: "<<AD9851_ctrl->ControlWord<<EOL;
m_IoPortRange1.outb(0x30,AD9851_ctrl->ControlWord);
}
m_IoPortRange1.inb(0x60);
I.Information() = 0;
return status;
}
这段代码是配置一个频率合成器的程序,是PCI9054驱动的一部分代码,现在的问题是m_IoPortRange1.outb(0x30,AD9851_ctrl->ControlWord);里面的0x30时什么地址,我只知道是把应用程序发过来的配置字放到0x30里面,但是这个地址什么意思,为什么放在这里面,m_IoPortRange1.inb(0x60);里面的0x60又是什么,这些地址在什么地方定义的,m_IoPortRange1影射到了PCIBAR2上
谢谢大家 |
|