]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Include/Protocol/DevicePath.h
MdePkg/PiFirmwareFile: fix undefined behavior in FFS_FILE_SIZE
[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 #define ACPI_ADR_DISPLAY_TYPE_OTHER 0
286 #define ACPI_ADR_DISPLAY_TYPE_VGA 1
287 #define ACPI_ADR_DISPLAY_TYPE_TV 2
288 #define ACPI_ADR_DISPLAY_TYPE_EXTERNAL_DIGITAL 3
289 #define ACPI_ADR_DISPLAY_TYPE_INTERNAL_DIGITAL 4
290
291 #define ACPI_DISPLAY_ADR(_DeviceIdScheme, _HeadId, _NonVgaOutput, _BiosCanDetect, _VendorInfo, _Type, _Port, _Index) \
292 ((UINT32)( ((UINT32)((_DeviceIdScheme) & 0x1) << 31) | \
293 (((_HeadId) & 0x7) << 18) | \
294 (((_NonVgaOutput) & 0x1) << 17) | \
295 (((_BiosCanDetect) & 0x1) << 16) | \
296 (((_VendorInfo) & 0xf) << 12) | \
297 (((_Type) & 0xf) << 8) | \
298 (((_Port) & 0xf) << 4) | \
299 ((_Index) & 0xf) ))
300
301 ///
302 /// Messaging Device Paths.
303 /// This Device Path is used to describe the connection of devices outside the resource domain of the
304 /// system. This Device Path can describe physical messaging information like SCSI ID, or abstract
305 /// information like networking protocol IP addresses.
306 ///
307 #define MESSAGING_DEVICE_PATH 0x03
308
309 ///
310 /// ATAPI Device Path SubType
311 ///
312 #define MSG_ATAPI_DP 0x01
313 typedef struct {
314 EFI_DEVICE_PATH_PROTOCOL Header;
315 ///
316 /// Set to zero for primary, or one for secondary.
317 ///
318 UINT8 PrimarySecondary;
319 ///
320 /// Set to zero for master, or one for slave mode.
321 ///
322 UINT8 SlaveMaster;
323 ///
324 /// Logical Unit Number.
325 ///
326 UINT16 Lun;
327 } ATAPI_DEVICE_PATH;
328
329 ///
330 /// SCSI Device Path SubType.
331 ///
332 #define MSG_SCSI_DP 0x02
333 typedef struct {
334 EFI_DEVICE_PATH_PROTOCOL Header;
335 ///
336 /// Target ID on the SCSI bus (PUN).
337 ///
338 UINT16 Pun;
339 ///
340 /// Logical Unit Number (LUN).
341 ///
342 UINT16 Lun;
343 } SCSI_DEVICE_PATH;
344
345 ///
346 /// Fibre Channel SubType.
347 ///
348 #define MSG_FIBRECHANNEL_DP 0x03
349 typedef struct {
350 EFI_DEVICE_PATH_PROTOCOL Header;
351 ///
352 /// Reserved for the future.
353 ///
354 UINT32 Reserved;
355 ///
356 /// Fibre Channel World Wide Number.
357 ///
358 UINT64 WWN;
359 ///
360 /// Fibre Channel Logical Unit Number.
361 ///
362 UINT64 Lun;
363 } FIBRECHANNEL_DEVICE_PATH;
364
365 ///
366 /// Fibre Channel Ex SubType.
367 ///
368 #define MSG_FIBRECHANNELEX_DP 0x15
369 typedef struct {
370 EFI_DEVICE_PATH_PROTOCOL Header;
371 ///
372 /// Reserved for the future.
373 ///
374 UINT32 Reserved;
375 ///
376 /// 8 byte array containing Fibre Channel End Device Port Name.
377 ///
378 UINT8 WWN[8];
379 ///
380 /// 8 byte array containing Fibre Channel Logical Unit Number.
381 ///
382 UINT8 Lun[8];
383 } FIBRECHANNELEX_DEVICE_PATH;
384
385 ///
386 /// 1394 Device Path SubType
387 ///
388 #define MSG_1394_DP 0x04
389 typedef struct {
390 EFI_DEVICE_PATH_PROTOCOL Header;
391 ///
392 /// Reserved for the future.
393 ///
394 UINT32 Reserved;
395 ///
396 /// 1394 Global Unique ID (GUID).
397 ///
398 UINT64 Guid;
399 } F1394_DEVICE_PATH;
400
401 ///
402 /// USB Device Path SubType.
403 ///
404 #define MSG_USB_DP 0x05
405 typedef struct {
406 EFI_DEVICE_PATH_PROTOCOL Header;
407 ///
408 /// USB Parent Port Number.
409 ///
410 UINT8 ParentPortNumber;
411 ///
412 /// USB Interface Number.
413 ///
414 UINT8 InterfaceNumber;
415 } USB_DEVICE_PATH;
416
417 ///
418 /// USB Class Device Path SubType.
419 ///
420 #define MSG_USB_CLASS_DP 0x0f
421 typedef struct {
422 EFI_DEVICE_PATH_PROTOCOL Header;
423 ///
424 /// Vendor ID assigned by USB-IF. A value of 0xFFFF will
425 /// match any Vendor ID.
426 ///
427 UINT16 VendorId;
428 ///
429 /// Product ID assigned by USB-IF. A value of 0xFFFF will
430 /// match any Product ID.
431 ///
432 UINT16 ProductId;
433 ///
434 /// The class code assigned by the USB-IF. A value of 0xFF
435 /// will match any class code.
436 ///
437 UINT8 DeviceClass;
438 ///
439 /// The subclass code assigned by the USB-IF. A value of
440 /// 0xFF will match any subclass code.
441 ///
442 UINT8 DeviceSubClass;
443 ///
444 /// The protocol code assigned by the USB-IF. A value of
445 /// 0xFF will match any protocol code.
446 ///
447 UINT8 DeviceProtocol;
448 } USB_CLASS_DEVICE_PATH;
449
450 ///
451 /// USB WWID Device Path SubType.
452 ///
453 #define MSG_USB_WWID_DP 0x10
454
455 ///
456 /// This device path describes a USB device using its serial number.
457 ///
458 typedef struct {
459 EFI_DEVICE_PATH_PROTOCOL Header;
460 ///
461 /// USB interface number.
462 ///
463 UINT16 InterfaceNumber;
464 ///
465 /// USB vendor id of the device.
466 ///
467 UINT16 VendorId;
468 ///
469 /// USB product id of the device.
470 ///
471 UINT16 ProductId;
472 ///
473 /// Last 64-or-fewer UTF-16 characters of the USB
474 /// serial number. The length of the string is
475 /// determined by the Length field less the offset of the
476 /// Serial Number field (10)
477 ///
478 /// CHAR16 SerialNumber[...];
479 } USB_WWID_DEVICE_PATH;
480
481 ///
482 /// Device Logical Unit SubType.
483 ///
484 #define MSG_DEVICE_LOGICAL_UNIT_DP 0x11
485 typedef struct {
486 EFI_DEVICE_PATH_PROTOCOL Header;
487 ///
488 /// Logical Unit Number for the interface.
489 ///
490 UINT8 Lun;
491 } DEVICE_LOGICAL_UNIT_DEVICE_PATH;
492
493 ///
494 /// SATA Device Path SubType.
495 ///
496 #define MSG_SATA_DP 0x12
497 typedef struct {
498 EFI_DEVICE_PATH_PROTOCOL Header;
499 ///
500 /// The HBA port number that facilitates the connection to the
501 /// device or a port multiplier. The value 0xFFFF is reserved.
502 ///
503 UINT16 HBAPortNumber;
504 ///
505 /// The Port multiplier port number that facilitates the connection
506 /// to the device. Must be set to 0xFFFF if the device is directly
507 /// connected to the HBA.
508 ///
509 UINT16 PortMultiplierPortNumber;
510 ///
511 /// Logical Unit Number.
512 ///
513 UINT16 Lun;
514 } SATA_DEVICE_PATH;
515
516 ///
517 /// Flag for if the device is directly connected to the HBA.
518 ///
519 #define SATA_HBA_DIRECT_CONNECT_FLAG 0x8000
520
521 ///
522 /// I2O Device Path SubType.
523 ///
524 #define MSG_I2O_DP 0x06
525 typedef struct {
526 EFI_DEVICE_PATH_PROTOCOL Header;
527 ///
528 /// Target ID (TID) for a device.
529 ///
530 UINT32 Tid;
531 } I2O_DEVICE_PATH;
532
533 ///
534 /// MAC Address Device Path SubType.
535 ///
536 #define MSG_MAC_ADDR_DP 0x0b
537 typedef struct {
538 EFI_DEVICE_PATH_PROTOCOL Header;
539 ///
540 /// The MAC address for a network interface padded with 0s.
541 ///
542 EFI_MAC_ADDRESS MacAddress;
543 ///
544 /// Network interface type(i.e. 802.3, FDDI).
545 ///
546 UINT8 IfType;
547 } MAC_ADDR_DEVICE_PATH;
548
549 ///
550 /// IPv4 Device Path SubType
551 ///
552 #define MSG_IPv4_DP 0x0c
553 typedef struct {
554 EFI_DEVICE_PATH_PROTOCOL Header;
555 ///
556 /// The local IPv4 address.
557 ///
558 EFI_IPv4_ADDRESS LocalIpAddress;
559 ///
560 /// The remote IPv4 address.
561 ///
562 EFI_IPv4_ADDRESS RemoteIpAddress;
563 ///
564 /// The local port number.
565 ///
566 UINT16 LocalPort;
567 ///
568 /// The remote port number.
569 ///
570 UINT16 RemotePort;
571 ///
572 /// The network protocol(i.e. UDP, TCP).
573 ///
574 UINT16 Protocol;
575 ///
576 /// 0x00 - The Source IP Address was assigned though DHCP.
577 /// 0x01 - The Source IP Address is statically bound.
578 ///
579 BOOLEAN StaticIpAddress;
580 ///
581 /// The gateway IP address
582 ///
583 EFI_IPv4_ADDRESS GatewayIpAddress;
584 ///
585 /// The subnet mask
586 ///
587 EFI_IPv4_ADDRESS SubnetMask;
588 } IPv4_DEVICE_PATH;
589
590 ///
591 /// IPv6 Device Path SubType.
592 ///
593 #define MSG_IPv6_DP 0x0d
594 typedef struct {
595 EFI_DEVICE_PATH_PROTOCOL Header;
596 ///
597 /// The local IPv6 address.
598 ///
599 EFI_IPv6_ADDRESS LocalIpAddress;
600 ///
601 /// The remote IPv6 address.
602 ///
603 EFI_IPv6_ADDRESS RemoteIpAddress;
604 ///
605 /// The local port number.
606 ///
607 UINT16 LocalPort;
608 ///
609 /// The remote port number.
610 ///
611 UINT16 RemotePort;
612 ///
613 /// The network protocol(i.e. UDP, TCP).
614 ///
615 UINT16 Protocol;
616 ///
617 /// 0x00 - The Local IP Address was manually configured.
618 /// 0x01 - The Local IP Address is assigned through IPv6
619 /// stateless auto-configuration.
620 /// 0x02 - The Local IP Address is assigned through IPv6
621 /// stateful configuration.
622 ///
623 UINT8 IpAddressOrigin;
624 ///
625 /// The prefix length
626 ///
627 UINT8 PrefixLength;
628 ///
629 /// The gateway IP address
630 ///
631 EFI_IPv6_ADDRESS GatewayIpAddress;
632 } IPv6_DEVICE_PATH;
633
634 ///
635 /// InfiniBand Device Path SubType.
636 ///
637 #define MSG_INFINIBAND_DP 0x09
638 typedef struct {
639 EFI_DEVICE_PATH_PROTOCOL Header;
640 ///
641 /// Flags to help identify/manage InfiniBand device path elements:
642 /// Bit 0 - IOC/Service (0b = IOC, 1b = Service).
643 /// Bit 1 - Extend Boot Environment.
644 /// Bit 2 - Console Protocol.
645 /// Bit 3 - Storage Protocol.
646 /// Bit 4 - Network Protocol.
647 /// All other bits are reserved.
648 ///
649 UINT32 ResourceFlags;
650 ///
651 /// 128-bit Global Identifier for remote fabric port.
652 ///
653 UINT8 PortGid[16];
654 ///
655 /// 64-bit unique identifier to remote IOC or server process.
656 /// Interpretation of field specified by Resource Flags (bit 0).
657 ///
658 UINT64 ServiceId;
659 ///
660 /// 64-bit persistent ID of remote IOC port.
661 ///
662 UINT64 TargetPortId;
663 ///
664 /// 64-bit persistent ID of remote device.
665 ///
666 UINT64 DeviceId;
667 } INFINIBAND_DEVICE_PATH;
668
669 #define INFINIBAND_RESOURCE_FLAG_IOC_SERVICE 0x01
670 #define INFINIBAND_RESOURCE_FLAG_EXTENDED_BOOT_ENVIRONMENT 0x02
671 #define INFINIBAND_RESOURCE_FLAG_CONSOLE_PROTOCOL 0x04
672 #define INFINIBAND_RESOURCE_FLAG_STORAGE_PROTOCOL 0x08
673 #define INFINIBAND_RESOURCE_FLAG_NETWORK_PROTOCOL 0x10
674
675 ///
676 /// UART Device Path SubType.
677 ///
678 #define MSG_UART_DP 0x0e
679 typedef struct {
680 EFI_DEVICE_PATH_PROTOCOL Header;
681 ///
682 /// Reserved.
683 ///
684 UINT32 Reserved;
685 ///
686 /// The baud rate setting for the UART style device. A value of 0
687 /// means that the device's default baud rate will be used.
688 ///
689 UINT64 BaudRate;
690 ///
691 /// The number of data bits for the UART style device. A value
692 /// of 0 means that the device's default number of data bits will be used.
693 ///
694 UINT8 DataBits;
695 ///
696 /// The parity setting for the UART style device.
697 /// Parity 0x00 - Default Parity.
698 /// Parity 0x01 - No Parity.
699 /// Parity 0x02 - Even Parity.
700 /// Parity 0x03 - Odd Parity.
701 /// Parity 0x04 - Mark Parity.
702 /// Parity 0x05 - Space Parity.
703 ///
704 UINT8 Parity;
705 ///
706 /// The number of stop bits for the UART style device.
707 /// Stop Bits 0x00 - Default Stop Bits.
708 /// Stop Bits 0x01 - 1 Stop Bit.
709 /// Stop Bits 0x02 - 1.5 Stop Bits.
710 /// Stop Bits 0x03 - 2 Stop Bits.
711 ///
712 UINT8 StopBits;
713 } UART_DEVICE_PATH;
714
715 //
716 // Use VENDOR_DEVICE_PATH struct
717 //
718 #define MSG_VENDOR_DP 0x0a
719 typedef VENDOR_DEVICE_PATH VENDOR_DEFINED_DEVICE_PATH;
720
721 #define DEVICE_PATH_MESSAGING_PC_ANSI EFI_PC_ANSI_GUID
722 #define DEVICE_PATH_MESSAGING_VT_100 EFI_VT_100_GUID
723 #define DEVICE_PATH_MESSAGING_VT_100_PLUS EFI_VT_100_PLUS_GUID
724 #define DEVICE_PATH_MESSAGING_VT_UTF8 EFI_VT_UTF8_GUID
725
726 ///
727 /// A new device path node is defined to declare flow control characteristics.
728 /// UART Flow Control Messaging Device Path
729 ///
730 typedef struct {
731 EFI_DEVICE_PATH_PROTOCOL Header;
732 ///
733 /// DEVICE_PATH_MESSAGING_UART_FLOW_CONTROL GUID.
734 ///
735 EFI_GUID Guid;
736 ///
737 /// Bitmap of supported flow control types.
738 /// Bit 0 set indicates hardware flow control.
739 /// Bit 1 set indicates Xon/Xoff flow control.
740 /// All other bits are reserved and are clear.
741 ///
742 UINT32 FlowControlMap;
743 } UART_FLOW_CONTROL_DEVICE_PATH;
744
745 #define UART_FLOW_CONTROL_HARDWARE 0x00000001
746 #define UART_FLOW_CONTROL_XON_XOFF 0x00000010
747
748 #define DEVICE_PATH_MESSAGING_SAS EFI_SAS_DEVICE_PATH_GUID
749 ///
750 /// Serial Attached SCSI (SAS) Device Path.
751 ///
752 typedef struct {
753 EFI_DEVICE_PATH_PROTOCOL Header;
754 ///
755 /// DEVICE_PATH_MESSAGING_SAS GUID.
756 ///
757 EFI_GUID Guid;
758 ///
759 /// Reserved for future use.
760 ///
761 UINT32 Reserved;
762 ///
763 /// SAS Address for Serial Attached SCSI Target.
764 ///
765 UINT64 SasAddress;
766 ///
767 /// SAS Logical Unit Number.
768 ///
769 UINT64 Lun;
770 ///
771 /// More Information about the device and its interconnect.
772 ///
773 UINT16 DeviceTopology;
774 ///
775 /// Relative Target Port (RTP).
776 ///
777 UINT16 RelativeTargetPort;
778 } SAS_DEVICE_PATH;
779
780 ///
781 /// Serial Attached SCSI (SAS) Ex Device Path SubType
782 ///
783 #define MSG_SASEX_DP 0x16
784 typedef struct {
785 EFI_DEVICE_PATH_PROTOCOL Header;
786 ///
787 /// 8-byte array of the SAS Address for Serial Attached SCSI Target Port.
788 ///
789 UINT8 SasAddress[8];
790 ///
791 /// 8-byte array of the SAS Logical Unit Number.
792 ///
793 UINT8 Lun[8];
794 ///
795 /// More Information about the device and its interconnect.
796 ///
797 UINT16 DeviceTopology;
798 ///
799 /// Relative Target Port (RTP).
800 ///
801 UINT16 RelativeTargetPort;
802 } SASEX_DEVICE_PATH;
803
804 ///
805 /// NvmExpress Namespace Device Path SubType.
806 ///
807 #define MSG_NVME_NAMESPACE_DP 0x17
808 typedef struct {
809 EFI_DEVICE_PATH_PROTOCOL Header;
810 UINT32 NamespaceId;
811 UINT64 NamespaceUuid;
812 } NVME_NAMESPACE_DEVICE_PATH;
813
814 ///
815 /// DNS Device Path SubType
816 ///
817 #define MSG_DNS_DP 0x1F
818 typedef struct {
819 EFI_DEVICE_PATH_PROTOCOL Header;
820 ///
821 /// Indicates the DNS server address is IPv4 or IPv6 address.
822 ///
823 UINT8 IsIPv6;
824 ///
825 /// Instance of the DNS server address.
826 ///
827 EFI_IP_ADDRESS DnsServerIp[];
828 } DNS_DEVICE_PATH;
829
830 ///
831 /// Uniform Resource Identifiers (URI) Device Path SubType
832 ///
833 #define MSG_URI_DP 0x18
834 typedef struct {
835 EFI_DEVICE_PATH_PROTOCOL Header;
836 ///
837 /// Instance of the URI pursuant to RFC 3986.
838 ///
839 CHAR8 Uri[];
840 } URI_DEVICE_PATH;
841
842 ///
843 /// Universal Flash Storage (UFS) Device Path SubType.
844 ///
845 #define MSG_UFS_DP 0x19
846 typedef struct {
847 EFI_DEVICE_PATH_PROTOCOL Header;
848 ///
849 /// Target ID on the UFS bus (PUN).
850 ///
851 UINT8 Pun;
852 ///
853 /// Logical Unit Number (LUN).
854 ///
855 UINT8 Lun;
856 } UFS_DEVICE_PATH;
857
858 ///
859 /// SD (Secure Digital) Device Path SubType.
860 ///
861 #define MSG_SD_DP 0x1A
862 typedef struct {
863 EFI_DEVICE_PATH_PROTOCOL Header;
864 UINT8 SlotNumber;
865 } SD_DEVICE_PATH;
866
867 ///
868 /// EMMC (Embedded MMC) Device Path SubType.
869 ///
870 #define MSG_EMMC_DP 0x1D
871 typedef struct {
872 EFI_DEVICE_PATH_PROTOCOL Header;
873 UINT8 SlotNumber;
874 } EMMC_DEVICE_PATH;
875
876 ///
877 /// iSCSI Device Path SubType
878 ///
879 #define MSG_ISCSI_DP 0x13
880 typedef struct {
881 EFI_DEVICE_PATH_PROTOCOL Header;
882 ///
883 /// Network Protocol (0 = TCP, 1+ = reserved).
884 ///
885 UINT16 NetworkProtocol;
886 ///
887 /// iSCSI Login Options.
888 ///
889 UINT16 LoginOption;
890 ///
891 /// iSCSI Logical Unit Number.
892 ///
893 UINT64 Lun;
894 ///
895 /// iSCSI Target Portal group tag the initiator intends
896 /// to establish a session with.
897 ///
898 UINT16 TargetPortalGroupTag;
899 ///
900 /// iSCSI NodeTarget Name. The length of the name
901 /// is determined by subtracting the offset of this field from Length.
902 ///
903 /// CHAR8 iSCSI Target Name.
904 } ISCSI_DEVICE_PATH;
905
906 #define ISCSI_LOGIN_OPTION_NO_HEADER_DIGEST 0x0000
907 #define ISCSI_LOGIN_OPTION_HEADER_DIGEST_USING_CRC32C 0x0002
908 #define ISCSI_LOGIN_OPTION_NO_DATA_DIGEST 0x0000
909 #define ISCSI_LOGIN_OPTION_DATA_DIGEST_USING_CRC32C 0x0008
910 #define ISCSI_LOGIN_OPTION_AUTHMETHOD_CHAP 0x0000
911 #define ISCSI_LOGIN_OPTION_AUTHMETHOD_NON 0x1000
912 #define ISCSI_LOGIN_OPTION_CHAP_BI 0x0000
913 #define ISCSI_LOGIN_OPTION_CHAP_UNI 0x2000
914
915 ///
916 /// VLAN Device Path SubType.
917 ///
918 #define MSG_VLAN_DP 0x14
919 typedef struct {
920 EFI_DEVICE_PATH_PROTOCOL Header;
921 ///
922 /// VLAN identifier (0-4094).
923 ///
924 UINT16 VlanId;
925 } VLAN_DEVICE_PATH;
926
927 ///
928 /// Bluetooth Device Path SubType.
929 ///
930 #define MSG_BLUETOOTH_DP 0x1b
931 typedef struct {
932 EFI_DEVICE_PATH_PROTOCOL Header;
933 ///
934 /// 48bit Bluetooth device address.
935 ///
936 BLUETOOTH_ADDRESS BD_ADDR;
937 } BLUETOOTH_DEVICE_PATH;
938
939 ///
940 /// Wi-Fi Device Path SubType.
941 ///
942 #define MSG_WIFI_DP 0x1C
943 typedef struct {
944 EFI_DEVICE_PATH_PROTOCOL Header;
945 ///
946 /// Service set identifier. A 32-byte octets string.
947 ///
948 UINT8 SSId[32];
949 } WIFI_DEVICE_PATH;
950
951 ///
952 /// Bluetooth LE Device Path SubType.
953 ///
954 #define MSG_BLUETOOTH_LE_DP 0x1E
955 typedef struct {
956 EFI_DEVICE_PATH_PROTOCOL Header;
957 BLUETOOTH_LE_ADDRESS Address;
958 } BLUETOOTH_LE_DEVICE_PATH;
959
960 //
961 // Media Device Path
962 //
963 #define MEDIA_DEVICE_PATH 0x04
964
965 ///
966 /// Hard Drive Media Device Path SubType.
967 ///
968 #define MEDIA_HARDDRIVE_DP 0x01
969
970 ///
971 /// The Hard Drive Media Device Path is used to represent a partition on a hard drive.
972 ///
973 typedef struct {
974 EFI_DEVICE_PATH_PROTOCOL Header;
975 ///
976 /// Describes the entry in a partition table, starting with entry 1.
977 /// Partition number zero represents the entire device. Valid
978 /// partition numbers for a MBR partition are [1, 4]. Valid
979 /// partition numbers for a GPT partition are [1, NumberOfPartitionEntries].
980 ///
981 UINT32 PartitionNumber;
982 ///
983 /// Starting LBA of the partition on the hard drive.
984 ///
985 UINT64 PartitionStart;
986 ///
987 /// Size of the partition in units of Logical Blocks.
988 ///
989 UINT64 PartitionSize;
990 ///
991 /// Signature unique to this partition:
992 /// If SignatureType is 0, this field has to be initialized with 16 zeros.
993 /// If SignatureType is 1, the MBR signature is stored in the first 4 bytes of this field.
994 /// The other 12 bytes are initialized with zeros.
995 /// If SignatureType is 2, this field contains a 16 byte signature.
996 ///
997 UINT8 Signature[16];
998 ///
999 /// Partition Format: (Unused values reserved).
1000 /// 0x01 - PC-AT compatible legacy MBR.
1001 /// 0x02 - GUID Partition Table.
1002 ///
1003 UINT8 MBRType;
1004 ///
1005 /// Type of Disk Signature: (Unused values reserved).
1006 /// 0x00 - No Disk Signature.
1007 /// 0x01 - 32-bit signature from address 0x1b8 of the type 0x01 MBR.
1008 /// 0x02 - GUID signature.
1009 ///
1010 UINT8 SignatureType;
1011 } HARDDRIVE_DEVICE_PATH;
1012
1013 #define MBR_TYPE_PCAT 0x01
1014 #define MBR_TYPE_EFI_PARTITION_TABLE_HEADER 0x02
1015
1016 #define NO_DISK_SIGNATURE 0x00
1017 #define SIGNATURE_TYPE_MBR 0x01
1018 #define SIGNATURE_TYPE_GUID 0x02
1019
1020 ///
1021 /// CD-ROM Media Device Path SubType.
1022 ///
1023 #define MEDIA_CDROM_DP 0x02
1024
1025 ///
1026 /// The CD-ROM Media Device Path is used to define a system partition that exists on a CD-ROM.
1027 ///
1028 typedef struct {
1029 EFI_DEVICE_PATH_PROTOCOL Header;
1030 ///
1031 /// Boot Entry number from the Boot Catalog. The Initial/Default entry is defined as zero.
1032 ///
1033 UINT32 BootEntry;
1034 ///
1035 /// Starting RBA of the partition on the medium. CD-ROMs use Relative logical Block Addressing.
1036 ///
1037 UINT64 PartitionStart;
1038 ///
1039 /// Size of the partition in units of Blocks, also called Sectors.
1040 ///
1041 UINT64 PartitionSize;
1042 } CDROM_DEVICE_PATH;
1043
1044 //
1045 // Use VENDOR_DEVICE_PATH struct
1046 //
1047 #define MEDIA_VENDOR_DP 0x03 ///< Media vendor device path subtype.
1048
1049 ///
1050 /// File Path Media Device Path SubType
1051 ///
1052 #define MEDIA_FILEPATH_DP 0x04
1053 typedef struct {
1054 EFI_DEVICE_PATH_PROTOCOL Header;
1055 ///
1056 /// A NULL-terminated Path string including directory and file names.
1057 ///
1058 CHAR16 PathName[1];
1059 } FILEPATH_DEVICE_PATH;
1060
1061 #define SIZE_OF_FILEPATH_DEVICE_PATH OFFSET_OF(FILEPATH_DEVICE_PATH,PathName)
1062
1063 ///
1064 /// Media Protocol Device Path SubType.
1065 ///
1066 #define MEDIA_PROTOCOL_DP 0x05
1067
1068 ///
1069 /// The Media Protocol Device Path is used to denote the protocol that is being
1070 /// used in a device path at the location of the path specified.
1071 /// Many protocols are inherent to the style of device path.
1072 ///
1073 typedef struct {
1074 EFI_DEVICE_PATH_PROTOCOL Header;
1075 ///
1076 /// The ID of the protocol.
1077 ///
1078 EFI_GUID Protocol;
1079 } MEDIA_PROTOCOL_DEVICE_PATH;
1080
1081 ///
1082 /// PIWG Firmware File SubType.
1083 ///
1084 #define MEDIA_PIWG_FW_FILE_DP 0x06
1085
1086 ///
1087 /// This device path is used by systems implementing the UEFI PI Specification 1.0 to describe a firmware file.
1088 ///
1089 typedef struct {
1090 EFI_DEVICE_PATH_PROTOCOL Header;
1091 ///
1092 /// Firmware file name
1093 ///
1094 EFI_GUID FvFileName;
1095 } MEDIA_FW_VOL_FILEPATH_DEVICE_PATH;
1096
1097 ///
1098 /// PIWG Firmware Volume Device Path SubType.
1099 ///
1100 #define MEDIA_PIWG_FW_VOL_DP 0x07
1101
1102 ///
1103 /// This device path is used by systems implementing the UEFI PI Specification 1.0 to describe a firmware volume.
1104 ///
1105 typedef struct {
1106 EFI_DEVICE_PATH_PROTOCOL Header;
1107 ///
1108 /// Firmware volume name.
1109 ///
1110 EFI_GUID FvName;
1111 } MEDIA_FW_VOL_DEVICE_PATH;
1112
1113 ///
1114 /// Media relative offset range device path.
1115 ///
1116 #define MEDIA_RELATIVE_OFFSET_RANGE_DP 0x08
1117
1118 ///
1119 /// Used to describe the offset range of media relative.
1120 ///
1121 typedef struct {
1122 EFI_DEVICE_PATH_PROTOCOL Header;
1123 UINT32 Reserved;
1124 UINT64 StartingOffset;
1125 UINT64 EndingOffset;
1126 } MEDIA_RELATIVE_OFFSET_RANGE_DEVICE_PATH;
1127
1128 ///
1129 /// This GUID defines a RAM Disk supporting a raw disk format in volatile memory.
1130 ///
1131 #define EFI_VIRTUAL_DISK_GUID EFI_ACPI_6_0_NFIT_GUID_RAM_DISK_SUPPORTING_VIRTUAL_DISK_REGION_VOLATILE
1132
1133 extern EFI_GUID gEfiVirtualDiskGuid;
1134
1135 ///
1136 /// This GUID defines a RAM Disk supporting an ISO image in volatile memory.
1137 ///
1138 #define EFI_VIRTUAL_CD_GUID EFI_ACPI_6_0_NFIT_GUID_RAM_DISK_SUPPORTING_VIRTUAL_CD_REGION_VOLATILE
1139
1140 extern EFI_GUID gEfiVirtualCdGuid;
1141
1142 ///
1143 /// This GUID defines a RAM Disk supporting a raw disk format in persistent memory.
1144 ///
1145 #define EFI_PERSISTENT_VIRTUAL_DISK_GUID EFI_ACPI_6_0_NFIT_GUID_RAM_DISK_SUPPORTING_VIRTUAL_DISK_REGION_PERSISTENT
1146
1147 extern EFI_GUID gEfiPersistentVirtualDiskGuid;
1148
1149 ///
1150 /// This GUID defines a RAM Disk supporting an ISO image in persistent memory.
1151 ///
1152 #define EFI_PERSISTENT_VIRTUAL_CD_GUID EFI_ACPI_6_0_NFIT_GUID_RAM_DISK_SUPPORTING_VIRTUAL_CD_REGION_PERSISTENT
1153
1154 extern EFI_GUID gEfiPersistentVirtualCdGuid;
1155
1156 ///
1157 /// Media ram disk device path.
1158 ///
1159 #define MEDIA_RAM_DISK_DP 0x09
1160
1161 ///
1162 /// Used to describe the ram disk device path.
1163 ///
1164 typedef struct {
1165 EFI_DEVICE_PATH_PROTOCOL Header;
1166 ///
1167 /// Starting Memory Address.
1168 ///
1169 UINT32 StartingAddr[2];
1170 ///
1171 /// Ending Memory Address.
1172 ///
1173 UINT32 EndingAddr[2];
1174 ///
1175 /// GUID that defines the type of the RAM Disk.
1176 ///
1177 EFI_GUID TypeGuid;
1178 ///
1179 /// RAM Diskinstance number, if supported. The default value is zero.
1180 ///
1181 UINT16 Instance;
1182 } MEDIA_RAM_DISK_DEVICE_PATH;
1183
1184 ///
1185 /// BIOS Boot Specification Device Path.
1186 ///
1187 #define BBS_DEVICE_PATH 0x05
1188
1189 ///
1190 /// BIOS Boot Specification Device Path SubType.
1191 ///
1192 #define BBS_BBS_DP 0x01
1193
1194 ///
1195 /// This Device Path is used to describe the booting of non-EFI-aware operating systems.
1196 ///
1197 typedef struct {
1198 EFI_DEVICE_PATH_PROTOCOL Header;
1199 ///
1200 /// Device Type as defined by the BIOS Boot Specification.
1201 ///
1202 UINT16 DeviceType;
1203 ///
1204 /// Status Flags as defined by the BIOS Boot Specification.
1205 ///
1206 UINT16 StatusFlag;
1207 ///
1208 /// Null-terminated ASCII string that describes the boot device to a user.
1209 ///
1210 CHAR8 String[1];
1211 } BBS_BBS_DEVICE_PATH;
1212
1213 //
1214 // DeviceType definitions - from BBS specification
1215 //
1216 #define BBS_TYPE_FLOPPY 0x01
1217 #define BBS_TYPE_HARDDRIVE 0x02
1218 #define BBS_TYPE_CDROM 0x03
1219 #define BBS_TYPE_PCMCIA 0x04
1220 #define BBS_TYPE_USB 0x05
1221 #define BBS_TYPE_EMBEDDED_NETWORK 0x06
1222 #define BBS_TYPE_BEV 0x80
1223 #define BBS_TYPE_UNKNOWN 0xFF
1224
1225
1226 ///
1227 /// Union of all possible Device Paths and pointers to Device Paths.
1228 ///
1229 typedef union {
1230 EFI_DEVICE_PATH_PROTOCOL DevPath;
1231 PCI_DEVICE_PATH Pci;
1232 PCCARD_DEVICE_PATH PcCard;
1233 MEMMAP_DEVICE_PATH MemMap;
1234 VENDOR_DEVICE_PATH Vendor;
1235
1236 CONTROLLER_DEVICE_PATH Controller;
1237 BMC_DEVICE_PATH Bmc;
1238 ACPI_HID_DEVICE_PATH Acpi;
1239 ACPI_EXTENDED_HID_DEVICE_PATH ExtendedAcpi;
1240 ACPI_ADR_DEVICE_PATH AcpiAdr;
1241
1242 ATAPI_DEVICE_PATH Atapi;
1243 SCSI_DEVICE_PATH Scsi;
1244 ISCSI_DEVICE_PATH Iscsi;
1245 FIBRECHANNEL_DEVICE_PATH FibreChannel;
1246 FIBRECHANNELEX_DEVICE_PATH FibreChannelEx;
1247
1248 F1394_DEVICE_PATH F1394;
1249 USB_DEVICE_PATH Usb;
1250 SATA_DEVICE_PATH Sata;
1251 USB_CLASS_DEVICE_PATH UsbClass;
1252 USB_WWID_DEVICE_PATH UsbWwid;
1253 DEVICE_LOGICAL_UNIT_DEVICE_PATH LogicUnit;
1254 I2O_DEVICE_PATH I2O;
1255 MAC_ADDR_DEVICE_PATH MacAddr;
1256 IPv4_DEVICE_PATH Ipv4;
1257 IPv6_DEVICE_PATH Ipv6;
1258 VLAN_DEVICE_PATH Vlan;
1259 INFINIBAND_DEVICE_PATH InfiniBand;
1260 UART_DEVICE_PATH Uart;
1261 UART_FLOW_CONTROL_DEVICE_PATH UartFlowControl;
1262 SAS_DEVICE_PATH Sas;
1263 SASEX_DEVICE_PATH SasEx;
1264 NVME_NAMESPACE_DEVICE_PATH NvmeNamespace;
1265 DNS_DEVICE_PATH Dns;
1266 URI_DEVICE_PATH Uri;
1267 BLUETOOTH_DEVICE_PATH Bluetooth;
1268 WIFI_DEVICE_PATH WiFi;
1269 UFS_DEVICE_PATH Ufs;
1270 SD_DEVICE_PATH Sd;
1271 EMMC_DEVICE_PATH Emmc;
1272 HARDDRIVE_DEVICE_PATH HardDrive;
1273 CDROM_DEVICE_PATH CD;
1274
1275 FILEPATH_DEVICE_PATH FilePath;
1276 MEDIA_PROTOCOL_DEVICE_PATH MediaProtocol;
1277
1278 MEDIA_FW_VOL_DEVICE_PATH FirmwareVolume;
1279 MEDIA_FW_VOL_FILEPATH_DEVICE_PATH FirmwareFile;
1280 MEDIA_RELATIVE_OFFSET_RANGE_DEVICE_PATH Offset;
1281 MEDIA_RAM_DISK_DEVICE_PATH RamDisk;
1282 BBS_BBS_DEVICE_PATH Bbs;
1283 } EFI_DEV_PATH;
1284
1285
1286
1287 typedef union {
1288 EFI_DEVICE_PATH_PROTOCOL *DevPath;
1289 PCI_DEVICE_PATH *Pci;
1290 PCCARD_DEVICE_PATH *PcCard;
1291 MEMMAP_DEVICE_PATH *MemMap;
1292 VENDOR_DEVICE_PATH *Vendor;
1293
1294 CONTROLLER_DEVICE_PATH *Controller;
1295 BMC_DEVICE_PATH *Bmc;
1296 ACPI_HID_DEVICE_PATH *Acpi;
1297 ACPI_EXTENDED_HID_DEVICE_PATH *ExtendedAcpi;
1298 ACPI_ADR_DEVICE_PATH *AcpiAdr;
1299
1300 ATAPI_DEVICE_PATH *Atapi;
1301 SCSI_DEVICE_PATH *Scsi;
1302 ISCSI_DEVICE_PATH *Iscsi;
1303 FIBRECHANNEL_DEVICE_PATH *FibreChannel;
1304 FIBRECHANNELEX_DEVICE_PATH *FibreChannelEx;
1305
1306 F1394_DEVICE_PATH *F1394;
1307 USB_DEVICE_PATH *Usb;
1308 SATA_DEVICE_PATH *Sata;
1309 USB_CLASS_DEVICE_PATH *UsbClass;
1310 USB_WWID_DEVICE_PATH *UsbWwid;
1311 DEVICE_LOGICAL_UNIT_DEVICE_PATH *LogicUnit;
1312 I2O_DEVICE_PATH *I2O;
1313 MAC_ADDR_DEVICE_PATH *MacAddr;
1314 IPv4_DEVICE_PATH *Ipv4;
1315 IPv6_DEVICE_PATH *Ipv6;
1316 VLAN_DEVICE_PATH *Vlan;
1317 INFINIBAND_DEVICE_PATH *InfiniBand;
1318 UART_DEVICE_PATH *Uart;
1319 UART_FLOW_CONTROL_DEVICE_PATH *UartFlowControl;
1320 SAS_DEVICE_PATH *Sas;
1321 SASEX_DEVICE_PATH *SasEx;
1322 NVME_NAMESPACE_DEVICE_PATH *NvmeNamespace;
1323 DNS_DEVICE_PATH *Dns;
1324 URI_DEVICE_PATH *Uri;
1325 BLUETOOTH_DEVICE_PATH *Bluetooth;
1326 WIFI_DEVICE_PATH *WiFi;
1327 UFS_DEVICE_PATH *Ufs;
1328 SD_DEVICE_PATH *Sd;
1329 EMMC_DEVICE_PATH *Emmc;
1330 HARDDRIVE_DEVICE_PATH *HardDrive;
1331 CDROM_DEVICE_PATH *CD;
1332
1333 FILEPATH_DEVICE_PATH *FilePath;
1334 MEDIA_PROTOCOL_DEVICE_PATH *MediaProtocol;
1335
1336 MEDIA_FW_VOL_DEVICE_PATH *FirmwareVolume;
1337 MEDIA_FW_VOL_FILEPATH_DEVICE_PATH *FirmwareFile;
1338 MEDIA_RELATIVE_OFFSET_RANGE_DEVICE_PATH *Offset;
1339 MEDIA_RAM_DISK_DEVICE_PATH *RamDisk;
1340 BBS_BBS_DEVICE_PATH *Bbs;
1341 UINT8 *Raw;
1342 } EFI_DEV_PATH_PTR;
1343
1344 #pragma pack()
1345
1346 #define END_DEVICE_PATH_TYPE 0x7f
1347 #define END_ENTIRE_DEVICE_PATH_SUBTYPE 0xFF
1348 #define END_INSTANCE_DEVICE_PATH_SUBTYPE 0x01
1349
1350 extern EFI_GUID gEfiDevicePathProtocolGuid;
1351
1352 #endif