Update comments for Protocol definitions to match UEFI spec.
[mirror_edk2.git] / MdePkg / Include / Protocol / DevicePath.h
CommitLineData
d1f95000 1/** @file\r
8a7d75b0 2 The device path protocol as defined in UEFI 2.0.\r
959ccb23 3\r
d1f95000 4 The device path represents a programatic path to a device. It's the view\r
5 from a software point of view. It also must persist from boot to boot, so \r
6 it can not contain things like PCI bus numbers that change from boot to boot.\r
959ccb23 7\r
4ca9b6c4 8 Copyright (c) 2006 - 2008, Intel Corporation \r
d1f95000 9 All rights reserved. This program and the accompanying materials \r
10 are licensed and made available under the terms and conditions of the BSD License \r
11 which accompanies this distribution. The full text of the license may be found at \r
12 http://opensource.org/licenses/bsd-license.php \r
959ccb23 13\r
d1f95000 14 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
15 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
959ccb23 16\r
959ccb23 17**/\r
18\r
d1f95000 19#ifndef __EFI_DEVICE_PATH_PROTOCOL_H__\r
20#define __EFI_DEVICE_PATH_PROTOCOL_H__\r
21\r
b25e8149 22#include <Guid/PcAnsi.h>\r
23\r
99e8ed21 24///\r
25/// Device Path protocol\r
26///\r
d1f95000 27#define EFI_DEVICE_PATH_PROTOCOL_GUID \\r
28 { \\r
29 0x9576e91, 0x6d3f, 0x11d2, {0x8e, 0x39, 0x0, 0xa0, 0xc9, 0x69, 0x72, 0x3b } \\r
30 }\r
959ccb23 31\r
a6508c05 32//\r
33// Protocol GUID defined in EFI1.1.\r
34// \r
35\r
99e8ed21 36///\r
37/// Device Path information\r
38///\r
a6508c05 39#define DEVICE_PATH_PROTOCOL EFI_DEVICE_PATH_PROTOCOL_GUID\r
959ccb23 40\r
41#pragma pack(1)\r
42\r
2d824143 43/**\r
44 This protocol can be used on any device handle to obtain generic path/location \r
45 information concerning the physical device or logical device. If the handle does \r
46 not logically map to a physical device, the handle may not necessarily support \r
47 the device path protocol. The device path describes the location of the device \r
48 the handle is for. The size of the Device Path can be determined from the structures \r
49 that make up the Device Path.\r
50**/\r
d1f95000 51typedef struct {\r
842a119d 52 UINT8 Type; ///< 0x01 Hardware Device Path\r
53 ///< 0x02 ACPI Device Path\r
54 ///< 0x03 Messaging Device Path\r
55 ///< 0x04 Media Device Path\r
56 ///< 0x05 BIOS Boot Specification Device Path\r
57 ///< 0x7F End of Hardware Device Path\r
2d824143 58 \r
59 UINT8 SubType; ///< Varies by Type\r
842a119d 60 ///< 0xFF End Entire Device Path, or\r
61 ///< 0x01 End This Instance of a Device Path and start a new\r
2d824143 62 ///< Device Path\r
63 \r
64 UINT8 Length[2]; ///< Specific Device Path data. Type and Sub-Type define\r
65 ///< type of data. Size of data is included in Length.\r
66 \r
d1f95000 67} EFI_DEVICE_PATH_PROTOCOL;\r
68\r
99e8ed21 69///\r
70/// For backward-compatible with EFI1.1.\r
71/// \r
a6508c05 72typedef EFI_DEVICE_PATH_PROTOCOL EFI_DEVICE_PATH;\r
73\r
99e8ed21 74///\r
75/// Hardware Device Paths\r
76///\r
959ccb23 77#define HARDWARE_DEVICE_PATH 0x01\r
78\r
79#define HW_PCI_DP 0x01\r
80typedef struct {\r
81 EFI_DEVICE_PATH_PROTOCOL Header;\r
82 UINT8 Function;\r
83 UINT8 Device;\r
84} PCI_DEVICE_PATH;\r
85\r
86#define HW_PCCARD_DP 0x02\r
87typedef struct {\r
88 EFI_DEVICE_PATH_PROTOCOL Header;\r
89 UINT8 FunctionNumber;\r
90} PCCARD_DEVICE_PATH;\r
91\r
92#define HW_MEMMAP_DP 0x03\r
93typedef struct {\r
94 EFI_DEVICE_PATH_PROTOCOL Header;\r
95 UINT32 MemoryType;\r
96 EFI_PHYSICAL_ADDRESS StartingAddress;\r
97 EFI_PHYSICAL_ADDRESS EndingAddress;\r
98} MEMMAP_DEVICE_PATH;\r
99\r
100#define HW_VENDOR_DP 0x04\r
101typedef struct {\r
102 EFI_DEVICE_PATH_PROTOCOL Header;\r
103 EFI_GUID Guid;\r
104} VENDOR_DEVICE_PATH;\r
105\r
106#define HW_CONTROLLER_DP 0x05\r
107typedef struct {\r
108 EFI_DEVICE_PATH_PROTOCOL Header;\r
109 UINT32 ControllerNumber;\r
110} CONTROLLER_DEVICE_PATH;\r
111\r
99e8ed21 112///\r
113/// ACPI Device Paths\r
114///\r
959ccb23 115#define ACPI_DEVICE_PATH 0x02\r
116\r
117#define ACPI_DP 0x01\r
118typedef struct {\r
119 EFI_DEVICE_PATH_PROTOCOL Header;\r
120 UINT32 HID;\r
121 UINT32 UID;\r
122} ACPI_HID_DEVICE_PATH;\r
123\r
124#define ACPI_EXTENDED_DP 0x02\r
125typedef struct {\r
126 EFI_DEVICE_PATH_PROTOCOL Header;\r
127 UINT32 HID;\r
128 UINT32 UID;\r
129 UINT32 CID;\r
99e8ed21 130 ///\r
131 /// Optional variable length _HIDSTR\r
132 /// Optional variable length _UIDSTR\r
39099938 133 /// Optional variable length _CIDSTR\r
99e8ed21 134 ///\r
959ccb23 135} ACPI_EXTENDED_HID_DEVICE_PATH;\r
136\r
137//\r
138// EISA ID Macro\r
139// EISA ID Definition 32-bits\r
140// bits[15:0] - three character compressed ASCII EISA ID.\r
141// bits[31:16] - binary number\r
142// Compressed ASCII is 5 bits per character 0b00001 = 'A' 0b11010 = 'Z'\r
143//\r
144#define PNP_EISA_ID_CONST 0x41d0\r
8b13229b 145#define EISA_ID(_Name, _Num) ((UINT32)((_Name) | (_Num) << 16))\r
959ccb23 146#define EISA_PNP_ID(_PNPId) (EISA_ID(PNP_EISA_ID_CONST, (_PNPId)))\r
147#define EFI_PNP_ID(_PNPId) (EISA_ID(PNP_EISA_ID_CONST, (_PNPId)))\r
148\r
149#define PNP_EISA_ID_MASK 0xffff\r
150#define EISA_ID_TO_NUM(_Id) ((_Id) >> 16)\r
151\r
152\r
153#define ACPI_ADR_DP 0x03\r
154typedef struct {\r
155 EFI_DEVICE_PATH_PROTOCOL Header;\r
156 UINT32 ADR;\r
157} ACPI_ADR_DEVICE_PATH;\r
158\r
fbbe00ad 159#define ACPI_ADR_DISPLAY_TYPE_OTHER 0\r
160#define ACPI_ADR_DISPLAY_TYPE_VGA 1\r
161#define ACPI_ADR_DISPLAY_TYPE_TV 2\r
162#define ACPI_ADR_DISPLAY_TYPE_EXTERNAL_DIGITAL 3\r
163#define ACPI_ADR_DISPLAY_TYPE_INTERNAL_DIGITAL 4\r
164\r
165#define ACPI_DISPLAY_ADR(_DeviceIdScheme, _HeadId, _NonVgaOutput, _BiosCanDetect, _VendorInfo, _Type, _Port, _Index) \\r
8b13229b 166 ((UINT32)( (((_DeviceIdScheme) & 0x1) << 31) | \\r
fbbe00ad 167 (((_HeadId) & 0x7) << 18) | \\r
168 (((_NonVgaOutput) & 0x1) << 17) | \\r
169 (((_BiosCanDetect) & 0x1) << 16) | \\r
170 (((_VendorInfo) & 0xf) << 12) | \\r
171 (((_Type) & 0xf) << 8) | \\r
172 (((_Port) & 0xf) << 4) | \\r
173 ((_Index) & 0xf) ))\r
959ccb23 174\r
99e8ed21 175///\r
176/// Messaging Device Paths\r
177///\r
959ccb23 178#define MESSAGING_DEVICE_PATH 0x03\r
179\r
180#define MSG_ATAPI_DP 0x01\r
181typedef struct {\r
182 EFI_DEVICE_PATH_PROTOCOL Header;\r
183 UINT8 PrimarySecondary;\r
184 UINT8 SlaveMaster;\r
185 UINT16 Lun;\r
186} ATAPI_DEVICE_PATH;\r
187\r
188#define MSG_SCSI_DP 0x02\r
189typedef struct {\r
190 EFI_DEVICE_PATH_PROTOCOL Header;\r
191 UINT16 Pun;\r
192 UINT16 Lun;\r
193} SCSI_DEVICE_PATH;\r
194\r
195#define MSG_FIBRECHANNEL_DP 0x03\r
196typedef struct {\r
197 EFI_DEVICE_PATH_PROTOCOL Header;\r
198 UINT32 Reserved;\r
199 UINT64 WWN;\r
200 UINT64 Lun;\r
201} FIBRECHANNEL_DEVICE_PATH;\r
202\r
203#define MSG_1394_DP 0x04\r
204typedef struct {\r
205 EFI_DEVICE_PATH_PROTOCOL Header;\r
206 UINT32 Reserved;\r
207 UINT64 Guid;\r
208} F1394_DEVICE_PATH;\r
209\r
210#define MSG_USB_DP 0x05\r
211typedef struct {\r
212 EFI_DEVICE_PATH_PROTOCOL Header;\r
213 UINT8 ParentPortNumber;\r
214 UINT8 InterfaceNumber;\r
215} USB_DEVICE_PATH;\r
216\r
217#define MSG_USB_CLASS_DP 0x0f\r
218typedef struct {\r
219 EFI_DEVICE_PATH_PROTOCOL Header;\r
220 UINT16 VendorId;\r
221 UINT16 ProductId;\r
222 UINT8 DeviceClass;\r
223 UINT8 DeviceSubClass;\r
224 UINT8 DeviceProtocol;\r
225} USB_CLASS_DEVICE_PATH;\r
226\r
227#define MSG_USB_WWID_DP 0x10\r
228typedef struct {\r
229 EFI_DEVICE_PATH_PROTOCOL Header;\r
230 UINT16 InterfaceNumber;\r
231 UINT16 VendorId;\r
232 UINT16 ProductId;\r
233 // CHAR16 SerialNumber[...];\r
234} USB_WWID_DEVICE_PATH;\r
235\r
236\r
237#define MSG_DEVICE_LOGICAL_UNIT_DP 0x11\r
238typedef struct {\r
239 EFI_DEVICE_PATH_PROTOCOL Header;\r
240 UINT8 Lun;\r
241} DEVICE_LOGICAL_UNIT_DEVICE_PATH;\r
242\r
00edb218 243#define MSG_SATA_DP 0x12\r
959ccb23 244typedef struct {\r
00edb218 245 EFI_DEVICE_PATH_PROTOCOL Header;\r
7d582d6b 246 UINT16 HBAPortNumber;\r
247 UINT16 PortMultiplierPortNumber;\r
248 UINT16 Lun;\r
959ccb23 249} SATA_DEVICE_PATH;\r
250\r
251#define MSG_I2O_DP 0x06\r
252typedef struct {\r
253 EFI_DEVICE_PATH_PROTOCOL Header;\r
254 UINT32 Tid;\r
255} I2O_DEVICE_PATH;\r
256\r
257#define MSG_MAC_ADDR_DP 0x0b\r
258typedef struct {\r
259 EFI_DEVICE_PATH_PROTOCOL Header;\r
260 EFI_MAC_ADDRESS MacAddress;\r
261 UINT8 IfType;\r
262} MAC_ADDR_DEVICE_PATH;\r
263\r
264#define MSG_IPv4_DP 0x0c\r
265typedef struct {\r
266 EFI_DEVICE_PATH_PROTOCOL Header;\r
267 EFI_IPv4_ADDRESS LocalIpAddress;\r
268 EFI_IPv4_ADDRESS RemoteIpAddress;\r
269 UINT16 LocalPort;\r
270 UINT16 RemotePort;\r
271 UINT16 Protocol;\r
272 BOOLEAN StaticIpAddress;\r
273} IPv4_DEVICE_PATH;\r
274\r
275#define MSG_IPv6_DP 0x0d\r
276typedef struct {\r
277 EFI_DEVICE_PATH_PROTOCOL Header;\r
278 EFI_IPv6_ADDRESS LocalIpAddress;\r
279 EFI_IPv6_ADDRESS RemoteIpAddress;\r
280 UINT16 LocalPort;\r
281 UINT16 RemotePort;\r
282 UINT16 Protocol;\r
283 BOOLEAN StaticIpAddress;\r
284} IPv6_DEVICE_PATH;\r
285\r
286#define MSG_INFINIBAND_DP 0x09\r
287typedef struct {\r
288 EFI_DEVICE_PATH_PROTOCOL Header;\r
289 UINT32 ResourceFlags;\r
290 UINT8 PortGid[16];\r
291 UINT64 ServiceId;\r
292 UINT64 TargetPortId;\r
293 UINT64 DeviceId;\r
294} INFINIBAND_DEVICE_PATH;\r
295\r
296#define INFINIBAND_RESOURCE_FLAG_IOC_SERVICE 0x01\r
297#define INFINIBAND_RESOURCE_FLAG_EXTENDED_BOOT_ENVIRONMENT 0x02\r
298#define INFINIBAND_RESOURCE_FLAG_CONSOLE_PROTOCOL 0x04\r
299#define INFINIBAND_RESOURCE_FLAG_STORAGE_PROTOCOL 0x08\r
300#define INFINIBAND_RESOURCE_FLAG_NETWORK_PROTOCOL 0x10\r
301\r
302#define MSG_UART_DP 0x0e\r
303typedef struct {\r
304 EFI_DEVICE_PATH_PROTOCOL Header;\r
305 UINT32 Reserved;\r
306 UINT64 BaudRate;\r
307 UINT8 DataBits;\r
308 UINT8 Parity;\r
309 UINT8 StopBits;\r
310} UART_DEVICE_PATH;\r
311\r
312//\r
313// Use VENDOR_DEVICE_PATH struct\r
314//\r
315#define MSG_VENDOR_DP 0x0a\r
00edb218 316typedef VENDOR_DEVICE_PATH VENDOR_DEFINED_DEVICE_PATH;\r
959ccb23 317\r
318#define DEVICE_PATH_MESSAGING_PC_ANSI EFI_PC_ANSI_GUID\r
319#define DEVICE_PATH_MESSAGING_VT_100 EFI_VT_100_GUID\r
320#define DEVICE_PATH_MESSAGING_VT_100_PLUS EFI_VT_100_PLUS_GUID\r
321#define DEVICE_PATH_MESSAGING_VT_UTF8 EFI_VT_UTF8_GUID\r
322\r
323#define DEVICE_PATH_MESSAGING_UART_FLOW_CONTROL EFI_UART_DEVICE_PATH_GUID\r
324\r
325typedef struct {\r
326 EFI_DEVICE_PATH_PROTOCOL Header;\r
327 EFI_GUID Guid;\r
328 UINT32 FlowControlMap;\r
329} UART_FLOW_CONTROL_DEVICE_PATH;\r
330\r
331#define DEVICE_PATH_MESSAGING_SAS EFI_SAS_DEVICE_PATH_GUID\r
332\r
333typedef struct {\r
334 EFI_DEVICE_PATH_PROTOCOL Header;\r
335 EFI_GUID Guid;\r
336 UINT32 Reserved;\r
337 UINT64 SasAddress;\r
338 UINT64 Lun;\r
339 UINT16 DeviceTopology;\r
340 UINT16 RelativeTargetPort;\r
341} SAS_DEVICE_PATH;\r
342\r
343#define MSG_ISCSI_DP 0x13\r
344typedef struct {\r
345 EFI_DEVICE_PATH_PROTOCOL Header;\r
346 UINT16 NetworkProtocol;\r
347 UINT16 LoginOption;\r
ab2abe4c 348 UINT64 Lun;\r
959ccb23 349 UINT16 TargetPortalGroupTag;\r
959ccb23 350 // CHAR8 iSCSI Target Name\r
351} ISCSI_DEVICE_PATH;\r
352\r
353#define ISCSI_LOGIN_OPTION_NO_HEADER_DIGEST 0x0000\r
354#define ISCSI_LOGIN_OPTION_HEADER_DIGEST_USING_CRC32C 0x0002\r
355#define ISCSI_LOGIN_OPTION_NO_DATA_DIGEST 0x0000\r
356#define ISCSI_LOGIN_OPTION_DATA_DIGEST_USING_CRC32C 0x0008\r
357#define ISCSI_LOGIN_OPTION_AUTHMETHOD_CHAP 0x0000\r
358#define ISCSI_LOGIN_OPTION_AUTHMETHOD_NON 0x1000\r
359#define ISCSI_LOGIN_OPTION_CHAP_BI 0x0000\r
360#define ISCSI_LOGIN_OPTION_CHAP_UNI 0x2000\r
361\r
362//\r
363// Media Device Path\r
364//\r
365#define MEDIA_DEVICE_PATH 0x04\r
366\r
367#define MEDIA_HARDDRIVE_DP 0x01\r
368typedef struct {\r
369 EFI_DEVICE_PATH_PROTOCOL Header;\r
370 UINT32 PartitionNumber;\r
371 UINT64 PartitionStart;\r
372 UINT64 PartitionSize;\r
373 UINT8 Signature[16];\r
374 UINT8 MBRType;\r
375 UINT8 SignatureType;\r
376} HARDDRIVE_DEVICE_PATH;\r
377\r
378#define MBR_TYPE_PCAT 0x01\r
379#define MBR_TYPE_EFI_PARTITION_TABLE_HEADER 0x02\r
380\r
381#define SIGNATURE_TYPE_MBR 0x01\r
382#define SIGNATURE_TYPE_GUID 0x02\r
383\r
384#define MEDIA_CDROM_DP 0x02\r
385typedef struct {\r
386 EFI_DEVICE_PATH_PROTOCOL Header;\r
387 UINT32 BootEntry;\r
388 UINT64 PartitionStart;\r
389 UINT64 PartitionSize;\r
390} CDROM_DEVICE_PATH;\r
391\r
392//\r
393// Use VENDOR_DEVICE_PATH struct\r
394//\r
395#define MEDIA_VENDOR_DP 0x03\r
396\r
397#define MEDIA_FILEPATH_DP 0x04\r
398typedef struct {\r
399 EFI_DEVICE_PATH_PROTOCOL Header;\r
400 CHAR16 PathName[1];\r
401} FILEPATH_DEVICE_PATH;\r
402\r
146332ae 403#define SIZE_OF_FILEPATH_DEVICE_PATH EFI_FIELD_OFFSET(FILEPATH_DEVICE_PATH,PathName)\r
959ccb23 404\r
405#define MEDIA_PROTOCOL_DP 0x05\r
406typedef struct {\r
407 EFI_DEVICE_PATH_PROTOCOL Header;\r
408 EFI_GUID Protocol;\r
409} MEDIA_PROTOCOL_DEVICE_PATH;\r
410\r
411\r
9166ece0 412#define MEDIA_PIWG_FW_VOL_DP 0x7\r
146332ae 413typedef struct {\r
414 EFI_DEVICE_PATH_PROTOCOL Header;\r
415 EFI_GUID FvName;\r
416} MEDIA_FW_VOL_DEVICE_PATH;\r
959ccb23 417\r
418\r
9166ece0 419#define MEDIA_PIWG_FW_FILE_DP 0x6\r
146332ae 420typedef struct {\r
421 EFI_DEVICE_PATH_PROTOCOL Header;\r
422 EFI_GUID FvFileName;\r
423} MEDIA_FW_VOL_FILEPATH_DEVICE_PATH;\r
959ccb23 424\r
425//\r
426// BBS Device Path\r
427//\r
428#define BBS_DEVICE_PATH 0x05\r
429#define BBS_BBS_DP 0x01\r
430typedef struct {\r
431 EFI_DEVICE_PATH_PROTOCOL Header;\r
432 UINT16 DeviceType;\r
433 UINT16 StatusFlag;\r
434 CHAR8 String[1];\r
435} BBS_BBS_DEVICE_PATH;\r
436\r
437//\r
438// DeviceType definitions - from BBS specification\r
439//\r
440#define BBS_TYPE_FLOPPY 0x01\r
441#define BBS_TYPE_HARDDRIVE 0x02\r
442#define BBS_TYPE_CDROM 0x03\r
443#define BBS_TYPE_PCMCIA 0x04\r
444#define BBS_TYPE_USB 0x05\r
445#define BBS_TYPE_EMBEDDED_NETWORK 0x06\r
446#define BBS_TYPE_BEV 0x80\r
447#define BBS_TYPE_UNKNOWN 0xFF\r
448\r
449\r
99e8ed21 450///\r
451/// Union of all possible Device Paths and pointers to Device Paths\r
452///\r
959ccb23 453\r
454typedef union {\r
455 EFI_DEVICE_PATH_PROTOCOL DevPath;\r
456 PCI_DEVICE_PATH Pci;\r
457 PCCARD_DEVICE_PATH PcCard;\r
458 MEMMAP_DEVICE_PATH MemMap;\r
459 VENDOR_DEVICE_PATH Vendor;\r
460\r
461 CONTROLLER_DEVICE_PATH Controller;\r
462 ACPI_HID_DEVICE_PATH Acpi;\r
463\r
464 ATAPI_DEVICE_PATH Atapi;\r
465 SCSI_DEVICE_PATH Scsi;\r
e3b1115e 466 ISCSI_DEVICE_PATH Iscsi;\r
959ccb23 467 FIBRECHANNEL_DEVICE_PATH FibreChannel;\r
468\r
469 F1394_DEVICE_PATH F1394;\r
470 USB_DEVICE_PATH Usb;\r
471 SATA_DEVICE_PATH Sata;\r
472 USB_CLASS_DEVICE_PATH UsbClass;\r
473 I2O_DEVICE_PATH I2O;\r
474 MAC_ADDR_DEVICE_PATH MacAddr;\r
475 IPv4_DEVICE_PATH Ipv4;\r
476 IPv6_DEVICE_PATH Ipv6;\r
477 INFINIBAND_DEVICE_PATH InfiniBand;\r
478 UART_DEVICE_PATH Uart;\r
479\r
480 HARDDRIVE_DEVICE_PATH HardDrive;\r
481 CDROM_DEVICE_PATH CD;\r
482\r
483 FILEPATH_DEVICE_PATH FilePath;\r
484 MEDIA_PROTOCOL_DEVICE_PATH MediaProtocol;\r
485\r
486 BBS_BBS_DEVICE_PATH Bbs;\r
487} EFI_DEV_PATH;\r
488\r
489\r
490\r
491typedef union {\r
492 EFI_DEVICE_PATH_PROTOCOL *DevPath;\r
493 PCI_DEVICE_PATH *Pci;\r
494 PCCARD_DEVICE_PATH *PcCard;\r
495 MEMMAP_DEVICE_PATH *MemMap;\r
496 VENDOR_DEVICE_PATH *Vendor;\r
497\r
498 CONTROLLER_DEVICE_PATH *Controller;\r
499 ACPI_HID_DEVICE_PATH *Acpi;\r
500 ACPI_EXTENDED_HID_DEVICE_PATH *ExtendedAcpi;\r
501\r
502 ATAPI_DEVICE_PATH *Atapi;\r
503 SCSI_DEVICE_PATH *Scsi;\r
504 FIBRECHANNEL_DEVICE_PATH *FibreChannel;\r
505\r
506 F1394_DEVICE_PATH *F1394;\r
507 USB_DEVICE_PATH *Usb;\r
508 SATA_DEVICE_PATH *Sata;\r
509 USB_CLASS_DEVICE_PATH *UsbClass;\r
510 I2O_DEVICE_PATH *I2O;\r
511 MAC_ADDR_DEVICE_PATH *MacAddr;\r
512 IPv4_DEVICE_PATH *Ipv4;\r
513 IPv6_DEVICE_PATH *Ipv6;\r
514 INFINIBAND_DEVICE_PATH *InfiniBand;\r
515 UART_DEVICE_PATH *Uart;\r
516\r
517 HARDDRIVE_DEVICE_PATH *HardDrive;\r
518 CDROM_DEVICE_PATH *CD;\r
519\r
520 FILEPATH_DEVICE_PATH *FilePath;\r
521 MEDIA_PROTOCOL_DEVICE_PATH *MediaProtocol;\r
522\r
523 BBS_BBS_DEVICE_PATH *Bbs;\r
524 UINT8 *Raw;\r
525} EFI_DEV_PATH_PTR;\r
526\r
527#pragma pack()\r
d1f95000 528 \r
d1f95000 529#define END_DEVICE_PATH_TYPE 0x7f\r
e5dab016 530#define END_ENTIRE_DEVICE_PATH_SUBTYPE 0xFF\r
531#define END_INSTANCE_DEVICE_PATH_SUBTYPE 0x01\r
d1f95000 532\r
533extern EFI_GUID gEfiDevicePathProtocolGuid;\r
959ccb23 534\r
535#endif\r