]> git.proxmox.com Git - mirror_edk2.git/blame - RedfishPkg/Include/Pcd/RestExServiceDevicePath.h
RedfishPkg/Include: PCD definitions of Host Interface EFI device path
[mirror_edk2.git] / RedfishPkg / Include / Pcd / RestExServiceDevicePath.h
CommitLineData
b9b7406c
AC
1/** @file\r
2 This library defines the UEFI device path data of network device for REST\r
3 service to decide which should be used as the Redfish host interface.\r
4\r
5 Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>\r
6 (C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>\r
7\r
8 SPDX-License-Identifier: BSD-2-Clause-Patent\r
9\r
10**/\r
11\r
12#ifndef REST_EX_SERVICE_DEVICE_PATH_H_\r
13#define REST_EX_SERVICE_DEVICE_PATH_H_\r
14\r
15#include <Protocol/DevicePath.h>\r
16\r
17typedef enum {\r
18 DEVICE_PATH_MATCH_MAC_NODE = 1,\r
19 DEVICE_PATH_MATCH_PCI_NODE = 2,\r
20 DEVICE_PATH_MATCH_MODE_MAX\r
21} DEVICE_PATH_MATCH_MODE;\r
22\r
23typedef struct {\r
24 UINT32 DevicePathMatchMode;\r
25 UINT32 DevicePathNum;\r
26 //\r
27 // Example:\r
28 // {DEVICE_PATH("PciRoot(0)/Pci(0,0)/MAC(005056C00002,0x1)")}\r
29 // DevicePath will be parsed as below:\r
30 // {0x02,0x01,0x0c,0x00,0xd0,0x41,0x03,0x0a,0x00,0x00,0x00,0x00,\r
31 // 0x01,0x01,0x06,0x00,0x00,0x00,\r
32 // 0x03,0x0b,0x25,0x00,0x00,0x50,0x56,0xc0,0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,\r
33 // 0x7f,0xff,0x04,0x00}\r
34 //\r
35 EFI_DEVICE_PATH_PROTOCOL DevicePath[];\r
36} REST_EX_SERVICE_DEVICE_PATH_DATA;\r
37\r
38#endif\r