]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Include/Protocol/DevicePath.h
MdePkg: add definitions for ACPI NVDIMM Device Path
[mirror_edk2.git] / MdePkg / Include / Protocol / DevicePath.h
1 /** @file
2 The device path protocol as defined in UEFI 2.0.
3
4 The device path represents a programmatic path to a device,
5 from a software point of view. The path must persist from boot to boot, so
6 it can not contain things like PCI bus numbers that change from boot to boot.
7
8 Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
9 SPDX-License-Identifier: BSD-2-Clause-Patent
10
11 **/
12
13 #ifndef __EFI_DEVICE_PATH_PROTOCOL_H__
14 #define __EFI_DEVICE_PATH_PROTOCOL_H__
15
16 #include <Guid/PcAnsi.h>
17 #include <IndustryStandard/Bluetooth.h>
18 #include <IndustryStandard/Acpi60.h>
19
20 ///
21 /// Device Path protocol.
22 ///
23 #define EFI_DEVICE_PATH_PROTOCOL_GUID \
24 { \
25 0x9576e91, 0x6d3f, 0x11d2, {0x8e, 0x39, 0x0, 0xa0, 0xc9, 0x69, 0x72, 0x3b } \
26 }
27
28 ///
29 /// Device Path guid definition for backward-compatible with EFI1.1.
30 ///
31 #define DEVICE_PATH_PROTOCOL EFI_DEVICE_PATH_PROTOCOL_GUID
32
33 #pragma pack(1)
34
35 /**
36 This protocol can be used on any device handle to obtain generic path/location
37 information concerning the physical device or logical device. If the handle does
38 not logically map to a physical device, the handle may not necessarily support
39 the device path protocol. The device path describes the location of the device
40 the handle is for. The size of the Device Path can be determined from the structures
41 that make up the Device Path.
42 **/
43 typedef struct {
44 UINT8 Type; ///< 0x01 Hardware Device Path.
45 ///< 0x02 ACPI Device Path.
46 ///< 0x03 Messaging Device Path.
47 ///< 0x04 Media Device Path.
48 ///< 0x05 BIOS Boot Specification Device Path.
49 ///< 0x7F End of Hardware Device Path.
50
51 UINT8 SubType; ///< Varies by Type
52 ///< 0xFF End Entire Device Path, or
53 ///< 0x01 End This Instance of a Device Path and start a new
54 ///< Device Path.
55
56 UINT8 Length[2]; ///< Specific Device Path data. Type and Sub-Type define
57 ///< type of data. Size of data is included in Length.
58
59 } EFI_DEVICE_PATH_PROTOCOL;
60
61 ///
62 /// Device Path protocol definition for backward-compatible with EFI1.1.
63 ///
64 typedef EFI_DEVICE_PATH_PROTOCOL EFI_DEVICE_PATH;
65
66 ///
67 /// Hardware Device Paths.
68 ///
69 #define HARDWARE_DEVICE_PATH 0x01
70
71 ///
72 /// PCI Device Path SubType.
73 ///
74 #define HW_PCI_DP 0x01
75
76 ///
77 /// PCI Device Path.
78 ///
79 typedef struct {
80 EFI_DEVICE_PATH_PROTOCOL Header;
81 ///
82 /// PCI Function Number.
83 ///
84 UINT8 Function;
85 ///
86 /// PCI Device Number.
87 ///
88 UINT8 Device;
89 } PCI_DEVICE_PATH;
90
91 ///
92 /// PCCARD Device Path SubType.
93 ///
94 #define HW_PCCARD_DP 0x02
95
96 ///
97 /// PCCARD Device Path.
98 ///
99 typedef struct {
100 EFI_DEVICE_PATH_PROTOCOL Header;
101 ///
102 /// Function Number (0 = First Function).
103 ///
104 UINT8 FunctionNumber;
105 } PCCARD_DEVICE_PATH;
106
107 ///
108 /// Memory Mapped Device Path SubType.
109 ///
110 #define HW_MEMMAP_DP 0x03
111
112 ///
113 /// Memory Mapped Device Path.
114 ///
115 typedef struct {
116 EFI_DEVICE_PATH_PROTOCOL Header;
117 ///
118 /// EFI_MEMORY_TYPE
119 ///
120 UINT32 MemoryType;
121 ///
122 /// Starting Memory Address.
123 ///
124 EFI_PHYSICAL_ADDRESS StartingAddress;
125 ///
126 /// Ending Memory Address.
127 ///
128 EFI_PHYSICAL_ADDRESS EndingAddress;
129 } MEMMAP_DEVICE_PATH;
130
131 ///
132 /// Hardware Vendor Device Path SubType.
133 ///
134 #define HW_VENDOR_DP 0x04
135
136 ///
137 /// The Vendor Device Path allows the creation of vendor-defined Device Paths. A vendor must
138 /// allocate a Vendor GUID for a Device Path. The Vendor GUID can then be used to define the
139 /// contents on the n bytes that follow in the Vendor Device Path node.
140 ///
141 typedef struct {
142 EFI_DEVICE_PATH_PROTOCOL Header;
143 ///
144 /// Vendor-assigned GUID that defines the data that follows.
145 ///
146 EFI_GUID Guid;
147 ///
148 /// Vendor-defined variable size data.
149 ///
150 } VENDOR_DEVICE_PATH;
151
152 ///
153 /// Controller Device Path SubType.
154 ///
155 #define HW_CONTROLLER_DP 0x05
156
157 ///
158 /// Controller Device Path.
159 ///
160 typedef struct {
161 EFI_DEVICE_PATH_PROTOCOL Header;
162 ///
163 /// Controller number.
164 ///
165 UINT32 ControllerNumber;
166 } CONTROLLER_DEVICE_PATH;
167
168 ///
169 /// BMC Device Path SubType.
170 ///
171 #define HW_BMC_DP 0x06
172
173 ///
174 /// BMC Device Path.
175 ///
176 typedef struct {
177 EFI_DEVICE_PATH_PROTOCOL Header;
178 ///
179 /// Interface Type.
180 ///
181 UINT8 InterfaceType;
182 ///
183 /// Base Address.
184 ///
185 UINT8 BaseAddress[8];
186 } BMC_DEVICE_PATH;
187
188 ///
189 /// ACPI Device Paths.
190 ///
191 #define ACPI_DEVICE_PATH 0x02
192
193 ///
194 /// ACPI Device Path SubType.
195 ///
196 #define ACPI_DP 0x01
197 typedef struct {
198 EFI_DEVICE_PATH_PROTOCOL Header;
199 ///
200 /// Device's PnP hardware ID stored in a numeric 32-bit
201 /// compressed EISA-type ID. This value must match the
202 /// corresponding _HID in the ACPI name space.
203 ///
204 UINT32 HID;
205 ///
206 /// Unique ID that is required by ACPI if two devices have the
207 /// same _HID. This value must also match the corresponding
208 /// _UID/_HID pair in the ACPI name space. Only the 32-bit
209 /// numeric value type of _UID is supported. Thus, strings must
210 /// not be used for the _UID in the ACPI name space.
211 ///
212 UINT32 UID;
213 } ACPI_HID_DEVICE_PATH;
214
215 ///
216 /// Expanded ACPI Device Path SubType.
217 ///
218 #define ACPI_EXTENDED_DP 0x02
219 typedef struct {
220 EFI_DEVICE_PATH_PROTOCOL Header;
221 ///
222 /// Device's PnP hardware ID stored in a numeric 32-bit
223 /// compressed EISA-type ID. This value must match the
224 /// corresponding _HID in the ACPI name space.
225 ///
226 UINT32 HID;
227 ///
228 /// Unique ID that is required by ACPI if two devices have the
229 /// same _HID. This value must also match the corresponding
230 /// _UID/_HID pair in the ACPI name space.
231 ///
232 UINT32 UID;
233 ///
234 /// Device's compatible PnP hardware ID stored in a numeric
235 /// 32-bit compressed EISA-type ID. This value must match at
236 /// least one of the compatible device IDs returned by the
237 /// corresponding _CID in the ACPI name space.
238 ///
239 UINT32 CID;
240 ///
241 /// Optional variable length _HIDSTR.
242 /// Optional variable length _UIDSTR.
243 /// Optional variable length _CIDSTR.
244 ///
245 } ACPI_EXTENDED_HID_DEVICE_PATH;
246
247 //
248 // EISA ID Macro
249 // EISA ID Definition 32-bits
250 // bits[15:0] - three character compressed ASCII EISA ID.
251 // bits[31:16] - binary number
252 // Compressed ASCII is 5 bits per character 0b00001 = 'A' 0b11010 = 'Z'
253 //
254 #define PNP_EISA_ID_CONST 0x41d0
255 #define EISA_ID(_Name, _Num) ((UINT32)((_Name) | (_Num) << 16))
256 #define EISA_PNP_ID(_PNPId) (EISA_ID(PNP_EISA_ID_CONST, (_PNPId)))
257 #define EFI_PNP_ID(_PNPId) (EISA_ID(PNP_EISA_ID_CONST, (_PNPId)))
258
259 #define PNP_EISA_ID_MASK 0xffff
260 #define EISA_ID_TO_NUM(_Id) ((_Id) >> 16)
261
262 ///
263 /// ACPI _ADR Device Path SubType.
264 ///
265 #define ACPI_ADR_DP 0x03
266
267 ///
268 /// The _ADR device path is used to contain video output device attributes to support the Graphics
269 /// Output Protocol. The device path can contain multiple _ADR entries if multiple video output
270 /// devices are displaying the same output.
271 ///
272 typedef struct {
273 EFI_DEVICE_PATH_PROTOCOL Header;
274 ///
275 /// _ADR value. For video output devices the value of this
276 /// field comes from Table B-2 of the ACPI 3.0 specification. At
277 /// least one _ADR value is required.
278 ///
279 UINT32 ADR;
280 //
281 // This device path may optionally contain more than one _ADR entry.
282 //
283 } ACPI_ADR_DEVICE_PATH;
284
285 ///
286 /// ACPI NVDIMM Device Path SubType.
287 ///
288 #define ACPI_NVDIMM_DP 0x04
289 ///
290 ///
291 typedef struct {
292 EFI_DEVICE_PATH_PROTOCOL Header;
293 ///
294 /// NFIT Device Handle, the _ADR of the NVDIMM device.
295 /// The value of this field comes from Section 9.20.3 of the ACPI 6.2A specification.
296 ///
297 UINT32 NFITDeviceHandle;
298 } ACPI_NVDIMM_DEVICE_PATH;
299
300 #define ACPI_ADR_DISPLAY_TYPE_OTHER 0
301 #define ACPI_ADR_DISPLAY_TYPE_VGA 1
302 #define ACPI_ADR_DISPLAY_TYPE_TV 2
303 #define ACPI_ADR_DISPLAY_TYPE_EXTERNAL_DIGITAL 3
304 #define ACPI_ADR_DISPLAY_TYPE_INTERNAL_DIGITAL 4
305
306 #define ACPI_DISPLAY_ADR(_DeviceIdScheme, _HeadId, _NonVgaOutput, _BiosCanDetect, _VendorInfo, _Type, _Port, _Index) \
307 ((UINT32)( ((UINT32)((_DeviceIdScheme) & 0x1) << 31) | \
308 (((_HeadId) & 0x7) << 18) | \
309 (((_NonVgaOutput) & 0x1) << 17) | \
310 (((_BiosCanDetect) & 0x1) << 16) | \
311 (((_VendorInfo) & 0xf) << 12) | \
312 (((_Type) & 0xf) << 8) | \
313 (((_Port) & 0xf) << 4) | \
314 ((_Index) & 0xf) ))
315
316 ///
317 /// Messaging Device Paths.
318 /// This Device Path is used to describe the connection of devices outside the resource domain of the
319 /// system. This Device Path can describe physical messaging information like SCSI ID, or abstract
320 /// information like networking protocol IP addresses.
321 ///
322 #define MESSAGING_DEVICE_PATH 0x03
323
324 ///
325 /// ATAPI Device Path SubType
326 ///
327 #define MSG_ATAPI_DP 0x01
328 typedef struct {
329 EFI_DEVICE_PATH_PROTOCOL Header;
330 ///
331 /// Set to zero for primary, or one for secondary.
332 ///
333 UINT8 PrimarySecondary;
334 ///
335 /// Set to zero for master, or one for slave mode.
336 ///
337 UINT8 SlaveMaster;
338 ///
339 /// Logical Unit Number.
340 ///
341 UINT16 Lun;
342 } ATAPI_DEVICE_PATH;
343
344 ///
345 /// SCSI Device Path SubType.
346 ///
347 #define MSG_SCSI_DP 0x02
348 typedef struct {
349 EFI_DEVICE_PATH_PROTOCOL Header;
350 ///
351 /// Target ID on the SCSI bus (PUN).
352 ///
353 UINT16 Pun;
354 ///
355 /// Logical Unit Number (LUN).
356 ///
357 UINT16 Lun;
358 } SCSI_DEVICE_PATH;
359
360 ///
361 /// Fibre Channel SubType.
362 ///
363 #define MSG_FIBRECHANNEL_DP 0x03
364 typedef struct {
365 EFI_DEVICE_PATH_PROTOCOL Header;
366 ///
367 /// Reserved for the future.
368 ///
369 UINT32 Reserved;
370 ///
371 /// Fibre Channel World Wide Number.
372 ///
373 UINT64 WWN;
374 ///
375 /// Fibre Channel Logical Unit Number.
376 ///
377 UINT64 Lun;
378 } FIBRECHANNEL_DEVICE_PATH;
379
380 ///
381 /// Fibre Channel Ex SubType.
382 ///
383 #define MSG_FIBRECHANNELEX_DP 0x15
384 typedef struct {
385 EFI_DEVICE_PATH_PROTOCOL Header;
386 ///
387 /// Reserved for the future.
388 ///
389 UINT32 Reserved;
390 ///
391 /// 8 byte array containing Fibre Channel End Device Port Name.
392 ///
393 UINT8 WWN[8];
394 ///
395 /// 8 byte array containing Fibre Channel Logical Unit Number.
396 ///
397 UINT8 Lun[8];
398 } FIBRECHANNELEX_DEVICE_PATH;
399
400 ///
401 /// 1394 Device Path SubType
402 ///
403 #define MSG_1394_DP 0x04
404 typedef struct {
405 EFI_DEVICE_PATH_PROTOCOL Header;
406 ///
407 /// Reserved for the future.
408 ///
409 UINT32 Reserved;
410 ///
411 /// 1394 Global Unique ID (GUID).
412 ///
413 UINT64 Guid;
414 } F1394_DEVICE_PATH;
415
416 ///
417 /// USB Device Path SubType.
418 ///
419 #define MSG_USB_DP 0x05
420 typedef struct {
421 EFI_DEVICE_PATH_PROTOCOL Header;
422 ///
423 /// USB Parent Port Number.
424 ///
425 UINT8 ParentPortNumber;
426 ///
427 /// USB Interface Number.
428 ///
429 UINT8 InterfaceNumber;
430 } USB_DEVICE_PATH;
431
432 ///
433 /// USB Class Device Path SubType.
434 ///
435 #define MSG_USB_CLASS_DP 0x0f
436 typedef struct {
437 EFI_DEVICE_PATH_PROTOCOL Header;
438 ///
439 /// Vendor ID assigned by USB-IF. A value of 0xFFFF will
440 /// match any Vendor ID.
441 ///
442 UINT16 VendorId;
443 ///
444 /// Product ID assigned by USB-IF. A value of 0xFFFF will
445 /// match any Product ID.
446 ///
447 UINT16 ProductId;
448 ///
449 /// The class code assigned by the USB-IF. A value of 0xFF
450 /// will match any class code.
451 ///
452 UINT8 DeviceClass;
453 ///
454 /// The subclass code assigned by the USB-IF. A value of
455 /// 0xFF will match any subclass code.
456 ///
457 UINT8 DeviceSubClass;
458 ///
459 /// The protocol code assigned by the USB-IF. A value of
460 /// 0xFF will match any protocol code.
461 ///
462 UINT8 DeviceProtocol;
463 } USB_CLASS_DEVICE_PATH;
464
465 ///
466 /// USB WWID Device Path SubType.
467 ///
468 #define MSG_USB_WWID_DP 0x10
469
470 ///
471 /// This device path describes a USB device using its serial number.
472 ///
473 typedef struct {
474 EFI_DEVICE_PATH_PROTOCOL Header;
475 ///
476 /// USB interface number.
477 ///
478 UINT16 InterfaceNumber;
479 ///
480 /// USB vendor id of the device.
481 ///
482 UINT16 VendorId;
483 ///
484 /// USB product id of the device.
485 ///
486 UINT16 ProductId;
487 ///
488 /// Last 64-or-fewer UTF-16 characters of the USB
489 /// serial number. The length of the string is
490 /// determined by the Length field less the offset of the
491 /// Serial Number field (10)
492 ///
493 /// CHAR16 SerialNumber[...];
494 } USB_WWID_DEVICE_PATH;
495
496 ///
497 /// Device Logical Unit SubType.
498 ///
499 #define MSG_DEVICE_LOGICAL_UNIT_DP 0x11
500 typedef struct {
501 EFI_DEVICE_PATH_PROTOCOL Header;
502 ///
503 /// Logical Unit Number for the interface.
504 ///
505 UINT8 Lun;
506 } DEVICE_LOGICAL_UNIT_DEVICE_PATH;
507
508 ///
509 /// SATA Device Path SubType.
510 ///
511 #define MSG_SATA_DP 0x12
512 typedef struct {
513 EFI_DEVICE_PATH_PROTOCOL Header;
514 ///
515 /// The HBA port number that facilitates the connection to the
516 /// device or a port multiplier. The value 0xFFFF is reserved.
517 ///
518 UINT16 HBAPortNumber;
519 ///
520 /// The Port multiplier port number that facilitates the connection
521 /// to the device. Must be set to 0xFFFF if the device is directly
522 /// connected to the HBA.
523 ///
524 UINT16 PortMultiplierPortNumber;
525 ///
526 /// Logical Unit Number.
527 ///
528 UINT16 Lun;
529 } SATA_DEVICE_PATH;
530
531 ///
532 /// Flag for if the device is directly connected to the HBA.
533 ///
534 #define SATA_HBA_DIRECT_CONNECT_FLAG 0x8000
535
536 ///
537 /// I2O Device Path SubType.
538 ///
539 #define MSG_I2O_DP 0x06
540 typedef struct {
541 EFI_DEVICE_PATH_PROTOCOL Header;
542 ///
543 /// Target ID (TID) for a device.
544 ///
545 UINT32 Tid;
546 } I2O_DEVICE_PATH;
547
548 ///
549 /// MAC Address Device Path SubType.
550 ///
551 #define MSG_MAC_ADDR_DP 0x0b
552 typedef struct {
553 EFI_DEVICE_PATH_PROTOCOL Header;
554 ///
555 /// The MAC address for a network interface padded with 0s.
556 ///
557 EFI_MAC_ADDRESS MacAddress;
558 ///
559 /// Network interface type(i.e. 802.3, FDDI).
560 ///
561 UINT8 IfType;
562 } MAC_ADDR_DEVICE_PATH;
563
564 ///
565 /// IPv4 Device Path SubType
566 ///
567 #define MSG_IPv4_DP 0x0c
568 typedef struct {
569 EFI_DEVICE_PATH_PROTOCOL Header;
570 ///
571 /// The local IPv4 address.
572 ///
573 EFI_IPv4_ADDRESS LocalIpAddress;
574 ///
575 /// The remote IPv4 address.
576 ///
577 EFI_IPv4_ADDRESS RemoteIpAddress;
578 ///
579 /// The local port number.
580 ///
581 UINT16 LocalPort;
582 ///
583 /// The remote port number.
584 ///
585 UINT16 RemotePort;
586 ///
587 /// The network protocol(i.e. UDP, TCP).
588 ///
589 UINT16 Protocol;
590 ///
591 /// 0x00 - The Source IP Address was assigned though DHCP.
592 /// 0x01 - The Source IP Address is statically bound.
593 ///
594 BOOLEAN StaticIpAddress;
595 ///
596 /// The gateway IP address
597 ///
598 EFI_IPv4_ADDRESS GatewayIpAddress;
599 ///
600 /// The subnet mask
601 ///
602 EFI_IPv4_ADDRESS SubnetMask;
603 } IPv4_DEVICE_PATH;
604
605 ///
606 /// IPv6 Device Path SubType.
607 ///
608 #define MSG_IPv6_DP 0x0d
609 typedef struct {
610 EFI_DEVICE_PATH_PROTOCOL Header;
611 ///
612 /// The local IPv6 address.
613 ///
614 EFI_IPv6_ADDRESS LocalIpAddress;
615 ///
616 /// The remote IPv6 address.
617 ///
618 EFI_IPv6_ADDRESS RemoteIpAddress;
619 ///
620 /// The local port number.
621 ///
622 UINT16 LocalPort;
623 ///
624 /// The remote port number.
625 ///
626 UINT16 RemotePort;
627 ///
628 /// The network protocol(i.e. UDP, TCP).
629 ///
630 UINT16 Protocol;
631 ///
632 /// 0x00 - The Local IP Address was manually configured.
633 /// 0x01 - The Local IP Address is assigned through IPv6
634 /// stateless auto-configuration.
635 /// 0x02 - The Local IP Address is assigned through IPv6
636 /// stateful configuration.
637 ///
638 UINT8 IpAddressOrigin;
639 ///
640 /// The prefix length
641 ///
642 UINT8 PrefixLength;
643 ///
644 /// The gateway IP address
645 ///
646 EFI_IPv6_ADDRESS GatewayIpAddress;
647 } IPv6_DEVICE_PATH;
648
649 ///
650 /// InfiniBand Device Path SubType.
651 ///
652 #define MSG_INFINIBAND_DP 0x09
653 typedef struct {
654 EFI_DEVICE_PATH_PROTOCOL Header;
655 ///
656 /// Flags to help identify/manage InfiniBand device path elements:
657 /// Bit 0 - IOC/Service (0b = IOC, 1b = Service).
658 /// Bit 1 - Extend Boot Environment.
659 /// Bit 2 - Console Protocol.
660 /// Bit 3 - Storage Protocol.
661 /// Bit 4 - Network Protocol.
662 /// All other bits are reserved.
663 ///
664 UINT32 ResourceFlags;
665 ///
666 /// 128-bit Global Identifier for remote fabric port.
667 ///
668 UINT8 PortGid[16];
669 ///
670 /// 64-bit unique identifier to remote IOC or server process.
671 /// Interpretation of field specified by Resource Flags (bit 0).
672 ///
673 UINT64 ServiceId;
674 ///
675 /// 64-bit persistent ID of remote IOC port.
676 ///
677 UINT64 TargetPortId;
678 ///
679 /// 64-bit persistent ID of remote device.
680 ///
681 UINT64 DeviceId;
682 } INFINIBAND_DEVICE_PATH;
683
684 #define INFINIBAND_RESOURCE_FLAG_IOC_SERVICE 0x01
685 #define INFINIBAND_RESOURCE_FLAG_EXTENDED_BOOT_ENVIRONMENT 0x02
686 #define INFINIBAND_RESOURCE_FLAG_CONSOLE_PROTOCOL 0x04
687 #define INFINIBAND_RESOURCE_FLAG_STORAGE_PROTOCOL 0x08
688 #define INFINIBAND_RESOURCE_FLAG_NETWORK_PROTOCOL 0x10
689
690 ///
691 /// UART Device Path SubType.
692 ///
693 #define MSG_UART_DP 0x0e
694 typedef struct {
695 EFI_DEVICE_PATH_PROTOCOL Header;
696 ///
697 /// Reserved.
698 ///
699 UINT32 Reserved;
700 ///
701 /// The baud rate setting for the UART style device. A value of 0
702 /// means that the device's default baud rate will be used.
703 ///
704 UINT64 BaudRate;
705 ///
706 /// The number of data bits for the UART style device. A value
707 /// of 0 means that the device's default number of data bits will be used.
708 ///
709 UINT8 DataBits;
710 ///
711 /// The parity setting for the UART style device.
712 /// Parity 0x00 - Default Parity.
713 /// Parity 0x01 - No Parity.
714 /// Parity 0x02 - Even Parity.
715 /// Parity 0x03 - Odd Parity.
716 /// Parity 0x04 - Mark Parity.
717 /// Parity 0x05 - Space Parity.
718 ///
719 UINT8 Parity;
720 ///
721 /// The number of stop bits for the UART style device.
722 /// Stop Bits 0x00 - Default Stop Bits.
723 /// Stop Bits 0x01 - 1 Stop Bit.
724 /// Stop Bits 0x02 - 1.5 Stop Bits.
725 /// Stop Bits 0x03 - 2 Stop Bits.
726 ///
727 UINT8 StopBits;
728 } UART_DEVICE_PATH;
729
730 ///
731 /// NVDIMM Namespace Device Path SubType.
732 ///
733 #define NVDIMM_NAMESPACE_DP 0x20
734 typedef struct {
735 EFI_DEVICE_PATH_PROTOCOL Header;
736 ///
737 /// Namespace unique label identifier UUID.
738 ///
739 EFI_GUID Uuid;
740 } NVDIMM_NAMESPACE_DEVICE_PATH;
741
742 //
743 // Use VENDOR_DEVICE_PATH struct
744 //
745 #define MSG_VENDOR_DP 0x0a
746 typedef VENDOR_DEVICE_PATH VENDOR_DEFINED_DEVICE_PATH;
747
748 #define DEVICE_PATH_MESSAGING_PC_ANSI EFI_PC_ANSI_GUID
749 #define DEVICE_PATH_MESSAGING_VT_100 EFI_VT_100_GUID
750 #define DEVICE_PATH_MESSAGING_VT_100_PLUS EFI_VT_100_PLUS_GUID
751 #define DEVICE_PATH_MESSAGING_VT_UTF8 EFI_VT_UTF8_GUID
752
753 ///
754 /// A new device path node is defined to declare flow control characteristics.
755 /// UART Flow Control Messaging Device Path
756 ///
757 typedef struct {
758 EFI_DEVICE_PATH_PROTOCOL Header;
759 ///
760 /// DEVICE_PATH_MESSAGING_UART_FLOW_CONTROL GUID.
761 ///
762 EFI_GUID Guid;
763 ///
764 /// Bitmap of supported flow control types.
765 /// Bit 0 set indicates hardware flow control.
766 /// Bit 1 set indicates Xon/Xoff flow control.
767 /// All other bits are reserved and are clear.
768 ///
769 UINT32 FlowControlMap;
770 } UART_FLOW_CONTROL_DEVICE_PATH;
771
772 #define UART_FLOW_CONTROL_HARDWARE 0x00000001
773 #define UART_FLOW_CONTROL_XON_XOFF 0x00000010
774
775 #define DEVICE_PATH_MESSAGING_SAS EFI_SAS_DEVICE_PATH_GUID
776 ///
777 /// Serial Attached SCSI (SAS) Device Path.
778 ///
779 typedef struct {
780 EFI_DEVICE_PATH_PROTOCOL Header;
781 ///
782 /// DEVICE_PATH_MESSAGING_SAS GUID.
783 ///
784 EFI_GUID Guid;
785 ///
786 /// Reserved for future use.
787 ///
788 UINT32 Reserved;
789 ///
790 /// SAS Address for Serial Attached SCSI Target.
791 ///
792 UINT64 SasAddress;
793 ///
794 /// SAS Logical Unit Number.
795 ///
796 UINT64 Lun;
797 ///
798 /// More Information about the device and its interconnect.
799 ///
800 UINT16 DeviceTopology;
801 ///
802 /// Relative Target Port (RTP).
803 ///
804 UINT16 RelativeTargetPort;
805 } SAS_DEVICE_PATH;
806
807 ///
808 /// Serial Attached SCSI (SAS) Ex Device Path SubType
809 ///
810 #define MSG_SASEX_DP 0x16
811 typedef struct {
812 EFI_DEVICE_PATH_PROTOCOL Header;
813 ///
814 /// 8-byte array of the SAS Address for Serial Attached SCSI Target Port.
815 ///
816 UINT8 SasAddress[8];
817 ///
818 /// 8-byte array of the SAS Logical Unit Number.
819 ///
820 UINT8 Lun[8];
821 ///
822 /// More Information about the device and its interconnect.
823 ///
824 UINT16 DeviceTopology;
825 ///
826 /// Relative Target Port (RTP).
827 ///
828 UINT16 RelativeTargetPort;
829 } SASEX_DEVICE_PATH;
830
831 ///
832 /// NvmExpress Namespace Device Path SubType.
833 ///
834 #define MSG_NVME_NAMESPACE_DP 0x17
835 typedef struct {
836 EFI_DEVICE_PATH_PROTOCOL Header;
837 UINT32 NamespaceId;
838 UINT64 NamespaceUuid;
839 } NVME_NAMESPACE_DEVICE_PATH;
840
841 ///
842 /// DNS Device Path SubType
843 ///
844 #define MSG_DNS_DP 0x1F
845 typedef struct {
846 EFI_DEVICE_PATH_PROTOCOL Header;
847 ///
848 /// Indicates the DNS server address is IPv4 or IPv6 address.
849 ///
850 UINT8 IsIPv6;
851 ///
852 /// Instance of the DNS server address.
853 ///
854 EFI_IP_ADDRESS DnsServerIp[];
855 } DNS_DEVICE_PATH;
856
857 ///
858 /// Uniform Resource Identifiers (URI) Device Path SubType
859 ///
860 #define MSG_URI_DP 0x18
861 typedef struct {
862 EFI_DEVICE_PATH_PROTOCOL Header;
863 ///
864 /// Instance of the URI pursuant to RFC 3986.
865 ///
866 CHAR8 Uri[];
867 } URI_DEVICE_PATH;
868
869 ///
870 /// Universal Flash Storage (UFS) Device Path SubType.
871 ///
872 #define MSG_UFS_DP 0x19
873 typedef struct {
874 EFI_DEVICE_PATH_PROTOCOL Header;
875 ///
876 /// Target ID on the UFS bus (PUN).
877 ///
878 UINT8 Pun;
879 ///
880 /// Logical Unit Number (LUN).
881 ///
882 UINT8 Lun;
883 } UFS_DEVICE_PATH;
884
885 ///
886 /// SD (Secure Digital) Device Path SubType.
887 ///
888 #define MSG_SD_DP 0x1A
889 typedef struct {
890 EFI_DEVICE_PATH_PROTOCOL Header;
891 UINT8 SlotNumber;
892 } SD_DEVICE_PATH;
893
894 ///
895 /// EMMC (Embedded MMC) Device Path SubType.
896 ///
897 #define MSG_EMMC_DP 0x1D
898 typedef struct {
899 EFI_DEVICE_PATH_PROTOCOL Header;
900 UINT8 SlotNumber;
901 } EMMC_DEVICE_PATH;
902
903 ///
904 /// iSCSI Device Path SubType
905 ///
906 #define MSG_ISCSI_DP 0x13
907 typedef struct {
908 EFI_DEVICE_PATH_PROTOCOL Header;
909 ///
910 /// Network Protocol (0 = TCP, 1+ = reserved).
911 ///
912 UINT16 NetworkProtocol;
913 ///
914 /// iSCSI Login Options.
915 ///
916 UINT16 LoginOption;
917 ///
918 /// iSCSI Logical Unit Number.
919 ///
920 UINT64 Lun;
921 ///
922 /// iSCSI Target Portal group tag the initiator intends
923 /// to establish a session with.
924 ///
925 UINT16 TargetPortalGroupTag;
926 ///
927 /// iSCSI NodeTarget Name. The length of the name
928 /// is determined by subtracting the offset of this field from Length.
929 ///
930 /// CHAR8 iSCSI Target Name.
931 } ISCSI_DEVICE_PATH;
932
933 #define ISCSI_LOGIN_OPTION_NO_HEADER_DIGEST 0x0000
934 #define ISCSI_LOGIN_OPTION_HEADER_DIGEST_USING_CRC32C 0x0002
935 #define ISCSI_LOGIN_OPTION_NO_DATA_DIGEST 0x0000
936 #define ISCSI_LOGIN_OPTION_DATA_DIGEST_USING_CRC32C 0x0008
937 #define ISCSI_LOGIN_OPTION_AUTHMETHOD_CHAP 0x0000
938 #define ISCSI_LOGIN_OPTION_AUTHMETHOD_NON 0x1000
939 #define ISCSI_LOGIN_OPTION_CHAP_BI 0x0000
940 #define ISCSI_LOGIN_OPTION_CHAP_UNI 0x2000
941
942 ///
943 /// VLAN Device Path SubType.
944 ///
945 #define MSG_VLAN_DP 0x14
946 typedef struct {
947 EFI_DEVICE_PATH_PROTOCOL Header;
948 ///
949 /// VLAN identifier (0-4094).
950 ///
951 UINT16 VlanId;
952 } VLAN_DEVICE_PATH;
953
954 ///
955 /// Bluetooth Device Path SubType.
956 ///
957 #define MSG_BLUETOOTH_DP 0x1b
958 typedef struct {
959 EFI_DEVICE_PATH_PROTOCOL Header;
960 ///
961 /// 48bit Bluetooth device address.
962 ///
963 BLUETOOTH_ADDRESS BD_ADDR;
964 } BLUETOOTH_DEVICE_PATH;
965
966 ///
967 /// Wi-Fi Device Path SubType.
968 ///
969 #define MSG_WIFI_DP 0x1C
970 typedef struct {
971 EFI_DEVICE_PATH_PROTOCOL Header;
972 ///
973 /// Service set identifier. A 32-byte octets string.
974 ///
975 UINT8 SSId[32];
976 } WIFI_DEVICE_PATH;
977
978 ///
979 /// Bluetooth LE Device Path SubType.
980 ///
981 #define MSG_BLUETOOTH_LE_DP 0x1E
982 typedef struct {
983 EFI_DEVICE_PATH_PROTOCOL Header;
984 BLUETOOTH_LE_ADDRESS Address;
985 } BLUETOOTH_LE_DEVICE_PATH;
986
987 //
988 // Media Device Path
989 //
990 #define MEDIA_DEVICE_PATH 0x04
991
992 ///
993 /// Hard Drive Media Device Path SubType.
994 ///
995 #define MEDIA_HARDDRIVE_DP 0x01
996
997 ///
998 /// The Hard Drive Media Device Path is used to represent a partition on a hard drive.
999 ///
1000 typedef struct {
1001 EFI_DEVICE_PATH_PROTOCOL Header;
1002 ///
1003 /// Describes the entry in a partition table, starting with entry 1.
1004 /// Partition number zero represents the entire device. Valid
1005 /// partition numbers for a MBR partition are [1, 4]. Valid
1006 /// partition numbers for a GPT partition are [1, NumberOfPartitionEntries].
1007 ///
1008 UINT32 PartitionNumber;
1009 ///
1010 /// Starting LBA of the partition on the hard drive.
1011 ///
1012 UINT64 PartitionStart;
1013 ///
1014 /// Size of the partition in units of Logical Blocks.
1015 ///
1016 UINT64 PartitionSize;
1017 ///
1018 /// Signature unique to this partition:
1019 /// If SignatureType is 0, this field has to be initialized with 16 zeros.
1020 /// If SignatureType is 1, the MBR signature is stored in the first 4 bytes of this field.
1021 /// The other 12 bytes are initialized with zeros.
1022 /// If SignatureType is 2, this field contains a 16 byte signature.
1023 ///
1024 UINT8 Signature[16];
1025 ///
1026 /// Partition Format: (Unused values reserved).
1027 /// 0x01 - PC-AT compatible legacy MBR.
1028 /// 0x02 - GUID Partition Table.
1029 ///
1030 UINT8 MBRType;
1031 ///
1032 /// Type of Disk Signature: (Unused values reserved).
1033 /// 0x00 - No Disk Signature.
1034 /// 0x01 - 32-bit signature from address 0x1b8 of the type 0x01 MBR.
1035 /// 0x02 - GUID signature.
1036 ///
1037 UINT8 SignatureType;
1038 } HARDDRIVE_DEVICE_PATH;
1039
1040 #define MBR_TYPE_PCAT 0x01
1041 #define MBR_TYPE_EFI_PARTITION_TABLE_HEADER 0x02
1042
1043 #define NO_DISK_SIGNATURE 0x00
1044 #define SIGNATURE_TYPE_MBR 0x01
1045 #define SIGNATURE_TYPE_GUID 0x02
1046
1047 ///
1048 /// CD-ROM Media Device Path SubType.
1049 ///
1050 #define MEDIA_CDROM_DP 0x02
1051
1052 ///
1053 /// The CD-ROM Media Device Path is used to define a system partition that exists on a CD-ROM.
1054 ///
1055 typedef struct {
1056 EFI_DEVICE_PATH_PROTOCOL Header;
1057 ///
1058 /// Boot Entry number from the Boot Catalog. The Initial/Default entry is defined as zero.
1059 ///
1060 UINT32 BootEntry;
1061 ///
1062 /// Starting RBA of the partition on the medium. CD-ROMs use Relative logical Block Addressing.
1063 ///
1064 UINT64 PartitionStart;
1065 ///
1066 /// Size of the partition in units of Blocks, also called Sectors.
1067 ///
1068 UINT64 PartitionSize;
1069 } CDROM_DEVICE_PATH;
1070
1071 //
1072 // Use VENDOR_DEVICE_PATH struct
1073 //
1074 #define MEDIA_VENDOR_DP 0x03 ///< Media vendor device path subtype.
1075
1076 ///
1077 /// File Path Media Device Path SubType
1078 ///
1079 #define MEDIA_FILEPATH_DP 0x04
1080 typedef struct {
1081 EFI_DEVICE_PATH_PROTOCOL Header;
1082 ///
1083 /// A NULL-terminated Path string including directory and file names.
1084 ///
1085 CHAR16 PathName[1];
1086 } FILEPATH_DEVICE_PATH;
1087
1088 #define SIZE_OF_FILEPATH_DEVICE_PATH OFFSET_OF(FILEPATH_DEVICE_PATH,PathName)
1089
1090 ///
1091 /// Media Protocol Device Path SubType.
1092 ///
1093 #define MEDIA_PROTOCOL_DP 0x05
1094
1095 ///
1096 /// The Media Protocol Device Path is used to denote the protocol that is being
1097 /// used in a device path at the location of the path specified.
1098 /// Many protocols are inherent to the style of device path.
1099 ///
1100 typedef struct {
1101 EFI_DEVICE_PATH_PROTOCOL Header;
1102 ///
1103 /// The ID of the protocol.
1104 ///
1105 EFI_GUID Protocol;
1106 } MEDIA_PROTOCOL_DEVICE_PATH;
1107
1108 ///
1109 /// PIWG Firmware File SubType.
1110 ///
1111 #define MEDIA_PIWG_FW_FILE_DP 0x06
1112
1113 ///
1114 /// This device path is used by systems implementing the UEFI PI Specification 1.0 to describe a firmware file.
1115 ///
1116 typedef struct {
1117 EFI_DEVICE_PATH_PROTOCOL Header;
1118 ///
1119 /// Firmware file name
1120 ///
1121 EFI_GUID FvFileName;
1122 } MEDIA_FW_VOL_FILEPATH_DEVICE_PATH;
1123
1124 ///
1125 /// PIWG Firmware Volume Device Path SubType.
1126 ///
1127 #define MEDIA_PIWG_FW_VOL_DP 0x07
1128
1129 ///
1130 /// This device path is used by systems implementing the UEFI PI Specification 1.0 to describe a firmware volume.
1131 ///
1132 typedef struct {
1133 EFI_DEVICE_PATH_PROTOCOL Header;
1134 ///
1135 /// Firmware volume name.
1136 ///
1137 EFI_GUID FvName;
1138 } MEDIA_FW_VOL_DEVICE_PATH;
1139
1140 ///
1141 /// Media relative offset range device path.
1142 ///
1143 #define MEDIA_RELATIVE_OFFSET_RANGE_DP 0x08
1144
1145 ///
1146 /// Used to describe the offset range of media relative.
1147 ///
1148 typedef struct {
1149 EFI_DEVICE_PATH_PROTOCOL Header;
1150 UINT32 Reserved;
1151 UINT64 StartingOffset;
1152 UINT64 EndingOffset;
1153 } MEDIA_RELATIVE_OFFSET_RANGE_DEVICE_PATH;
1154
1155 ///
1156 /// This GUID defines a RAM Disk supporting a raw disk format in volatile memory.
1157 ///
1158 #define EFI_VIRTUAL_DISK_GUID EFI_ACPI_6_0_NFIT_GUID_RAM_DISK_SUPPORTING_VIRTUAL_DISK_REGION_VOLATILE
1159
1160 extern EFI_GUID gEfiVirtualDiskGuid;
1161
1162 ///
1163 /// This GUID defines a RAM Disk supporting an ISO image in volatile memory.
1164 ///
1165 #define EFI_VIRTUAL_CD_GUID EFI_ACPI_6_0_NFIT_GUID_RAM_DISK_SUPPORTING_VIRTUAL_CD_REGION_VOLATILE
1166
1167 extern EFI_GUID gEfiVirtualCdGuid;
1168
1169 ///
1170 /// This GUID defines a RAM Disk supporting a raw disk format in persistent memory.
1171 ///
1172 #define EFI_PERSISTENT_VIRTUAL_DISK_GUID EFI_ACPI_6_0_NFIT_GUID_RAM_DISK_SUPPORTING_VIRTUAL_DISK_REGION_PERSISTENT
1173
1174 extern EFI_GUID gEfiPersistentVirtualDiskGuid;
1175
1176 ///
1177 /// This GUID defines a RAM Disk supporting an ISO image in persistent memory.
1178 ///
1179 #define EFI_PERSISTENT_VIRTUAL_CD_GUID EFI_ACPI_6_0_NFIT_GUID_RAM_DISK_SUPPORTING_VIRTUAL_CD_REGION_PERSISTENT
1180
1181 extern EFI_GUID gEfiPersistentVirtualCdGuid;
1182
1183 ///
1184 /// Media ram disk device path.
1185 ///
1186 #define MEDIA_RAM_DISK_DP 0x09
1187
1188 ///
1189 /// Used to describe the ram disk device path.
1190 ///
1191 typedef struct {
1192 EFI_DEVICE_PATH_PROTOCOL Header;
1193 ///
1194 /// Starting Memory Address.
1195 ///
1196 UINT32 StartingAddr[2];
1197 ///
1198 /// Ending Memory Address.
1199 ///
1200 UINT32 EndingAddr[2];
1201 ///
1202 /// GUID that defines the type of the RAM Disk.
1203 ///
1204 EFI_GUID TypeGuid;
1205 ///
1206 /// RAM Diskinstance number, if supported. The default value is zero.
1207 ///
1208 UINT16 Instance;
1209 } MEDIA_RAM_DISK_DEVICE_PATH;
1210
1211 ///
1212 /// BIOS Boot Specification Device Path.
1213 ///
1214 #define BBS_DEVICE_PATH 0x05
1215
1216 ///
1217 /// BIOS Boot Specification Device Path SubType.
1218 ///
1219 #define BBS_BBS_DP 0x01
1220
1221 ///
1222 /// This Device Path is used to describe the booting of non-EFI-aware operating systems.
1223 ///
1224 typedef struct {
1225 EFI_DEVICE_PATH_PROTOCOL Header;
1226 ///
1227 /// Device Type as defined by the BIOS Boot Specification.
1228 ///
1229 UINT16 DeviceType;
1230 ///
1231 /// Status Flags as defined by the BIOS Boot Specification.
1232 ///
1233 UINT16 StatusFlag;
1234 ///
1235 /// Null-terminated ASCII string that describes the boot device to a user.
1236 ///
1237 CHAR8 String[1];
1238 } BBS_BBS_DEVICE_PATH;
1239
1240 //
1241 // DeviceType definitions - from BBS specification
1242 //
1243 #define BBS_TYPE_FLOPPY 0x01
1244 #define BBS_TYPE_HARDDRIVE 0x02
1245 #define BBS_TYPE_CDROM 0x03
1246 #define BBS_TYPE_PCMCIA 0x04
1247 #define BBS_TYPE_USB 0x05
1248 #define BBS_TYPE_EMBEDDED_NETWORK 0x06
1249 #define BBS_TYPE_BEV 0x80
1250 #define BBS_TYPE_UNKNOWN 0xFF
1251
1252
1253 ///
1254 /// Union of all possible Device Paths and pointers to Device Paths.
1255 ///
1256 typedef union {
1257 EFI_DEVICE_PATH_PROTOCOL DevPath;
1258 PCI_DEVICE_PATH Pci;
1259 PCCARD_DEVICE_PATH PcCard;
1260 MEMMAP_DEVICE_PATH MemMap;
1261 VENDOR_DEVICE_PATH Vendor;
1262
1263 CONTROLLER_DEVICE_PATH Controller;
1264 BMC_DEVICE_PATH Bmc;
1265 ACPI_HID_DEVICE_PATH Acpi;
1266 ACPI_EXTENDED_HID_DEVICE_PATH ExtendedAcpi;
1267 ACPI_ADR_DEVICE_PATH AcpiAdr;
1268
1269 ATAPI_DEVICE_PATH Atapi;
1270 SCSI_DEVICE_PATH Scsi;
1271 ISCSI_DEVICE_PATH Iscsi;
1272 FIBRECHANNEL_DEVICE_PATH FibreChannel;
1273 FIBRECHANNELEX_DEVICE_PATH FibreChannelEx;
1274
1275 F1394_DEVICE_PATH F1394;
1276 USB_DEVICE_PATH Usb;
1277 SATA_DEVICE_PATH Sata;
1278 USB_CLASS_DEVICE_PATH UsbClass;
1279 USB_WWID_DEVICE_PATH UsbWwid;
1280 DEVICE_LOGICAL_UNIT_DEVICE_PATH LogicUnit;
1281 I2O_DEVICE_PATH I2O;
1282 MAC_ADDR_DEVICE_PATH MacAddr;
1283 IPv4_DEVICE_PATH Ipv4;
1284 IPv6_DEVICE_PATH Ipv6;
1285 VLAN_DEVICE_PATH Vlan;
1286 INFINIBAND_DEVICE_PATH InfiniBand;
1287 UART_DEVICE_PATH Uart;
1288 UART_FLOW_CONTROL_DEVICE_PATH UartFlowControl;
1289 SAS_DEVICE_PATH Sas;
1290 SASEX_DEVICE_PATH SasEx;
1291 NVME_NAMESPACE_DEVICE_PATH NvmeNamespace;
1292 DNS_DEVICE_PATH Dns;
1293 URI_DEVICE_PATH Uri;
1294 BLUETOOTH_DEVICE_PATH Bluetooth;
1295 WIFI_DEVICE_PATH WiFi;
1296 UFS_DEVICE_PATH Ufs;
1297 SD_DEVICE_PATH Sd;
1298 EMMC_DEVICE_PATH Emmc;
1299 HARDDRIVE_DEVICE_PATH HardDrive;
1300 CDROM_DEVICE_PATH CD;
1301
1302 FILEPATH_DEVICE_PATH FilePath;
1303 MEDIA_PROTOCOL_DEVICE_PATH MediaProtocol;
1304
1305 MEDIA_FW_VOL_DEVICE_PATH FirmwareVolume;
1306 MEDIA_FW_VOL_FILEPATH_DEVICE_PATH FirmwareFile;
1307 MEDIA_RELATIVE_OFFSET_RANGE_DEVICE_PATH Offset;
1308 MEDIA_RAM_DISK_DEVICE_PATH RamDisk;
1309 BBS_BBS_DEVICE_PATH Bbs;
1310 } EFI_DEV_PATH;
1311
1312
1313
1314 typedef union {
1315 EFI_DEVICE_PATH_PROTOCOL *DevPath;
1316 PCI_DEVICE_PATH *Pci;
1317 PCCARD_DEVICE_PATH *PcCard;
1318 MEMMAP_DEVICE_PATH *MemMap;
1319 VENDOR_DEVICE_PATH *Vendor;
1320
1321 CONTROLLER_DEVICE_PATH *Controller;
1322 BMC_DEVICE_PATH *Bmc;
1323 ACPI_HID_DEVICE_PATH *Acpi;
1324 ACPI_EXTENDED_HID_DEVICE_PATH *ExtendedAcpi;
1325 ACPI_ADR_DEVICE_PATH *AcpiAdr;
1326
1327 ATAPI_DEVICE_PATH *Atapi;
1328 SCSI_DEVICE_PATH *Scsi;
1329 ISCSI_DEVICE_PATH *Iscsi;
1330 FIBRECHANNEL_DEVICE_PATH *FibreChannel;
1331 FIBRECHANNELEX_DEVICE_PATH *FibreChannelEx;
1332
1333 F1394_DEVICE_PATH *F1394;
1334 USB_DEVICE_PATH *Usb;
1335 SATA_DEVICE_PATH *Sata;
1336 USB_CLASS_DEVICE_PATH *UsbClass;
1337 USB_WWID_DEVICE_PATH *UsbWwid;
1338 DEVICE_LOGICAL_UNIT_DEVICE_PATH *LogicUnit;
1339 I2O_DEVICE_PATH *I2O;
1340 MAC_ADDR_DEVICE_PATH *MacAddr;
1341 IPv4_DEVICE_PATH *Ipv4;
1342 IPv6_DEVICE_PATH *Ipv6;
1343 VLAN_DEVICE_PATH *Vlan;
1344 INFINIBAND_DEVICE_PATH *InfiniBand;
1345 UART_DEVICE_PATH *Uart;
1346 UART_FLOW_CONTROL_DEVICE_PATH *UartFlowControl;
1347 SAS_DEVICE_PATH *Sas;
1348 SASEX_DEVICE_PATH *SasEx;
1349 NVME_NAMESPACE_DEVICE_PATH *NvmeNamespace;
1350 DNS_DEVICE_PATH *Dns;
1351 URI_DEVICE_PATH *Uri;
1352 BLUETOOTH_DEVICE_PATH *Bluetooth;
1353 WIFI_DEVICE_PATH *WiFi;
1354 UFS_DEVICE_PATH *Ufs;
1355 SD_DEVICE_PATH *Sd;
1356 EMMC_DEVICE_PATH *Emmc;
1357 HARDDRIVE_DEVICE_PATH *HardDrive;
1358 CDROM_DEVICE_PATH *CD;
1359
1360 FILEPATH_DEVICE_PATH *FilePath;
1361 MEDIA_PROTOCOL_DEVICE_PATH *MediaProtocol;
1362
1363 MEDIA_FW_VOL_DEVICE_PATH *FirmwareVolume;
1364 MEDIA_FW_VOL_FILEPATH_DEVICE_PATH *FirmwareFile;
1365 MEDIA_RELATIVE_OFFSET_RANGE_DEVICE_PATH *Offset;
1366 MEDIA_RAM_DISK_DEVICE_PATH *RamDisk;
1367 BBS_BBS_DEVICE_PATH *Bbs;
1368 UINT8 *Raw;
1369 } EFI_DEV_PATH_PTR;
1370
1371 #pragma pack()
1372
1373 #define END_DEVICE_PATH_TYPE 0x7f
1374 #define END_ENTIRE_DEVICE_PATH_SUBTYPE 0xFF
1375 #define END_INSTANCE_DEVICE_PATH_SUBTYPE 0x01
1376
1377 extern EFI_GUID gEfiDevicePathProtocolGuid;
1378
1379 #endif