mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-10 13:56:48 +00:00
Fix the offset of PCI device class code
This commit is contained in:
parent
4701eaf0cb
commit
2c6cbee92f
@ -35,7 +35,7 @@ impl PciDeviceId {
|
||||
let revision_id = location.read8(PciDeviceCommonCfgOffset::RevisionId as u16);
|
||||
let prog_if = location.read8(PciDeviceCommonCfgOffset::ClassCode as u16);
|
||||
let subclass = location.read8(PciDeviceCommonCfgOffset::ClassCode as u16 + 1);
|
||||
let class = location.read8(PciDeviceCommonCfgOffset::ClassCode as u16 + 1);
|
||||
let class = location.read8(PciDeviceCommonCfgOffset::ClassCode as u16 + 2);
|
||||
let subsystem_vendor_id =
|
||||
location.read16(PciDeviceCommonCfgOffset::SubsystemVendorId as u16);
|
||||
let subsystem_id = location.read16(PciDeviceCommonCfgOffset::SubsystemId as u16);
|
||||
|
Loading…
x
Reference in New Issue
Block a user