Skip to content

Commit

Permalink
Merge pull request #152 from hky1999/fix_virtio_pci_device_id
Browse files Browse the repository at this point in the history
  • Loading branch information
equation314 authored Jun 6, 2024
2 parents ba8f1fc + 6c53971 commit 46b0f78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/axdriver/src/virtio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ impl<D: VirtIoDevMeta> DriverProbe for VirtIoDriver<D> {
return None;
}
match (D::DEVICE_TYPE, dev_info.device_id) {
(DeviceType::Net, 0x1000) | (DeviceType::Net, 0x1040) => {}
(DeviceType::Block, 0x1001) | (DeviceType::Block, 0x1041) => {}
(DeviceType::Net, 0x1000) | (DeviceType::Net, 0x1041) => {}
(DeviceType::Block, 0x1001) | (DeviceType::Block, 0x1042) => {}
(DeviceType::Display, 0x1050) => {}
_ => return None,
}
Expand Down

0 comments on commit 46b0f78

Please sign in to comment.