TianoCore EDK2 master
Loading...
Searching...
No Matches
PlatformHostInterfaceBmcUsbNicLib.h
Go to the documentation of this file.
1
11#ifndef PLATFORM_HOST_INTERFACE_BMC_USB_NIC_LIB_H_
12#define PLATFORM_HOST_INTERFACE_BMC_USB_NIC_LIB_H_
13
14#include <Uefi.h>
20#include <Library/BaseLib.h>
22#include <Library/DebugLib.h>
30
33#include <Protocol/UsbIo.h>
34
35#define BMC_USB_NIC_HOST_INTERFASCE_READINESS_GUID \
36 { \
37 0xDD96F5D7, 0x4AE1, 0x4E6C, {0xA1, 0x30, 0xA5, 0xAC, 0x77, 0xDD, 0xE4, 0xA5} \
38 }
39
40//
41// This is the structure for BMC exposed
42// USB NIC information.
43//
44typedef struct {
54 UINT16 UsbVendorId;
55 UINT16 UsbProductId;
57 UINT8 *MacAddress;
59
60 //
61 // Below is the infortmation for building SMBIOS type 42.
62 //
65 UINT8 HostIpAddressIpv4[4];
66 UINT8 RedfishIpAddressIpv4[4];
67 UINT8 SubnetMaskIpv4[4];
68 UINT8 GatewayIpv4[4];
69 UINT16 VLanId;
73
74//
75// This is the structure for caching
76// BMC IPMI LAN Channel
77//
78typedef struct {
80 UINT8 Channel;
84#endif
UINT64 UINTN
LIST_ENTRY NextInstance
Link to the next IPMI LAN Channel.
EFI_MAC_ADDRESS MacAddress
IPMI LAN Channel MAC address.
UINT16 UsbProductId
USB Product ID of this BMC exposed USB NIC.
LIST_ENTRY NextInstance
Link to the next instance.
UINT8 IpAddressFormat
Redfish service IP version.
UINT8 IpAssignedType
Redfish service IP assign type.
UINT8 IpmiLanChannelNumber
BMC IPMI Lan Channel number.
UINT16 UsbVendorId
USB Vendor ID of this BMC exposed USB NIC.