VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/RedfishPkg/Include/Pcd/RestExServiceDevicePath.h@ 91683

Last change on this file since 91683 was 89983, checked in by vboxsync, 4 years ago

Devices/EFI: Merge edk-stable202105 and openssl 1.1.1j and make it build, bugref:4643

  • Property svn:eol-style set to native
File size: 1.2 KB
Line 
1/** @file
2 This library defines the UEFI device path data of network device for REST
3 service to decide which should be used as the Redfish host interface.
4
5 Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
6 (C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>
7
8 SPDX-License-Identifier: BSD-2-Clause-Patent
9
10**/
11
12#ifndef REST_EX_SERVICE_DEVICE_PATH_H_
13#define REST_EX_SERVICE_DEVICE_PATH_H_
14
15#include <Protocol/DevicePath.h>
16
17typedef enum {
18 DEVICE_PATH_MATCH_MAC_NODE = 1,
19 DEVICE_PATH_MATCH_PCI_NODE = 2,
20 DEVICE_PATH_MATCH_MODE_MAX
21} DEVICE_PATH_MATCH_MODE;
22
23typedef struct {
24 UINT32 DevicePathMatchMode;
25 UINT32 DevicePathNum;
26 //
27 // Example:
28 // {DEVICE_PATH("PciRoot(0)/Pci(0,0)/MAC(005056C00002,0x1)")}
29 // DevicePath will be parsed as below:
30 // {0x02,0x01,0x0c,0x00,0xd0,0x41,0x03,0x0a,0x00,0x00,0x00,0x00,
31 // 0x01,0x01,0x06,0x00,0x00,0x00,
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,
33 // 0x7f,0xff,0x04,0x00}
34 //
35 EFI_DEVICE_PATH_PROTOCOL DevicePath[];
36} REST_EX_SERVICE_DEVICE_PATH_DATA;
37
38#endif
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette