TianoCore EDK2 master
Loading...
Searching...
No Matches
RestExServiceDevicePath.h
Go to the documentation of this file.
1
13#ifndef REST_EX_SERVICE_DEVICE_PATH_H_
14#define REST_EX_SERVICE_DEVICE_PATH_H_
15
16#include <Protocol/DevicePath.h>
17
18#define MAX_DEVICE_PATH_NODE 40
19
20typedef enum {
21 DEVICE_PATH_MATCH_MAC_NODE = 1,
22 DEVICE_PATH_MATCH_PCI_NODE = 2,
23 DEVICE_PATH_MATCH_MODE_MAX
24} DEVICE_PATH_MATCH_MODE;
25
26typedef struct {
27 UINT32 DevicePathMatchMode;
28 UINT32 DevicePathNum;
29 //
30 // Example:
31 // {DEVICE_PATH("PciRoot(0)/Pci(0,0)/MAC(005056C00002,0x1)")}
32 // DevicePath will be parsed as below:
33 // {0x02,0x01,0x0c,0x00,0xd0,0x41,0x03,0x0a,0x00,0x00,0x00,0x00,
34 // 0x01,0x01,0x06,0x00,0x00,0x00,
35 // 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,
36 // 0x7f,0xff,0x04,0x00}
37 //
38 EFI_DEVICE_PATH_PROTOCOL DevicePath[MAX_DEVICE_PATH_NODE];
40
41#endif