devpath.h 40 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655
  1. /*++
  2. Copyright (c) 2014 Minoca Corp.
  3. This file is licensed under the terms of the GNU General Public License
  4. version 3. Alternative licensing terms are available. Contact
  5. info@minocacorp.com for details. See the LICENSE file at the root of this
  6. project for complete licensing information.
  7. Module Name:
  8. devpath.h
  9. Abstract:
  10. This header contains definitions for the UEFI Device Path Protocol.
  11. Author:
  12. Evan Green 7-Feb-2014
  13. --*/
  14. //
  15. // ------------------------------------------------------------------- Includes
  16. //
  17. //
  18. // --------------------------------------------------------------------- Macros
  19. //
  20. //
  21. // The EISA macros convert into and out of the compressed EISA format. The
  22. // lower 16 bits contain a three character compressed ASCII EISA ID, 5 bits per
  23. // letter. The upper 16 bits contain the binary number.
  24. //
  25. #define EISA_ID(_Name, _Number) ((UINT32)((_Name) | (_Number) << 16))
  26. #define EISA_PNP_ID(_PnpId) (EISA_ID(PNP_EISA_ID_CONST, (_PnpId)))
  27. #define EFI_PNP_ID(_PnpId) (EISA_ID(PNP_EISA_ID_CONST, (_PnpId)))
  28. #define EISA_ID_TO_NUM(_Id) ((_Id) >> 16)
  29. #define ACPI_DISPLAY_ADR(_DeviceIdScheme, \
  30. _HeadId, \
  31. _NonVgaOutput, \
  32. _BiosCanDetect, \
  33. _VendorInfo, \
  34. _Type, \
  35. _Port, \
  36. _Index) \
  37. \
  38. ((UINT32)( (((_DeviceIdScheme) & 0x1) << 31) | \
  39. (((_HeadId) & 0x7) << 18) | \
  40. (((_NonVgaOutput) & 0x1) << 17) | \
  41. (((_BiosCanDetect) & 0x1) << 16) | \
  42. (((_VendorInfo) & 0xF) << 12) | \
  43. (((_Type) & 0xF) << 8) | \
  44. (((_Port) & 0xF) << 4) | \
  45. ((_Index) & 0xF) ))
  46. //
  47. // ---------------------------------------------------------------- Definitions
  48. //
  49. //
  50. // Device Path protocol
  51. //
  52. #define EFI_DEVICE_PATH_PROTOCOL_GUID \
  53. { \
  54. 0x9576E91, 0x6D3F, 0x11D2, \
  55. {0x8E, 0x39, 0x0, 0xA0, 0xC9, 0x69, 0x72, 0x3B} \
  56. }
  57. #define EFI_PC_ANSI_GUID \
  58. { \
  59. 0xE0C14753, 0xF9BE, 0x11D2, \
  60. {0x9A, 0x0C, 0x00, 0x90, 0x27, 0x3F, 0xC1, 0x4D} \
  61. }
  62. #define EFI_VT_100_GUID \
  63. { \
  64. 0xDFA66065, 0xB419, 0x11D3, \
  65. {0x9A, 0x2D, 0x00, 0x90, 0x27, 0x3F, 0xC1, 0x4D} \
  66. }
  67. #define EFI_VT_100_PLUS_GUID \
  68. { \
  69. 0x7BAEC70B, 0x57E0, 0x4C76, \
  70. {0x8E, 0x87, 0x2F, 0x9E, 0x28, 0x08, 0x83, 0x43} \
  71. }
  72. #define EFI_VT_UTF8_GUID \
  73. { \
  74. 0xAD15A0D6, 0x8BEC, 0x4ACF, \
  75. {0xA0, 0x73, 0xD0, 0x1D, 0xE7, 0x7E, 0x2D, 0x88} \
  76. }
  77. #define DEVICE_PATH_MESSAGING_UART_FLOW_CONTROL \
  78. { \
  79. 0x37499A9D, 0x542F, 0x4C89, \
  80. {0xA0, 0x26, 0x35, 0xDA, 0x14, 0x20, 0x94, 0xE4} \
  81. }
  82. #define EFI_SAS_DEVICE_PATH_GUID \
  83. { \
  84. 0xD487DDB4, 0x008B, 0x11D9, \
  85. {0xAF, 0xDC, 0x00, 0x10, 0x83, 0xFF, 0xCA, 0x4D} \
  86. }
  87. //
  88. // Device Path guid definition for backward compatibility with EFI 1.1.
  89. //
  90. #define DEVICE_PATH_PROTOCOL EFI_DEVICE_PATH_PROTOCOL_GUID
  91. //
  92. // Hardware Device Paths.
  93. //
  94. #define HARDWARE_DEVICE_PATH 0x01
  95. //
  96. // PCI Device Path SubType.
  97. //
  98. #define HW_PCI_DP 0x01
  99. //
  100. // PCCARD Device Path SubType.
  101. //
  102. #define HW_PCCARD_DP 0x02
  103. //
  104. // Memory Mapped Device Path SubType.
  105. //
  106. #define HW_MEMMAP_DP 0x03
  107. //
  108. // Hardware Vendor Device Path SubType.
  109. //
  110. #define HW_VENDOR_DP 0x04
  111. //
  112. // Controller Device Path SubType.
  113. //
  114. #define HW_CONTROLLER_DP 0x05
  115. //
  116. // ACPI Device Paths.
  117. //
  118. #define ACPI_DEVICE_PATH 0x02
  119. //
  120. // ACPI Device Path SubType.
  121. //
  122. #define ACPI_DP 0x01
  123. //
  124. // Expanded ACPI Device Path SubType.
  125. //
  126. #define ACPI_EXTENDED_DP 0x02
  127. //
  128. // Define constants used for EISA ID conversion.
  129. //
  130. #define PNP_EISA_ID_CONST 0x41D0
  131. #define PNP_EISA_ID_MASK 0xFFFF
  132. //
  133. // ACPI _ADR Device Path SubType.
  134. //
  135. #define ACPI_ADR_DP 0x03
  136. #define ACPI_ADR_DISPLAY_TYPE_OTHER 0
  137. #define ACPI_ADR_DISPLAY_TYPE_VGA 1
  138. #define ACPI_ADR_DISPLAY_TYPE_TV 2
  139. #define ACPI_ADR_DISPLAY_TYPE_EXTERNAL_DIGITAL 3
  140. #define ACPI_ADR_DISPLAY_TYPE_INTERNAL_DIGITAL 4
  141. //
  142. // Messaging Device Paths. This Device Path is used to describe the connection
  143. // of devices outside the resource domain of the system. This Device Path can
  144. // describe physical messaging information like SCSI ID, or abstract
  145. // information like networking protocol IP addresses.
  146. //
  147. #define MESSAGING_DEVICE_PATH 0x03
  148. //
  149. // ATAPI Device Path SubType
  150. //
  151. #define MSG_ATAPI_DP 0x01
  152. //
  153. // SCSI Device Path SubType.
  154. //
  155. #define MSG_SCSI_DP 0x02
  156. //
  157. // Fibre Channel SubType.
  158. //
  159. #define MSG_FIBRECHANNEL_DP 0x03
  160. //
  161. // Fibre Channel Ex SubType.
  162. //
  163. #define MSG_FIBRECHANNELEX_DP 0x15
  164. //
  165. // 1394 Device Path SubType
  166. //
  167. #define MSG_1394_DP 0x04
  168. //
  169. // USB Device Path SubType.
  170. //
  171. #define MSG_USB_DP 0x05
  172. //
  173. // USB Class Device Path SubType.
  174. //
  175. #define MSG_USB_CLASS_DP 0x0F
  176. //
  177. // USB WWID Device Path SubType.
  178. //
  179. #define MSG_USB_WWID_DP 0x10
  180. //
  181. // Device Logical Unit SubType.
  182. //
  183. #define MSG_DEVICE_LOGICAL_UNIT_DP 0x11
  184. //
  185. // SATA Device Path SubType.
  186. //
  187. #define MSG_SATA_DP 0x12
  188. //
  189. // Flag for if the device is directly connected to the HBA.
  190. //
  191. #define SATA_HBA_DIRECT_CONNECT_FLAG 0x8000
  192. //
  193. // I2O Device Path SubType.
  194. //
  195. #define MSG_I2O_DP 0x06
  196. //
  197. // MAC Address Device Path SubType.
  198. //
  199. #define MSG_MAC_ADDR_DP 0x0B
  200. //
  201. // IPv4 Device Path SubType
  202. //
  203. #define MSG_IPv4_DP 0x0C
  204. //
  205. // IPv6 Device Path SubType.
  206. //
  207. #define MSG_IPv6_DP 0x0D
  208. //
  209. // InfiniBand Device Path SubType.
  210. //
  211. #define MSG_INFINIBAND_DP 0x09
  212. #define INFINIBAND_RESOURCE_FLAG_IOC_SERVICE 0x01
  213. #define INFINIBAND_RESOURCE_FLAG_EXTENDED_BOOT_ENVIRONMENT 0x02
  214. #define INFINIBAND_RESOURCE_FLAG_CONSOLE_PROTOCOL 0x04
  215. #define INFINIBAND_RESOURCE_FLAG_STORAGE_PROTOCOL 0x08
  216. #define INFINIBAND_RESOURCE_FLAG_NETWORK_PROTOCOL 0x10
  217. //
  218. // UART Device Path SubType.
  219. //
  220. #define MSG_UART_DP 0x0E
  221. //
  222. // Use VENDOR_DEVICE_PATH struct
  223. //
  224. #define MSG_VENDOR_DP 0x0A
  225. #define DEVICE_PATH_MESSAGING_PC_ANSI EFI_PC_ANSI_GUID
  226. #define DEVICE_PATH_MESSAGING_VT_100 EFI_VT_100_GUID
  227. #define DEVICE_PATH_MESSAGING_VT_100_PLUS EFI_VT_100_PLUS_GUID
  228. #define DEVICE_PATH_MESSAGING_VT_UTF8 EFI_VT_UTF8_GUID
  229. //
  230. // Define UART flow control bits.
  231. //
  232. #define UART_FLOW_CONTROL_HARDWARE 0x00000001
  233. #define UART_FLOW_CONTROL_XON_XOFF 0x00000010
  234. #define DEVICE_PATH_MESSAGING_SAS EFI_SAS_DEVICE_PATH_GUID
  235. //
  236. // Serial Attached SCSI (SAS) Ex Device Path SubType
  237. //
  238. #define MSG_SASEX_DP 0x16
  239. //
  240. // NvmExpress Namespace Device Path SubType.
  241. //
  242. #define MSG_NVME_NAMESPACE_DP 0x17
  243. //
  244. // iSCSI Device Path SubType
  245. //
  246. #define MSG_ISCSI_DP 0x13
  247. #define ISCSI_LOGIN_OPTION_NO_HEADER_DIGEST 0x0000
  248. #define ISCSI_LOGIN_OPTION_HEADER_DIGEST_USING_CRC32C 0x0002
  249. #define ISCSI_LOGIN_OPTION_NO_DATA_DIGEST 0x0000
  250. #define ISCSI_LOGIN_OPTION_DATA_DIGEST_USING_CRC32C 0x0008
  251. #define ISCSI_LOGIN_OPTION_AUTHMETHOD_CHAP 0x0000
  252. #define ISCSI_LOGIN_OPTION_AUTHMETHOD_NON 0x1000
  253. #define ISCSI_LOGIN_OPTION_CHAP_BI 0x0000
  254. #define ISCSI_LOGIN_OPTION_CHAP_UNI 0x2000
  255. //
  256. // VLAN Device Path SubType.
  257. //
  258. #define MSG_VLAN_DP 0x14
  259. //
  260. // Media Device Path
  261. //
  262. #define MEDIA_DEVICE_PATH 0x04
  263. //
  264. // Hard Drive Media Device Path SubType.
  265. //
  266. #define MEDIA_HARDDRIVE_DP 0x01
  267. #define MBR_TYPE_PCAT 0x01
  268. #define MBR_TYPE_EFI_PARTITION_TABLE_HEADER 0x02
  269. #define NO_DISK_SIGNATURE 0x00
  270. #define SIGNATURE_TYPE_MBR 0x01
  271. #define SIGNATURE_TYPE_GUID 0x02
  272. //
  273. // CD-ROM Media Device Path SubType.
  274. //
  275. #define MEDIA_CDROM_DP 0x02
  276. //
  277. // Define the media vendor device path subtype.
  278. //
  279. #define MEDIA_VENDOR_DP 0x03
  280. //
  281. // File Path Media Device Path SubType
  282. //
  283. #define MEDIA_FILEPATH_DP 0x04
  284. #define SIZE_OF_FILEPATH_DEVICE_PATH OFFSET_OF(FILEPATH_DEVICE_PATH, PathName)
  285. //
  286. // Media Protocol Device Path SubType.
  287. //
  288. #define MEDIA_PROTOCOL_DP 0x05
  289. //
  290. // PIWG Firmware File SubType.
  291. //
  292. #define MEDIA_PIWG_FW_FILE_DP 0x06
  293. //
  294. // PIWG Firmware Volume Device Path SubType.
  295. //
  296. #define MEDIA_PIWG_FW_VOL_DP 0x07
  297. //
  298. // Media relative offset range device path.
  299. //
  300. #define MEDIA_RELATIVE_OFFSET_RANGE_DP 0x08
  301. //
  302. // BIOS Boot Specification Device Path.
  303. //
  304. #define BBS_DEVICE_PATH 0x05
  305. //
  306. // BIOS Boot Specification Device Path SubType.
  307. //
  308. #define BBS_BBS_DP 0x01
  309. //
  310. // DeviceType definitions - from BBS specification
  311. //
  312. #define BBS_TYPE_FLOPPY 0x01
  313. #define BBS_TYPE_HARDDRIVE 0x02
  314. #define BBS_TYPE_CDROM 0x03
  315. #define BBS_TYPE_PCMCIA 0x04
  316. #define BBS_TYPE_USB 0x05
  317. #define BBS_TYPE_EMBEDDED_NETWORK 0x06
  318. #define BBS_TYPE_BEV 0x80
  319. #define BBS_TYPE_UNKNOWN 0xFF
  320. //
  321. // Define other device path types.
  322. //
  323. #define END_DEVICE_PATH_TYPE 0x7F
  324. #define END_ENTIRE_DEVICE_PATH_SUBTYPE 0xFF
  325. #define END_INSTANCE_DEVICE_PATH_SUBTYPE 0x01
  326. #define END_DEVICE_PATH_LENGTH (sizeof(EFI_DEVICE_PATH_PROTOCOL))
  327. //
  328. // ------------------------------------------------------ Data Type Definitions
  329. //
  330. /*++
  331. Structure Description:
  332. This structure defines the common header of the EFI Device Path protocol.
  333. This protocol can be used on any device handle to obtain generic
  334. path/location information concerning the physical device or logical device.
  335. If the handle does not logically map to a physical device, the handle may
  336. not necessarily support the device path protocol. The device path
  337. describes the location of the device the handle is for. The size of the
  338. Device Path can be determined from the structures that make up the Device
  339. Path.
  340. Members:
  341. Type - Stores the device path type. Valid values are:
  342. 0x01 - Hardware Device Path
  343. 0x02 - ACPI Device Path
  344. 0x03 - Messaging Device Path
  345. 0x04 - Media Device Path
  346. 0x05 - BIOS Boot Specification Device Path
  347. 0x7F - End of Hardware Device Path
  348. SubType - Stores the subtype, which varies by type. Some values are:
  349. 0xFF - End of entire device path
  350. 0x01 - End this instance of a device path and start a new device path
  351. Length - Stores the specific Device Path data. The type and subtype define
  352. the type of this data. The size of the data is included in the length.
  353. --*/
  354. #pragma pack(push, 1)
  355. typedef struct {
  356. UINT8 Type;
  357. UINT8 SubType;
  358. UINT16 Length;
  359. } PACKED EFI_DEVICE_PATH_PROTOCOL;
  360. //
  361. // Device Path protocol definition for backward compatibility with EFI 1.1.
  362. //
  363. typedef EFI_DEVICE_PATH_PROTOCOL EFI_DEVICE_PATH;
  364. /*++
  365. Structure Description:
  366. This structure defines a PCI device path.
  367. Members:
  368. Header - Stores the common device path header.
  369. Function - Stores the function number of the PCI device.
  370. Device - Stores the device number of the PCI device.
  371. --*/
  372. typedef struct {
  373. EFI_DEVICE_PATH_PROTOCOL Header;
  374. UINT8 Function;
  375. UINT8 Device;
  376. } PACKED PCI_DEVICE_PATH;
  377. /*++
  378. Structure Description:
  379. This structure defines a PC Card device path.
  380. Members:
  381. Header - Stores the common device path header.
  382. FunctionNumber - Stores the function number of the device. Zero is the
  383. first function.
  384. --*/
  385. typedef struct {
  386. EFI_DEVICE_PATH_PROTOCOL Header;
  387. UINT8 FunctionNumber;
  388. } PACKED PCCARD_DEVICE_PATH;
  389. /*++
  390. Structure Description:
  391. This structure defines a Memory Mapped Device path.
  392. Members:
  393. Header - Stores the common device path header.
  394. MemoryType - Stores the type of memory. See EFI_MEMORY_TYPE definitions.
  395. StartingAddress - Stores the starting memory address.
  396. EndingAddress - Stores the ending memory address.
  397. --*/
  398. typedef struct {
  399. EFI_DEVICE_PATH_PROTOCOL Header;
  400. UINT32 MemoryType;
  401. EFI_PHYSICAL_ADDRESS StartingAddress;
  402. EFI_PHYSICAL_ADDRESS EndingAddress;
  403. } PACKED MEMMAP_DEVICE_PATH;
  404. /*++
  405. Structure Description:
  406. This structure defines a "vendor" device path. The Vendor Device Path
  407. allows the creation of vendor-defined Device Paths. A vendor must allocate
  408. a Vendor GUID for a Device Path. The Vendor GUID can then be used to define
  409. the contents on the n bytes that follow in the Vendor Device Path node.
  410. Members:
  411. Header - Stores the common device path header.
  412. Guid - Stores the vendor-defined GUID that defines the data that follows.
  413. The remainder of the structure data continues below this member.
  414. --*/
  415. typedef struct {
  416. EFI_DEVICE_PATH_PROTOCOL Header;
  417. EFI_GUID Guid;
  418. } PACKED VENDOR_DEVICE_PATH;
  419. /*++
  420. Structure Description:
  421. This structure defines a controller device path.
  422. Members:
  423. Header - Stores the common device path header.
  424. ControllerNumber - Stores the controller number.
  425. --*/
  426. typedef struct {
  427. EFI_DEVICE_PATH_PROTOCOL Header;
  428. UINT32 ControllerNumber;
  429. } PACKED CONTROLLER_DEVICE_PATH;
  430. /*++
  431. Structure Description:
  432. This structure defines an ACPI HID device path.
  433. Members:
  434. Header - Stores the common device path header.
  435. HID - Stores the device's PnP hardware ID in a numeric 32-bit compressed
  436. EISA-type ID. This value must match the corresponding _HID in the ACPI
  437. namespace.
  438. UID - Stores the unique ID that is required by ACPI if two devices have the
  439. same _HID. This value must also match the corresponding _UID/_HID pair
  440. in the ACPI namespace. Only the 32-bit numeric value type of _UID is
  441. supported. Thus, strings must not be used for the _UID in the ACPI
  442. namespace.
  443. --*/
  444. typedef struct {
  445. EFI_DEVICE_PATH_PROTOCOL Header;
  446. UINT32 HID;
  447. UINT32 UID;
  448. } PACKED ACPI_HID_DEVICE_PATH;
  449. /*++
  450. Structure Description:
  451. This structure defines an ACPI HID device path. At the end of this
  452. structure, there are optional variable length _HIDSTR, _UIDSTR, and _CIDSTR
  453. values.
  454. Members:
  455. Header - Stores the common device path header.
  456. HID - Stores the device's PnP hardware ID in a numeric 32-bit compressed
  457. EISA-type ID. This value must match the corresponding _HID in the ACPI
  458. namespace.
  459. UID - Stores the unique ID that is required by ACPI if two devices have the
  460. same _HID. This value must also match the corresponding _UID/_HID pair
  461. in the ACPI namespace. Only the 32-bit numeric value type of _UID is
  462. supported. Thus, strings must not be used for the _UID in the ACPI
  463. namespace.
  464. CID - Stores the device's compatible PnP hardware ID stored in a numeric
  465. 32-bit compressed EISA-type ID. This value must match at least one of
  466. the compatible device IDs returned by the corresponding _CID in the
  467. ACPI name space.
  468. --*/
  469. typedef struct {
  470. EFI_DEVICE_PATH_PROTOCOL Header;
  471. UINT32 HID;
  472. UINT32 UID;
  473. UINT32 CID;
  474. } PACKED ACPI_EXTENDED_HID_DEVICE_PATH;
  475. /*++
  476. Structure Description:
  477. This structure defines an ACPI _ADR device path. The _ADR device path is
  478. used to contain video output device attributes to support the Graphics
  479. Output Protocol. The device path can contain multiple _ADR entries if
  480. multiple video output devices are displaying the same output.
  481. Members:
  482. Header - Stores the common device path header.
  483. ADR - Stores the _ADR value. For video output devices the value of this
  484. field comes from Table B-2 of the ACPI 3.0 specification. At least one
  485. _ADR value is required. Additional ADR members may be immediately after
  486. this one.
  487. --*/
  488. typedef struct {
  489. EFI_DEVICE_PATH_PROTOCOL Header;
  490. UINT32 ADR;
  491. } PACKED ACPI_ADR_DEVICE_PATH;
  492. /*++
  493. Structure Description:
  494. This structure defines an ATAPI device path.
  495. Members:
  496. Header - Stores the common device path header.
  497. PrimarySecondary - Stores zero if this is the primary device, or one if
  498. this is the secondary device.
  499. SlaveMaster - Stores zero if this is the master, or one if this is the
  500. slave.
  501. Lun - Stores the Logical Unit Number.
  502. --*/
  503. typedef struct {
  504. EFI_DEVICE_PATH_PROTOCOL Header;
  505. UINT8 PrimarySecondary;
  506. UINT8 SlaveMaster;
  507. UINT16 Lun;
  508. } PACKED ATAPI_DEVICE_PATH;
  509. /*++
  510. Structure Description:
  511. This structure defines a SCSI device path.
  512. Members:
  513. Header - Stores the common device path header.
  514. Pun - Stores the target ID on the SCSI bus.
  515. Lun - Stores the Logical Unit Number.
  516. --*/
  517. typedef struct {
  518. EFI_DEVICE_PATH_PROTOCOL Header;
  519. UINT16 Pun;
  520. UINT16 Lun;
  521. } PACKED SCSI_DEVICE_PATH;
  522. /*++
  523. Structure Description:
  524. This structure defines a FibreChannel device path.
  525. Members:
  526. Header - Stores the common device path header.
  527. Reserved - Stores a value reserved for the future.
  528. WWN - Stores the World Wide Number.
  529. Lun - Stores the Logical Unit Number.
  530. --*/
  531. typedef struct {
  532. EFI_DEVICE_PATH_PROTOCOL Header;
  533. UINT32 Reserved;
  534. UINT64 WWN;
  535. UINT64 Lun;
  536. } PACKED FIBRECHANNEL_DEVICE_PATH;
  537. /*++
  538. Structure Description:
  539. This structure defines a fancier FibreChannel device path.
  540. Members:
  541. Header - Stores the common device path header.
  542. Reserved - Stores a value reserved for the future.
  543. WWN - Stores the 8-byte End Device Port Name.
  544. Lun - Stores the 8-byte Logical Unit Number.
  545. --*/
  546. typedef struct {
  547. EFI_DEVICE_PATH_PROTOCOL Header;
  548. UINT32 Reserved;
  549. UINT8 WWN[8];
  550. UINT8 Lun[8];
  551. } PACKED FIBRECHANNELEX_DEVICE_PATH;
  552. /*++
  553. Structure Description:
  554. This structure defines a 1394 device path.
  555. Members:
  556. Header - Stores the common device path header.
  557. Reserved - Stores a value reserved for the future.
  558. Guid - Stores the 1394 Global Unique ID.
  559. --*/
  560. typedef struct {
  561. EFI_DEVICE_PATH_PROTOCOL Header;
  562. UINT32 Reserved;
  563. UINT64 Guid;
  564. } PACKED F1394_DEVICE_PATH;
  565. /*++
  566. Structure Description:
  567. This structure defines a USB device path.
  568. Members:
  569. Header - Stores the common device path header.
  570. ParentPortNumber - Stores the USB Parent port number.
  571. InterfaceNumber - Stores the USB Interface number.
  572. --*/
  573. typedef struct {
  574. EFI_DEVICE_PATH_PROTOCOL Header;
  575. UINT8 ParentPortNumber;
  576. UINT8 InterfaceNumber;
  577. } PACKED USB_DEVICE_PATH;
  578. /*++
  579. Structure Description:
  580. This structure defines a USB class device path.
  581. Members:
  582. Header - Stores the common device path header.
  583. VendorId - Stores the vendor ID assigned by USB-IF. A value of 0xFFFF will
  584. match any Vendor ID.
  585. ProductId - Stores the product ID. A value of 0xFFFF will match any product
  586. ID.
  587. DeviceClass - Stores the class code assigned by USB-IF. A value of 0xFF
  588. will match any class code.
  589. DeviceSubClass - Stores the subclass code assigned by the USB-IF. A value
  590. of 0xFF will match any subclass code.
  591. DeviceProtocol - Stores the protocol code assigned by the USB-IF. A value
  592. of 0xFF will match any protocol code.
  593. --*/
  594. typedef struct {
  595. EFI_DEVICE_PATH_PROTOCOL Header;
  596. UINT16 VendorId;
  597. UINT16 ProductId;
  598. UINT8 DeviceClass;
  599. UINT8 DeviceSubClass;
  600. UINT8 DeviceProtocol;
  601. } PACKED USB_CLASS_DEVICE_PATH;
  602. /*++
  603. Structure Description:
  604. This structure defines a USB device path by its serial number. Immediately
  605. after this structure is a variable length of CHAR16s containing the last 64
  606. or fewer UTF-16 characters of the USB serial number. The length of the
  607. string is determined by the length field minus the offset of the serial
  608. number field (10).
  609. Members:
  610. Header - Stores the common device path header.
  611. InterfaceNumber - Stores the USB Interface number.
  612. VendorId - Stores the vendor ID assigned by USB-IF.
  613. ProductId - Stores the product ID.
  614. SerialNumber - Storse the last 64 or fewer UTF-16 characters of the USB
  615. serial number. The length of the string is determined by the length
  616. field minus the offset of the serial number field (10).
  617. --*/
  618. typedef struct {
  619. EFI_DEVICE_PATH_PROTOCOL Header;
  620. UINT16 InterfaceNumber;
  621. UINT16 VendorId;
  622. UINT16 ProductId;
  623. // CHAR16 SerialNumber[...];
  624. } PACKED USB_WWID_DEVICE_PATH;
  625. /*++
  626. Structure Description:
  627. This structure defines a logical unit device path.
  628. Members:
  629. Header - Stores the common device path header.
  630. Lun - Stores the logical unit number.
  631. --*/
  632. typedef struct {
  633. EFI_DEVICE_PATH_PROTOCOL Header;
  634. UINT8 Lun;
  635. } PACKED DEVICE_LOGICAL_UNIT_DEVICE_PATH;
  636. /*++
  637. Structure Description:
  638. This structure defines a SATA device path.
  639. Members:
  640. Header - Stores the common device path header.
  641. HBAPortNumber - Stores the HBA port number that facilitates the connection
  642. to the device or a port multiplier. The value 0xFFFF is reserved.
  643. PortMultiplierPortNumber - Stores the Port multiplier port number that
  644. facilitates the connection to the device. Bit 15 should be set if the
  645. device is directly connected to the HBA.
  646. Lun - Stores the logical unit number.
  647. --*/
  648. typedef struct {
  649. EFI_DEVICE_PATH_PROTOCOL Header;
  650. UINT16 HBAPortNumber;
  651. UINT16 PortMultiplierPortNumber;
  652. UINT16 Lun;
  653. } PACKED SATA_DEVICE_PATH;
  654. /*++
  655. Structure Description:
  656. This structure defines an I2O device path.
  657. Members:
  658. Header - Stores the common device path header.
  659. Tid - Stores the Target ID (TID) for a device.
  660. --*/
  661. typedef struct {
  662. EFI_DEVICE_PATH_PROTOCOL Header;
  663. UINT32 Tid;
  664. } PACKED I2O_DEVICE_PATH;
  665. /*++
  666. Structure Description:
  667. This structure defines an MAC Address device path.
  668. Members:
  669. Header - Stores the common device path header.
  670. MacAddress - Stores the MAC address for a network interface, padded with
  671. zeros.
  672. IfType - Stores the network interface type (ie. 802.3, FDDI).
  673. --*/
  674. typedef struct {
  675. EFI_DEVICE_PATH_PROTOCOL Header;
  676. EFI_MAC_ADDRESS MacAddress;
  677. UINT8 IfType;
  678. } PACKED MAC_ADDR_DEVICE_PATH;
  679. /*++
  680. Structure Description:
  681. This structure defines an IPv4 Address device path.
  682. Members:
  683. Header - Stores the common device path header.
  684. LocalIpAddress - Stores the local IP address.
  685. RemoteIpAddress - Stores the remote IP address.
  686. LocalPort - Stores the local port number.
  687. RemotePort - Stores the remote port number.
  688. Protocol - Stores the network protocol (ie. UDP, TCP).
  689. StaticIpAddress - Stores a boolean indicating whether the source IP
  690. address was assigned through DHCP (FALSE) or is statically bound (TRUE).
  691. GatewayIpAddress - Stores the gateway IP address.
  692. SubnetMask - Stores the subnet mask.
  693. --*/
  694. typedef struct {
  695. EFI_DEVICE_PATH_PROTOCOL Header;
  696. EFI_IPv4_ADDRESS LocalIpAddress;
  697. EFI_IPv4_ADDRESS RemoteIpAddress;
  698. UINT16 LocalPort;
  699. UINT16 RemotePort;
  700. UINT16 Protocol;
  701. BOOLEAN StaticIpAddress;
  702. EFI_IPv4_ADDRESS GatewayIpAddress;
  703. EFI_IPv4_ADDRESS SubnetMask;
  704. } PACKED IPv4_DEVICE_PATH;
  705. /*++
  706. Structure Description:
  707. This structure defines an IPv6 Address device path.
  708. Members:
  709. Header - Stores the common device path header.
  710. LocalIpAddress - Stores the local IP address.
  711. RemoteIpAddress - Stores the remote IP address.
  712. LocalPort - Stores the local port number.
  713. RemotePort - Stores the remote port number.
  714. Protocol - Stores the network protocol (ie. UDP, TCP).
  715. IpAddressOrigin - Stores a value indicating whether the source IP
  716. address was assigned through DHCP (0), is statically bound (1), or
  717. is assigned through IPv6 stateful configuration (2).
  718. PrefixLength - Stores the prefix length.
  719. GatewayIpAddress - Stores the gateway IP address.
  720. --*/
  721. typedef struct {
  722. EFI_DEVICE_PATH_PROTOCOL Header;
  723. EFI_IPv6_ADDRESS LocalIpAddress;
  724. EFI_IPv6_ADDRESS RemoteIpAddress;
  725. UINT16 LocalPort;
  726. UINT16 RemotePort;
  727. UINT16 Protocol;
  728. UINT8 IpAddressOrigin;
  729. UINT8 PrefixLength;
  730. EFI_IPv6_ADDRESS GatewayIpAddress;
  731. } PACKED IPv6_DEVICE_PATH;
  732. /*++
  733. Structure Description:
  734. This structure defines an InfiniBand device path.
  735. Members:
  736. Header - Stores the common device path header.
  737. ResourceFlags - Stores a bitfield of flags to help identify and manage the
  738. InfiniBand device path elements. Valid bits are:
  739. Bit 0 - IOC/Service (0b = IOC, 1b = Service).
  740. Bit 1 - Extend Boot Environment.
  741. Bit 2 - Console Protocol.
  742. Bit 3 - Storage Protocol.
  743. Bit 4 - Network Protocol.
  744. All other bits are reserved.
  745. PortGid - Stores the 128 bit Global identifier for the remote fabric port.
  746. ServiceId - Stores the 64-bit unique identifier to the remote IOC or
  747. server process. Interpretation of the field is specified by the
  748. resource flags (bit zero).
  749. TargetPortId - Stores the 64-bit persistent ID of the remote IOC port.
  750. DeviceId - Stores the 64-bit persistent ID of the remote device.
  751. --*/
  752. typedef struct {
  753. EFI_DEVICE_PATH_PROTOCOL Header;
  754. UINT32 ResourceFlags;
  755. UINT8 PortGid[16];
  756. UINT64 ServiceId;
  757. UINT64 TargetPortId;
  758. UINT64 DeviceId;
  759. } PACKED INFINIBAND_DEVICE_PATH;
  760. /*++
  761. Structure Description:
  762. This structure defines a UART device path.
  763. Members:
  764. Header - Stores the common device path header.
  765. Reserved - Stores a reserved value.
  766. BaudRate - Stores the baud rate setting for the UART. A value of 0 means
  767. the device's default baud rate will be used.
  768. DataBits - Storse the number of data bits for the UART. A value of 0 means
  769. the device's default number of data bits will be used.
  770. Parity - Storse the parity setting for the UART device. Valid values are:
  771. 0x00 - Default Parity.
  772. 0x01 - No Parity.
  773. 0x02 - Even Parity.
  774. 0x03 - Odd Parity.
  775. 0x04 - Mark Parity.
  776. 0x05 - Space Parity.
  777. StopBits - Stores the number of stop bits for the UART device. Valid values
  778. are:
  779. 0x00 - Default Stop Bits.
  780. 0x01 - 1 Stop Bit.
  781. 0x02 - 1.5 Stop Bits.
  782. 0x03 - 2 Stop Bits.
  783. --*/
  784. typedef struct {
  785. EFI_DEVICE_PATH_PROTOCOL Header;
  786. UINT32 Reserved;
  787. UINT64 BaudRate;
  788. UINT8 DataBits;
  789. UINT8 Parity;
  790. UINT8 StopBits;
  791. } PACKED UART_DEVICE_PATH;
  792. typedef VENDOR_DEVICE_PATH VENDOR_DEFINED_DEVICE_PATH;
  793. /*++
  794. Structure Description:
  795. This structure defines a UART flow control device path.
  796. Members:
  797. Header - Stores the common device path header.
  798. Guid - Stores the DEVICE_PATH_MESSAGING_UART_FLOW_CONTROL GUID.
  799. FlowControlMap - Stores the bitmap of supported flow control types. Valid
  800. values are:
  801. Bit 0 set indicates hardware flow control.
  802. Bit 1 set indicates Xon/Xoff flow control.
  803. All other bits are reserved and are clear.
  804. --*/
  805. typedef struct {
  806. EFI_DEVICE_PATH_PROTOCOL Header;
  807. EFI_GUID Guid;
  808. UINT32 FlowControlMap;
  809. } PACKED UART_FLOW_CONTROL_DEVICE_PATH;
  810. /*++
  811. Structure Description:
  812. This structure defines a Serial Attached SCSI (SAS) device path.
  813. Members:
  814. Header - Stores the common device path header.
  815. Guid - Stores the DEVICE_PATH_MESSAGING_SAS GUID.
  816. Reserved - Stores a value reserved for future use.
  817. SasAddress - Stores the SAS address for the Serial Attached SCSI target.
  818. Lun - Stores the SAS Logical Unit Number.
  819. DeviceTopology - Stores more information about the device and its
  820. interconnect.
  821. RelativeTargetPort - Stores the Relative Target Port (RTP).
  822. --*/
  823. typedef struct {
  824. EFI_DEVICE_PATH_PROTOCOL Header;
  825. EFI_GUID Guid;
  826. UINT32 Reserved;
  827. UINT64 SasAddress;
  828. UINT64 Lun;
  829. UINT16 DeviceTopology;
  830. UINT16 RelativeTargetPort;
  831. } PACKED SAS_DEVICE_PATH;
  832. /*++
  833. Structure Description:
  834. This structure defines a fancier Serial Attached SCSI (SAS) device path.
  835. Members:
  836. Header - Stores the common device path header.
  837. SasAddress - Stores the 8-byte SAS address for the Serial Attached SCSI
  838. target.
  839. Lun - Stores the 8-byte SAS Logical Unit Number.
  840. DeviceTopology - Stores more information about the device and its
  841. interconnect.
  842. RelativeTargetPort - Stores the Relative Target Port (RTP).
  843. --*/
  844. typedef struct {
  845. EFI_DEVICE_PATH_PROTOCOL Header;
  846. UINT8 SasAddress[8];
  847. UINT8 Lun[8];
  848. UINT16 DeviceTopology;
  849. UINT16 RelativeTargetPort;
  850. } PACKED SASEX_DEVICE_PATH;
  851. /*++
  852. Structure Description:
  853. This structure defines a NvmExpress Namespace device path.
  854. Members:
  855. Header - Stores the common device path header.
  856. NamespaceId - Stores the namespace identifier.
  857. NamespaceUuid - Stores the 64-bit namespace ID.
  858. --*/
  859. typedef struct {
  860. EFI_DEVICE_PATH_PROTOCOL Header;
  861. UINT32 NamespaceId;
  862. UINT64 NamespaceUuid;
  863. } PACKED NVME_NAMESPACE_DEVICE_PATH;
  864. /*++
  865. Structure Description:
  866. This structure defines an iSCSI device path. After this structure is the
  867. iSCSI target name.
  868. Members:
  869. Header - Stores the common device path header.
  870. NetworkProtocol - Stores the network protocol. 0 for TCP, 1 and beyond is
  871. reserved.
  872. LoginOption - Stores the iSCSI Login Options.
  873. Lun - Stores the iSCSI Logical Unit Number.
  874. TargetPortalGroupTag - Stores the iSCSI Target Portal group tag the
  875. initiator intends to establish a session with.
  876. TargetName - Stores the iSCSI target name. The length of the name is
  877. determined by subtracting the offset of this field from the length.
  878. --*/
  879. typedef struct {
  880. EFI_DEVICE_PATH_PROTOCOL Header;
  881. UINT16 NetworkProtocol;
  882. UINT16 LoginOption;
  883. UINT64 Lun;
  884. UINT16 TargetPortalGroupTag;
  885. // CHAR8 iSCSI Target Name.
  886. } PACKED ISCSI_DEVICE_PATH;
  887. /*++
  888. Structure Description:
  889. This structure defines a vLAN device path.
  890. Members:
  891. Header - Stores the common device path header.
  892. VlanId - Stores the VLAN identifier (0-4094).
  893. --*/
  894. typedef struct {
  895. EFI_DEVICE_PATH_PROTOCOL Header;
  896. UINT16 VlanId;
  897. } PACKED VLAN_DEVICE_PATH;
  898. /*++
  899. Structure Description:
  900. This structure defines a hard drive media device path, which is used to
  901. represent a partition on a hard drive.
  902. Members:
  903. Header - Stores the common device path header.
  904. PartitionNumber - Stores the entry in a partition table, starting with
  905. entry 1. Partition zero represents the entire device. Valid numbers for
  906. an MBR partition are 1 to 4, inclusive. Valid numers for a GPT
  907. partition are 1 to NumberOfPartitionEntries, inclusive.
  908. PartitionStart - Stores the starting LBA of the partition.
  909. PartitionSize - Stores the size of the partition in logical block units.
  910. Signature - Stores the partition signature. If the signature type is 0,
  911. this is filled with 16 zeros. If the signature type is 1, the MBR
  912. signature is stored in the first 4 bytes of this field, and all 12
  913. other bytes are filled with zeros. If the signature type is 2, this
  914. field contains a 16 byte signature.
  915. MBRType - Stores the partition format. Valid values are 1 for MBR style,
  916. and 2 for GUID Partition Table.
  917. SignatureType - Stores the type of disk signature. Valid values are:
  918. 0x00 - No Disk Signature.
  919. 0x01 - 32-bit signature from address 0x1b8 of the type 0x01 MBR.
  920. 0x02 - GUID signature.
  921. All other values are reserved.
  922. --*/
  923. typedef struct {
  924. EFI_DEVICE_PATH_PROTOCOL Header;
  925. UINT32 PartitionNumber;
  926. UINT64 PartitionStart;
  927. UINT64 PartitionSize;
  928. UINT8 Signature[16];
  929. UINT8 MBRType;
  930. UINT8 SignatureType;
  931. } PACKED HARDDRIVE_DEVICE_PATH;
  932. /*++
  933. Structure Description:
  934. This structure defines a CD-ROM Media Device Path, which is used to
  935. define a system partition on a CD-ROM.
  936. Members:
  937. Header - Stores the common device path header.
  938. BootEntry - Stores the boot entry number from the boot catalog. The
  939. initial/default entry is defined as zero.
  940. PartitionStart - Stores the starting RBA of the partition on the medium.
  941. CD-ROMs use Relative logical Block Addressing.
  942. PartitionSize - Stores the size of the partition in units of blocks (aka
  943. sectors).
  944. --*/
  945. typedef struct {
  946. EFI_DEVICE_PATH_PROTOCOL Header;
  947. UINT32 BootEntry;
  948. UINT64 PartitionStart;
  949. UINT64 PartitionSize;
  950. } PACKED CDROM_DEVICE_PATH;
  951. /*++
  952. Structure Description:
  953. This structure defines a file path.
  954. Members:
  955. Header - Stores the common device path header.
  956. PathName - Stores a NULL-terminated path string including directory and
  957. file names.
  958. --*/
  959. typedef struct {
  960. EFI_DEVICE_PATH_PROTOCOL Header;
  961. CHAR16 PathName[1];
  962. } PACKED FILEPATH_DEVICE_PATH;
  963. /*++
  964. Structure Description:
  965. This structure defines a Media Protocol device path. The Media Protocol
  966. Device Path is used to denote the protocol that is being used in a device
  967. path at the location of the path specified. Many protocols are inherent to
  968. the style of device path.
  969. Members:
  970. Header - Stores the common device path header.
  971. Protocol - Stores the GUID of the protocol in use.
  972. --*/
  973. typedef struct {
  974. EFI_DEVICE_PATH_PROTOCOL Header;
  975. EFI_GUID Protocol;
  976. } PACKED MEDIA_PROTOCOL_DEVICE_PATH;
  977. /*++
  978. Structure Description:
  979. This structure defines the firmware volume file path device path. This
  980. device path is used by systems implementing the UEFI PI Specification 1.0
  981. to describe a firmware file.
  982. Members:
  983. Header - Stores the common device path header.
  984. FvFileName - Stores the GUID of the file.
  985. --*/
  986. typedef struct {
  987. EFI_DEVICE_PATH_PROTOCOL Header;
  988. EFI_GUID FvFileName;
  989. } PACKED MEDIA_FW_VOL_FILEPATH_DEVICE_PATH;
  990. /*++
  991. Structure Description:
  992. This structure defines the firmware volume device path. This device path is
  993. used by systems implementing the UEFI PI Specification 1.0 to describe a
  994. firmware volume.
  995. Members:
  996. Header - Stores the common device path header.
  997. FvName - Stores the GUID of the firmware volume.
  998. --*/
  999. typedef struct {
  1000. EFI_DEVICE_PATH_PROTOCOL Header;
  1001. EFI_GUID FvName;
  1002. } PACKED MEDIA_FW_VOL_DEVICE_PATH;
  1003. /*++
  1004. Structure Description:
  1005. This structure defines the Media Relative Offset Range device path. This
  1006. device path type is used to describe the offset range of media relative.
  1007. Members:
  1008. Header - Stores the common device path header.
  1009. Reserved - Stores a reserved value.
  1010. StartingOffset - Stores the start offset.
  1011. EndingOffset - Stores the end offset.
  1012. --*/
  1013. typedef struct {
  1014. EFI_DEVICE_PATH_PROTOCOL Header;
  1015. UINT32 Reserved;
  1016. UINT64 StartingOffset;
  1017. UINT64 EndingOffset;
  1018. } PACKED MEDIA_RELATIVE_OFFSET_RANGE_DEVICE_PATH;
  1019. /*++
  1020. Structure Description:
  1021. This structure defines the BBS BBS device path. This Device Path is used to
  1022. describe the booting of non-EFI-aware operating systems.
  1023. Members:
  1024. Header - Stores the common device path header.
  1025. DeviceType - Stores the device type as defined by the BIOS Boot
  1026. Specification.
  1027. StatusFlag - Stores the status flags as defined by the Bios Boot
  1028. Specification.
  1029. String - Stores the null-terminated ASCII string that describes the boot
  1030. device to a user.
  1031. --*/
  1032. typedef struct {
  1033. EFI_DEVICE_PATH_PROTOCOL Header;
  1034. UINT16 DeviceType;
  1035. UINT16 StatusFlag;
  1036. CHAR8 String[1];
  1037. } PACKED BBS_BBS_DEVICE_PATH;
  1038. //
  1039. // Union of all possible Device Paths and pointers to Device Paths.
  1040. //
  1041. typedef union {
  1042. EFI_DEVICE_PATH_PROTOCOL DevPath;
  1043. PCI_DEVICE_PATH Pci;
  1044. PCCARD_DEVICE_PATH PcCard;
  1045. MEMMAP_DEVICE_PATH MemMap;
  1046. VENDOR_DEVICE_PATH Vendor;
  1047. CONTROLLER_DEVICE_PATH Controller;
  1048. ACPI_HID_DEVICE_PATH Acpi;
  1049. ACPI_EXTENDED_HID_DEVICE_PATH ExtendedAcpi;
  1050. ACPI_ADR_DEVICE_PATH AcpiAdr;
  1051. ATAPI_DEVICE_PATH Atapi;
  1052. SCSI_DEVICE_PATH Scsi;
  1053. ISCSI_DEVICE_PATH Iscsi;
  1054. FIBRECHANNEL_DEVICE_PATH FibreChannel;
  1055. FIBRECHANNELEX_DEVICE_PATH FibreChannelEx;
  1056. F1394_DEVICE_PATH F1394;
  1057. USB_DEVICE_PATH Usb;
  1058. SATA_DEVICE_PATH Sata;
  1059. USB_CLASS_DEVICE_PATH UsbClass;
  1060. USB_WWID_DEVICE_PATH UsbWwid;
  1061. DEVICE_LOGICAL_UNIT_DEVICE_PATH LogicUnit;
  1062. I2O_DEVICE_PATH I2O;
  1063. MAC_ADDR_DEVICE_PATH MacAddr;
  1064. IPv4_DEVICE_PATH Ipv4;
  1065. IPv6_DEVICE_PATH Ipv6;
  1066. VLAN_DEVICE_PATH Vlan;
  1067. INFINIBAND_DEVICE_PATH InfiniBand;
  1068. UART_DEVICE_PATH Uart;
  1069. UART_FLOW_CONTROL_DEVICE_PATH UartFlowControl;
  1070. SAS_DEVICE_PATH Sas;
  1071. SASEX_DEVICE_PATH SasEx;
  1072. NVME_NAMESPACE_DEVICE_PATH NvmeNamespace;
  1073. HARDDRIVE_DEVICE_PATH HardDrive;
  1074. CDROM_DEVICE_PATH CD;
  1075. FILEPATH_DEVICE_PATH FilePath;
  1076. MEDIA_PROTOCOL_DEVICE_PATH MediaProtocol;
  1077. MEDIA_FW_VOL_DEVICE_PATH FirmwareVolume;
  1078. MEDIA_FW_VOL_FILEPATH_DEVICE_PATH FirmwareFile;
  1079. MEDIA_RELATIVE_OFFSET_RANGE_DEVICE_PATH Offset;
  1080. BBS_BBS_DEVICE_PATH Bbs;
  1081. } PACKED EFI_DEV_PATH;
  1082. typedef union {
  1083. EFI_DEVICE_PATH_PROTOCOL *DevPath;
  1084. PCI_DEVICE_PATH *Pci;
  1085. PCCARD_DEVICE_PATH *PcCard;
  1086. MEMMAP_DEVICE_PATH *MemMap;
  1087. VENDOR_DEVICE_PATH *Vendor;
  1088. CONTROLLER_DEVICE_PATH *Controller;
  1089. ACPI_HID_DEVICE_PATH *Acpi;
  1090. ACPI_EXTENDED_HID_DEVICE_PATH *ExtendedAcpi;
  1091. ACPI_ADR_DEVICE_PATH *AcpiAdr;
  1092. ATAPI_DEVICE_PATH *Atapi;
  1093. SCSI_DEVICE_PATH *Scsi;
  1094. ISCSI_DEVICE_PATH *Iscsi;
  1095. FIBRECHANNEL_DEVICE_PATH *FibreChannel;
  1096. FIBRECHANNELEX_DEVICE_PATH *FibreChannelEx;
  1097. F1394_DEVICE_PATH *F1394;
  1098. USB_DEVICE_PATH *Usb;
  1099. SATA_DEVICE_PATH *Sata;
  1100. USB_CLASS_DEVICE_PATH *UsbClass;
  1101. USB_WWID_DEVICE_PATH *UsbWwid;
  1102. DEVICE_LOGICAL_UNIT_DEVICE_PATH *LogicUnit;
  1103. I2O_DEVICE_PATH *I2O;
  1104. MAC_ADDR_DEVICE_PATH *MacAddr;
  1105. IPv4_DEVICE_PATH *Ipv4;
  1106. IPv6_DEVICE_PATH *Ipv6;
  1107. VLAN_DEVICE_PATH *Vlan;
  1108. INFINIBAND_DEVICE_PATH *InfiniBand;
  1109. UART_DEVICE_PATH *Uart;
  1110. UART_FLOW_CONTROL_DEVICE_PATH *UartFlowControl;
  1111. SAS_DEVICE_PATH *Sas;
  1112. SASEX_DEVICE_PATH *SasEx;
  1113. NVME_NAMESPACE_DEVICE_PATH *NvmeNamespace;
  1114. HARDDRIVE_DEVICE_PATH *HardDrive;
  1115. CDROM_DEVICE_PATH *CD;
  1116. FILEPATH_DEVICE_PATH *FilePath;
  1117. MEDIA_PROTOCOL_DEVICE_PATH *MediaProtocol;
  1118. MEDIA_FW_VOL_DEVICE_PATH *FirmwareVolume;
  1119. MEDIA_FW_VOL_FILEPATH_DEVICE_PATH *FirmwareFile;
  1120. MEDIA_RELATIVE_OFFSET_RANGE_DEVICE_PATH *Offset;
  1121. BBS_BBS_DEVICE_PATH *Bbs;
  1122. UINT8 *Raw;
  1123. } PACKED EFI_DEV_PATH_PTR;
  1124. #pragma pack(pop)
  1125. //
  1126. // -------------------------------------------------------------------- Globals
  1127. //
  1128. //
  1129. // -------------------------------------------------------- Function Prototypes
  1130. //