Ejemplo n.º 1
0
 internal protected PCIE_Device(DWORD dwVendorId, DWORD dwDeviceId,//构造函数
                                WD_PCI_SLOT slot)
 {
     m_wdcDevice = new WDC_DEVICE();
     m_wdcDevice.id.pciId.dwVendorId = dwVendorId;
     m_wdcDevice.id.pciId.dwDeviceId = dwDeviceId;
     m_wdcDevice.slot.pciSlot        = slot;
     m_wdcDeviceMarshaler            = new MarshalWdcDevice();
     m_eventHandler = new EVENT_HANDLER_DOTNET(PCIE_EventHandler);
     m_regs         = new PCIE_Regs();
     SetDescription();
 }
Ejemplo n.º 2
0
 public PCIE_Device(DWORD dwVendorId, DWORD dwDeviceId,
                    WD_PCI_SLOT slot)
 {
     m_wdcDevice = new WDC_DEVICE();
     m_wdcDevice.id.pciId.dwVendorId = dwVendorId;
     m_wdcDevice.id.pciId.dwDeviceId = dwDeviceId;
     m_wdcDevice.slot.pciSlot        = slot;
     m_wdcDeviceMarshaler            = new MarshalWdcDevice();
     m_eventHandler = new EVENT_HANDLER_DOTNET(NEWAMD86_EventHandler);
     m_regs         = new PCIE_Regs();
     SetDescription();
     m_dmaMarshaler = new MarshalWdDma();
 }