RecordTmp = (UINT8 *)Record + Offset;\r
\r
//\r
- // Check Device Type, only PCI/PCIe Network Interface v2 is supported now.\r
+ // Check Device Type, PCI/PCIe and USB Network Interface v2 is supported.\r
//\r
- if (*RecordTmp == REDFISH_HOST_INTERFACE_DEVICE_TYPE_PCI_PCIE_V2) {\r
- ASSERT (SpecificDataLen == sizeof (PCI_OR_PCIE_INTERFACE_DEVICE_DESCRIPTOR_V2) + 1);\r
+ if ((*RecordTmp == REDFISH_HOST_INTERFACE_DEVICE_TYPE_PCI_PCIE_V2) || (*RecordTmp == REDFISH_HOST_INTERFACE_DEVICE_TYPE_USB_V2)) {\r
+ if (*RecordTmp == REDFISH_HOST_INTERFACE_DEVICE_TYPE_PCI_PCIE_V2) {\r
+ ASSERT (SpecificDataLen == sizeof (PCI_OR_PCIE_INTERFACE_DEVICE_DESCRIPTOR_V2) + 1);\r
+ } else {\r
+ ASSERT (SpecificDataLen > sizeof (REDFISH_HOST_INTERFACE_DEVICE_TYPE_USB_V2) + 1);\r
+ }\r
+\r
*DeviceDescriptor = (REDFISH_INTERFACE_DATA *)RecordTmp;\r
Offset = Offset + SpecificDataLen;\r
RecordTmp = (UINT8 *)Record + Offset;\r