devpath.h 39 KB

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