private DWORD Populate() { DWORD dwStatus; WDC_PCI_SCAN_RESULT scanResult = new WDC_PCI_SCAN_RESULT(); dwStatus = wdc_lib_decl.WDC_PciScanDevices(PCIE_DEFAULT_VENDOR_ID, PCIE_DEFAULT_DEVICE_ID, scanResult); if ((DWORD)wdc_err.WD_STATUS_SUCCESS != dwStatus) { Log.ErrLog("NEWAMD86_DeviceList.Populate: Failed scanning " + "the PCI bus. Error 0x" + dwStatus.ToString("X") + utils.Stat2Str(dwStatus)); return(dwStatus); } if (scanResult.dwNumDevices == 0) { Log.ErrLog("NEWAMD86_DeviceList.Populate: No matching PCI " + "device was found for search criteria " + PCIE_DEFAULT_VENDOR_ID.ToString("X") + ", " + PCIE_DEFAULT_DEVICE_ID.ToString("X")); return((DWORD)wdc_err.WD_INVALID_PARAMETER); } for (int i = 0; i < scanResult.dwNumDevices; ++i) { PCIE_Device device; WD_PCI_SLOT slot = scanResult.deviceSlot[i]; device = new PCIE_Device(scanResult.deviceId[i].dwVendorId, scanResult.deviceId[i].dwDeviceId, slot); this.Add(device); } return((DWORD)wdc_err.WD_STATUS_SUCCESS); }
private void PC1220X64_IntHandler(PCIE_Device device) { }