12#ifndef EFI_REDFISH_DISCOVER_INTERNAL_H_
13#define EFI_REDFISH_DISCOVER_INTERNAL_H_
39#define REDFISH_DISCOVER_VERSION 0x00010000
40#define EFI_REDFISH_DISCOVER_NETWORK_INTERFACE_TPL TPL_NOTIFY
42#define MAC_COMPARE(This, Target) (CompareMem ((VOID *)&(This)->MacAddress, &(Target)->MacAddress, (This)->HwAddressSize) == 0)
43#define VALID_TCP6(Target, This) ((Target)->IsIpv6 && ((This)->NetworkProtocolType == ProtocolTypeTcp6))
44#define VALID_TCP4(Target, This) (!(Target)->IsIpv6 && ((This)->NetworkProtocolType == ProtocolTypeTcp4))
45#define REDFISH_HI_ITERFACE_SPECIFIC_DATA_LENGTH_OFFSET ((UINT16)(UINTN)(&((SMBIOS_TABLE_TYPE42 *)0)->InterfaceTypeSpecificDataLength))
46#define REDFISH_HI_PROTOCOL_HOSTNAME_LENGTH_OFFSET ((UINT16)(UINTN)(&((REDFISH_OVER_IP_PROTOCOL_DATA *)0)->RedfishServiceHostnameLength))
52#define EFI_REDFISH_DISCOVER_TCP4_INSTANCE_GUID \
54 0xfbab97a4, 0x4c6a, 0xf8e8, { 0xf2, 0x25, 0x42, 0x8a, 0x80, 0x3f, 0xb6, 0xaa } \
57#define EFI_REDFISH_DISCOVER_TCP6_INSTANCE_GUID \
59 0xbe513b6d, 0x41c1, 0x96Ed, { 0x8d, 0xaf, 0x3e, 0x89, 0xc5, 0xf5, 0x02, 0x25 } \
62#define EFI_REDFISH_DISCOVER_REST_EX_INSTANCE_GUID \
64 0xc44a6076, 0xd42a, 0x4d54, { 0x85, 0x6d, 0x98, 0x8a, 0x85, 0x8f, 0xa1, 0x11 } \
131#define EFI_REDFISH_DISCOVER_DATA_SIGNATURE SIGNATURE_32 ('E', 'R', 'D', 'D')
133#define EFI_REDFISH_DISOVER_DATA_FROM_DISCOVER_PROTOCOL(a) \
134 CR (a, EFI_REDFISH_DISCOVER_REST_EX_INSTANCE_INTERNAL, RedfishDiscoverProtocol, EFI_REDFISH_DISCOVER_DATA_SIGNATURE)
233 IN UINTN *RedfishVersion OPTIONAL,
234 IN CHAR8 *RedfishLocation OPTIONAL,
235 IN CHAR8 *Uuid OPTIONAL,
236 IN CHAR8 *Os OPTIONAL,
237 IN CHAR8 *OsVer OPTIONAL,
238 IN CHAR8 *Product OPTIONAL,
239 IN CHAR8 *ProductVer OPTIONAL,
263extern EFI_GUID gRedfishDiscoverTcp4Instance;
264extern EFI_GUID gRedfishDiscoverTcp6Instance;
265extern EFI_GUID gRedfishDiscoverRestEXInstance;
EFI_STATUS(EFIAPI * EFI_REDFISH_DISCOVER_GET_SUBNET_INFO)(IN EFI_HANDLE ImageHandle, IN EFI_REDFISH_DISCOVER_NETWORK_INTERFACE_INTERNAL *Instance)
EFI_STATUS AddAndSignalNewRedfishService(IN EFI_REDFISH_DISCOVERED_INTERNAL_INSTANCE *Instance, IN UINTN *RedfishVersion OPTIONAL, IN CHAR8 *RedfishLocation OPTIONAL, IN CHAR8 *Uuid OPTIONAL, IN CHAR8 *Os OPTIONAL, IN CHAR8 *OsVer OPTIONAL, IN CHAR8 *Product OPTIONAL, IN CHAR8 *ProductVer OPTIONAL, IN BOOLEAN UseHttps)
EFI_COMPONENT_NAME_PROTOCOL gRedfishDiscoverComponentName
NETWORK_INTERFACE_PROTOCOL_TYPE
@ ProtocolTypeTcp4
Network protocol TCPv4.
@ ProtocolTypeTcp6
Network protocol TCCv6.
@ ProtocolTypeRestEx
REST EX over network protocol.
EFI_COMPONENT_NAME2_PROTOCOL gRedfishDiscoverComponentName2
EFI_STATUS RedfishGetHostInterfaceProtocolData(IN EFI_SMBIOS_PROTOCOL *Smbios, OUT REDFISH_INTERFACE_DATA **DeviceDescriptor, OUT REDFISH_OVER_IP_PROTOCOL_DATA **ProtocolData)
EFI_IP_ADDRESS SubnetAddr
Subnet ID.
UINT8 SubnetPrefixLength
Subnet prefix.
UINT32 NetworkProtocolType
EFI_MAC_ADDRESS MacAddress
MAC address of network interface.
LIST_ENTRY Entry
Link list entry.
UINT32 SubnetAddrInfoIPv6Number
IPv6 address info number.
REDFISH_DISCOVER_NETWORK_INTERFACE_PROTOCOL NetworkInterfaceProtocolInfo
Network interface protocol information.
EFI_HANDLE EfiRedfishDiscoverProtocolHandle
EFI_HANDLE RestExHandle
REST EX handle associated with this network interface.
CHAR16 * StrMacAddr
String to MAC address of network interface.
EFI_IP_ADDRESS SubnetMask
Subnet mask (IPv4 only)
EFI_HANDLE OpenDriverControllerHandle
The controller handle to open network protocol.
BOOLEAN GotSubnetInfo
Indicates sub net information is retrieved.
UINTN HwAddressSize
The size of network interface hardware address.
EFI_HANDLE OpenDriverAgentHandle
The agent to open network protocol.
EFI_IP6_ADDRESS_INFO * SubnetAddrInfoIPv6
IPv6 address info.
EFI_HANDLE OpenDriverControllerHandle
The controller handle to open network protocol.
EFI_HANDLE OpenDriverAgentHandle
The agent to open network protocol.
UINT32 RestExId
The identifier installed on REST EX controller handle.
EFI_REDFISH_DISCOVER_NETWORK_INTERFACE * NetworkInterfaceInstances
EFI_REDFISH_DISCOVER_PROTOCOL RedfishDiscoverProtocol
EFI_REDFISH_DISCOVER_PROTOCOL protocol.
EFI_HANDLE RestExControllerHandle
The controller handle which provide REST EX protocol.
UINTN NumberOfNetworkInterfaces
Number of network interfaces can do Redfish service discovery.
LIST_ENTRY Entry
Link list entry.
EFI_HANDLE RestExChildHandle
The child handle created through REST EX Service Protocol.
UINT32 Signature
Instance signature.
EFI_REST_EX_PROTOCOL * RestExProtocolInterface
Pointer to EFI_REST_EX_PROTOCOL.
BOOLEAN HostIntfValidation
Indicates whether to validate Redfish Host interface.
EFI_REDFISH_DISCOVER_NETWORK_INTERFACE_INTERNAL * NetworkInterface
LIST_ENTRY Entry
Link list entry.
EFI_REDFISH_DISCOVERED_TOKEN * DiscoverToken
Token used to signal when Redfish service is discovered.
EFI_REDFISH_DISCOVER_FLAG DiscoverFlags
EFI_REDFISH_DISCOVER_FLAG.
EFI_IP_ADDRESS TargetIpAddress
Target IP address reported in Redfish Host interface.
UINT8 HostAddrFormat
Unknown=00h, Ipv4=01h, Ipv6=02h.
EFI_IP_ADDRESS HostIpAddress
Host IP address reported in Redfish Host interface.
EFI_IP_ADDRESS HostSubnetMask
Host subnet mask address reported in Redfish Host interface.
LIST_ENTRY NextInstance
Next list.
EFI_REDFISH_DISCOVERED_INSTANCE * Instance
Pointer to EFI_REDFISH_DISCOVERED_INSTANCE.
VOID * NetworkProtocolInterface
The protocol interface of network protocol.
EFI_GUID ProtocolGuid
Network protocol GUID.
EFI_HANDLE ProtocolControllerHandle
The controller handle on network protocol.
UINT32 ProtocolDiscoverId
The identifier installed on network protocol handle.
EFI_GUID ProtocolServiceGuid
Network protocol service GUID.
EFI_GUID * RequiredProtocolGuid
Network protocol interface GUID.
EFI_GUID * DiscoveredProtocolGuid
Protocol interface GUID use to install identifier.
CHAR16 * ProtocolName
Protocol name.
EFI_REDFISH_DISCOVER_GET_SUBNET_INFO GetSubnetInfo
Function of getting subnet information.
EFI_GUID * RequiredServiceBindingProtocolGuid
Network protocol service GUID.
Device descriptor data formated based on Device Type.