mirror of
https://github.com/nsacyber/HIRS.git
synced 2024-12-18 20:47:58 +00:00
added pciids translations to SPDM Device Context file
This commit is contained in:
parent
2b7b19a5f9
commit
137c801b3a
@ -3,6 +3,9 @@ package hirs.utils.tpm.eventlog.events;
|
|||||||
import hirs.utils.HexUtils;
|
import hirs.utils.HexUtils;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
|
||||||
|
import static hirs.utils.PciIds.translateDevice;
|
||||||
|
import static hirs.utils.PciIds.translateVendor;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class to process the DEVICE_SECURITY_EVENT_DATA_PCI_CONTEXT event per PFP.
|
* Class to process the DEVICE_SECURITY_EVENT_DATA_PCI_CONTEXT event per PFP.
|
||||||
* <p>
|
* <p>
|
||||||
@ -108,11 +111,11 @@ public class DeviceSecurityEventDataPciContext extends DeviceSecurityEventDataDe
|
|||||||
|
|
||||||
dSEDpciContextInfo += super.toString();
|
dSEDpciContextInfo += super.toString();
|
||||||
dSEDpciContextInfo += "\n Device Type = PCI";
|
dSEDpciContextInfo += "\n Device Type = PCI";
|
||||||
dSEDpciContextInfo += "\n VendorID = 0x" + vendorId;
|
dSEDpciContextInfo += "\n Vendor = " + translateVendor(vendorId);
|
||||||
dSEDpciContextInfo += "\n DeviceID = 0x" + deviceId;
|
dSEDpciContextInfo += "\n Device = " + translateDevice(vendorId, deviceId);
|
||||||
dSEDpciContextInfo += "\n RevisionID = 0x" + revisionId;
|
dSEDpciContextInfo += "\n RevisionID = 0x" + revisionId;
|
||||||
dSEDpciContextInfo += "\n ClassCode = 0x" + classCode;
|
dSEDpciContextInfo += "\n ClassCode = 0x" + classCode;
|
||||||
dSEDpciContextInfo += "\n SubsystemVendorID = 0x" + subsystemVendorId;
|
dSEDpciContextInfo += "\n SubsystemVendor = " + translateVendor(subsystemVendorId);
|
||||||
dSEDpciContextInfo += "\n SubsystemID = 0x" + subsystemId;
|
dSEDpciContextInfo += "\n SubsystemID = 0x" + subsystemId;
|
||||||
|
|
||||||
return dSEDpciContextInfo;
|
return dSEDpciContextInfo;
|
||||||
|
Loading…
Reference in New Issue
Block a user