关于ISA设备的驱动程序转换为PCI设备的Windows驱动
时间:09-12
来源:互联网
点击:
代码
break;
default:
break;
}
}
/* Device has been completely initialized and is ready to run. */
// Get the Vendor and Device ID
status = PciConfigRegisterBufferRead(
fdo,
i,
0,
sizeof(U32)
);
if (!NT_SUCCESS(status))
{
dx->Device.VendorId = 0xFFFF;
dx->Device.DeviceId = 0xFFFF;
}
else
{
// Record the Vendor and Device ID */
dx->Device.VendorId = i 0x0000FFFF;
dx->Device.DeviceId = i >> 16;
}
// Get the bus number and the slot number
status = GetBusSlotNumber(
dx->pPhysicalDeviceObject,
dx
);
if (!NT_SUCCESS(status))
{
return status;
}
return STATUS_SUCCESS;
}
共享中断向量只需将IoConnectInterrupt函数的第九个参数值置为TRUE就可以。
实践证明以上方法是可行的。
- Windows CE 进程、线程和内存管理(11-09)
- RedHatLinux新手入门教程(5)(11-12)
- uClinux介绍(11-09)
- openwebmailV1.60安装教学(11-12)
- Linux嵌入式系统开发平台选型探讨(11-09)
- Windows CE 进程、线程和内存管理(二)(11-09)