dmi_mgmt_nhi
Synopsis
#include <opendmi/entity/mgmt-controller.h>
typedef struct dmi_mgmt_nhi {
dmi_mgmt_nhi_device_type_t device_type;
dmi_mgmt_nhi_format_t format;
dmi_binary_t descriptor;
dmi_mgmt_nhi_usb_t usb;
dmi_mgmt_nhi_pci_t pci;
dmi_mgmt_nhi_usb_v2_t usb_v2;
dmi_mgmt_nhi_pci_v2_t pci_v2;
dmi_mgmt_nhi_oem_t oem;
} dmi_mgmt_nhi_t;
Description
The dmi_mgmt_nhi_t structure holds the data of a management controller host
interface of the network host interface type
(DMI_MGMT_IFACE_TYPE_NETWORK_HOST), as the Redfish host interface
specification (DSP0270) lays it out: the type of the device through which the
host reaches the management controller, and the descriptor identifying that
device. It is the type of the nhi field of dmi_mgmt_controller_t, which is
valid when has_nhi is set.
The descriptor is decoded into the one of the members usb, pci, usb_v2,
pci_v2 and oem which format names. A descriptor of an unknown type, or
one too short for its type, is not decoded, and format is
DMI_MGMT_NHI_FORMAT_RAW.
Fields
device_type-
Type of the device, see
dmi_mgmt_nhi_device_type. The values from 0x80 to 0xFF are OEM-defined. format-
Member holding the decoded descriptor, see
dmi_mgmt_nhi_format.DMI_MGMT_NHI_FORMAT_RAWif the descriptor has not been decoded, in which case onlydescriptoris to be used. descriptor-
Descriptor of the device, the bytes following the device type, as the structure carries them.
usb-
Descriptor of a USB network interface, valid if
formatisDMI_MGMT_NHI_FORMAT_USB. Seedmi_mgmt_nhi_usb. pci-
Descriptor of a PCI or PCIe network interface, valid if
formatisDMI_MGMT_NHI_FORMAT_PCI. Seedmi_mgmt_nhi_pci. usb_v2-
Descriptor of a USB network interface, second version, valid if
formatisDMI_MGMT_NHI_FORMAT_USB_V2. Seedmi_mgmt_nhi_usb_v2. pci_v2-
Descriptor of a PCI or PCIe network interface, second version, valid if
formatisDMI_MGMT_NHI_FORMAT_PCI_V2. Seedmi_mgmt_nhi_pci_v2. oem-
Descriptor of an OEM-defined device, valid if
formatisDMI_MGMT_NHI_FORMAT_OEM. Seedmi_mgmt_nhi_oem.