OpalDriver.h 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616
  1. /** @file
  2. Values defined and used by the Opal UEFI Driver.
  3. Copyright (c) 2016 - 2019, Intel Corporation. All rights reserved.<BR>
  4. SPDX-License-Identifier: BSD-2-Clause-Patent
  5. **/
  6. #ifndef _OPAL_DRIVER_H_
  7. #define _OPAL_DRIVER_H_
  8. #include <PiDxe.h>
  9. #include <IndustryStandard/Pci.h>
  10. #include <Protocol/PciIo.h>
  11. #include <Protocol/SmmCommunication.h>
  12. #include <Protocol/BlockIo.h>
  13. #include <Protocol/LoadedImage.h>
  14. #include <Protocol/DevicePath.h>
  15. #include <Protocol/DevicePathToText.h>
  16. #include <Protocol/StorageSecurityCommand.h>
  17. #include <Guid/EventGroup.h>
  18. #include <Guid/S3StorageDeviceInitList.h>
  19. #include <Library/UefiLib.h>
  20. #include <Library/UefiBootServicesTableLib.h>
  21. #include <Library/UefiRuntimeServicesTableLib.h>
  22. #include <Library/DxeServicesTableLib.h>
  23. #include <Library/BaseMemoryLib.h>
  24. #include <Library/MemoryAllocationLib.h>
  25. #include <Library/BaseLib.h>
  26. #include <Library/PrintLib.h>
  27. #include <Library/DebugLib.h>
  28. #include <Library/DevicePathLib.h>
  29. #include <Library/HiiLib.h>
  30. #include <Library/UefiHiiServicesLib.h>
  31. #include <Library/PciLib.h>
  32. #include <Library/LockBoxLib.h>
  33. #include <Library/TcgStorageOpalLib.h>
  34. #include <Library/Tcg2PhysicalPresenceLib.h>
  35. #include "OpalPasswordCommon.h"
  36. #include "OpalHiiFormValues.h"
  37. #define EFI_DRIVER_NAME_UNICODE L"1.0 UEFI Opal Driver"
  38. // UEFI 2.1
  39. #define LANGUAGE_RFC_3066_ENGLISH ((CHAR8*)"en")
  40. // UEFI/EFI < 2.1
  41. #define LANGUAGE_ISO_639_2_ENGLISH ((CHAR8*)"eng")
  42. #define CONCAT_(x, y) x ## y
  43. #define CONCAT(x, y) CONCAT_(x, y)
  44. #define UNICODE_STR(x) CONCAT( L, x )
  45. extern EFI_DRIVER_BINDING_PROTOCOL gOpalDriverBinding;
  46. extern EFI_COMPONENT_NAME_PROTOCOL gOpalComponentName;
  47. extern EFI_COMPONENT_NAME2_PROTOCOL gOpalComponentName2;
  48. #define OPAL_MSID_LENGHT 128
  49. #define MAX_PASSWORD_TRY_COUNT 5
  50. // PSID Length
  51. #define PSID_CHARACTER_LENGTH 0x20
  52. #define MAX_PSID_TRY_COUNT 5
  53. //
  54. // The max timeout value assume the user can wait for the revert action. The unit of this macro is second.
  55. // If the revert time value bigger than this one, driver needs to popup a dialog to let user confirm the
  56. // revert action.
  57. //
  58. #define MAX_ACCEPTABLE_REVERTING_TIME 10
  59. #pragma pack(1)
  60. //
  61. // Structure that is used to represent the available actions for an OpalDisk.
  62. // The data can then be utilized to expose/hide certain actions available to an end user
  63. // by the consumer of this library.
  64. //
  65. typedef struct {
  66. //
  67. // Indicates if the disk can support PSID Revert action. should verify disk supports PSID authority
  68. //
  69. UINT16 PsidRevert : 1;
  70. //
  71. // Indicates if the disk can support Revert action
  72. //
  73. UINT16 Revert : 1;
  74. //
  75. // Indicates if the user must keep data for revert action. It is true if no media encryption is supported.
  76. //
  77. UINT16 RevertKeepDataForced : 1;
  78. //
  79. // Indicates if the disk can support set Admin password
  80. //
  81. UINT16 AdminPass : 1;
  82. //
  83. // Indicates if the disk can support set User password. This action requires that a user
  84. // password is first enabled.
  85. //
  86. UINT16 UserPass : 1;
  87. //
  88. // Indicates if unlock action is available. Requires disk to be currently locked.
  89. //
  90. UINT16 Unlock : 1;
  91. //
  92. // Indicates if Secure Erase action is available. Action requires admin credentials and media encryption support.
  93. //
  94. UINT16 SecureErase : 1;
  95. //
  96. // Indicates if Disable User action is available. Action requires admin credentials.
  97. //
  98. UINT16 DisableUser : 1;
  99. } OPAL_DISK_ACTIONS;
  100. //
  101. // Structure that is used to represent an OPAL_DISK.
  102. //
  103. typedef struct {
  104. UINT32 MsidLength; // Byte length of MSID Pin for device
  105. UINT8 Msid[OPAL_MSID_LENGHT]; // MSID Pin for device
  106. EFI_STORAGE_SECURITY_COMMAND_PROTOCOL *Sscp;
  107. UINT32 MediaId; // MediaId is used by Ssc Protocol.
  108. EFI_DEVICE_PATH_PROTOCOL *OpalDevicePath;
  109. UINT16 OpalBaseComId; // Opal SSC 1 base com id.
  110. OPAL_OWNER_SHIP Owner;
  111. OPAL_DISK_SUPPORT_ATTRIBUTE SupportedAttributes;
  112. TCG_LOCKING_FEATURE_DESCRIPTOR LockingFeature; // Locking Feature Descriptor retrieved from performing a Level 0 Discovery
  113. UINT8 PasswordLength;
  114. UINT8 Password[OPAL_MAX_PASSWORD_SIZE];
  115. UINT32 EstimateTimeCost;
  116. BOOLEAN SentBlockSID; // Check whether BlockSid command has been sent.
  117. } OPAL_DISK;
  118. //
  119. // Device with block IO protocol
  120. //
  121. typedef struct _OPAL_DRIVER_DEVICE OPAL_DRIVER_DEVICE;
  122. struct _OPAL_DRIVER_DEVICE {
  123. OPAL_DRIVER_DEVICE *Next; ///< Linked list pointer
  124. EFI_HANDLE Handle; ///< Device handle
  125. OPAL_DISK OpalDisk; ///< User context
  126. CHAR16 *Name16; ///< Allocated/freed by UEFI Filter Driver at device creation/removal
  127. CHAR8 *NameZ; ///< Allocated/freed by UEFI Filter Driver at device creation/removal
  128. UINT32 MediaId; ///< Required parameter for EFI_STORAGE_SECURITY_COMMAND_PROTOCOL, from BLOCK_IO_MEDIA
  129. EFI_STORAGE_SECURITY_COMMAND_PROTOCOL *Sscp; /// Device protocols consumed
  130. EFI_DEVICE_PATH_PROTOCOL *OpalDevicePath;
  131. };
  132. //
  133. // Opal Driver UEFI Driver Model
  134. //
  135. typedef struct {
  136. EFI_HANDLE Handle; ///< Driver image handle
  137. OPAL_DRIVER_DEVICE *DeviceList; ///< Linked list of controllers owned by this Driver
  138. } OPAL_DRIVER;
  139. #pragma pack()
  140. //
  141. // Retrieves a OPAL_DRIVER_DEVICE based on the pointer to its StorageSecurity protocol.
  142. //
  143. #define DRIVER_DEVICE_FROM_OPALDISK(OpalDiskPointer) (OPAL_DRIVER_DEVICE*)(BASE_CR(OpalDiskPointer, OPAL_DRIVER_DEVICE, OpalDisk))
  144. /**
  145. Get devcie list info.
  146. @retval return the device list pointer.
  147. **/
  148. OPAL_DRIVER_DEVICE*
  149. OpalDriverGetDeviceList(
  150. VOID
  151. );
  152. /**
  153. Get devcie name through the component name protocol.
  154. @param[in] Dev The device which need to get name.
  155. @retval TRUE Find the name for this device.
  156. @retval FALSE Not found the name for this device.
  157. **/
  158. BOOLEAN
  159. OpalDriverGetDriverDeviceName(
  160. OPAL_DRIVER_DEVICE *Dev
  161. );
  162. /**
  163. Get current device count.
  164. @retval return the current created device count.
  165. **/
  166. UINT8
  167. GetDeviceCount (
  168. VOID
  169. );
  170. /**
  171. Update password for the Opal disk.
  172. @param[in, out] OpalDisk The disk to update password.
  173. @param[in] Password The input password.
  174. @param[in] PasswordLength The input password length.
  175. **/
  176. VOID
  177. OpalSupportUpdatePassword (
  178. IN OUT OPAL_DISK *OpalDisk,
  179. IN VOID *Password,
  180. IN UINT32 PasswordLength
  181. );
  182. /**
  183. The function performs determines the available actions for the OPAL_DISK provided.
  184. @param[in] SupportedAttributes The support attribute for the device.
  185. @param[in] LockingFeature The locking status for the device.
  186. @param[in] OwnerShip The ownership for the device.
  187. @param[out] AvalDiskActions Pointer to fill-out with appropriate disk actions.
  188. **/
  189. TCG_RESULT
  190. EFIAPI
  191. OpalSupportGetAvailableActions(
  192. IN OPAL_DISK_SUPPORT_ATTRIBUTE *SupportedAttributes,
  193. IN TCG_LOCKING_FEATURE_DESCRIPTOR *LockingFeature,
  194. IN UINT16 OwnerShip,
  195. OUT OPAL_DISK_ACTIONS *AvalDiskActions
  196. );
  197. /**
  198. Enable Opal Feature for the input device.
  199. @param[in] Session The opal session for the opal device.
  200. @param[in] Msid Msid
  201. @param[in] MsidLength Msid Length
  202. @param[in] Password Admin password
  203. @param[in] PassLength Length of password in bytes
  204. **/
  205. TCG_RESULT
  206. EFIAPI
  207. OpalSupportEnableOpalFeature (
  208. IN OPAL_SESSION *Session,
  209. IN VOID *Msid,
  210. IN UINT32 MsidLength,
  211. IN VOID *Password,
  212. IN UINT32 PassLength
  213. );
  214. /**
  215. Unloads UEFI Driver. Very useful for debugging and testing.
  216. @param ImageHandle Image handle this driver.
  217. @retval EFI_SUCCESS This function always complete successfully.
  218. @retval EFI_INVALID_PARAMETER The input ImageHandle is not valid.
  219. **/
  220. EFI_STATUS
  221. EFIAPI
  222. EfiDriverUnload(
  223. EFI_HANDLE ImageHandle
  224. );
  225. /**
  226. Test to see if this driver supports Controller.
  227. @param This Protocol instance pointer.
  228. @param ControllerHandle Handle of device to test
  229. @param RemainingDevicePath Optional parameter use to pick a specific child
  230. device to start.
  231. @retval EFI_SUCCESS This driver supports this device.
  232. @retval EFI_ALREADY_STARTED This driver is already running on this device.
  233. @retval other This driver does not support this device.
  234. **/
  235. EFI_STATUS
  236. EFIAPI
  237. OpalEfiDriverBindingSupported(
  238. EFI_DRIVER_BINDING_PROTOCOL* This,
  239. EFI_HANDLE Controller,
  240. EFI_DEVICE_PATH_PROTOCOL* RemainingDevicePath
  241. );
  242. /**
  243. Enables Opal Management on a supported device if available.
  244. The start function is designed to be called after the Opal UEFI Driver has confirmed the
  245. "controller", which is a child handle, contains the EF_STORAGE_SECURITY_COMMAND protocols.
  246. This function will complete the other necessary checks, such as verifying the device supports
  247. the correct version of Opal. Upon verification, it will add the device to the
  248. Opal HII list in order to expose Opal managmeent options.
  249. @param[in] This A pointer to the EFI_DRIVER_BINDING_PROTOCOL instance.
  250. @param[in] ControllerHandle The handle of the controller to start. This handle
  251. must support a protocol interface that supplies
  252. an I/O abstraction to the driver.
  253. @param[in] RemainingDevicePath A pointer to the remaining portion of a device path. This
  254. parameter is ignored by device drivers, and is optional for bus
  255. drivers. For a bus driver, if this parameter is NULL, then handles
  256. for all the children of Controller are created by this driver.
  257. If this parameter is not NULL and the first Device Path Node is
  258. not the End of Device Path Node, then only the handle for the
  259. child device specified by the first Device Path Node of
  260. RemainingDevicePath is created by this driver.
  261. If the first Device Path Node of RemainingDevicePath is
  262. the End of Device Path Node, no child handle is created by this
  263. driver.
  264. @retval EFI_SUCCESS Opal management was enabled.
  265. @retval EFI_DEVICE_ERROR The device could not be started due to a device error.Currently not implemented.
  266. @retval EFI_OUT_OF_RESOURCES The request could not be completed due to a lack of resources.
  267. @retval Others The driver failed to start the device.
  268. **/
  269. EFI_STATUS
  270. EFIAPI
  271. OpalEfiDriverBindingStart(
  272. EFI_DRIVER_BINDING_PROTOCOL* This,
  273. EFI_HANDLE Controller,
  274. EFI_DEVICE_PATH_PROTOCOL* RemainingDevicePath
  275. );
  276. /**
  277. Stop this driver on Controller.
  278. @param This Protocol instance pointer.
  279. @param Controller Handle of device to stop driver on
  280. @param NumberOfChildren Number of Handles in ChildHandleBuffer. If number of
  281. children is zero stop the entire bus driver.
  282. @param ChildHandleBuffer List of Child Handles to Stop.
  283. @retval EFI_SUCCESS This driver is removed Controller.
  284. @retval other This driver could not be removed from this device.
  285. **/
  286. EFI_STATUS
  287. EFIAPI
  288. OpalEfiDriverBindingStop(
  289. EFI_DRIVER_BINDING_PROTOCOL* This,
  290. EFI_HANDLE Controller,
  291. UINTN NumberOfChildren,
  292. EFI_HANDLE* ChildHandleBuffer
  293. );
  294. /**
  295. Retrieves a Unicode string that is the user readable name of the driver.
  296. This function retrieves the user readable name of a driver in the form of a
  297. Unicode string. If the driver specified by This has a user readable name in
  298. the language specified by Language, then a pointer to the driver name is
  299. returned in DriverName, and EFI_SUCCESS is returned. If the driver specified
  300. by This does not support the language specified by Language,
  301. then EFI_UNSUPPORTED is returned.
  302. @param This[in] A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or
  303. EFI_COMPONENT_NAME_PROTOCOL instance.
  304. @param Language[in] A pointer to a Null-terminated ASCII string
  305. array indicating the language. This is the
  306. language of the driver name that the caller is
  307. requesting, and it must match one of the
  308. languages specified in SupportedLanguages. The
  309. number of languages supported by a driver is up
  310. to the driver writer. Language is specified
  311. in RFC 4646 or ISO 639-2 language code format.
  312. @param DriverName[out] A pointer to the Unicode string to return.
  313. This Unicode string is the name of the
  314. driver specified by This in the language
  315. specified by Language.
  316. @retval EFI_SUCCESS The Unicode string for the Driver specified by
  317. This and the language specified by Language was
  318. returned in DriverName.
  319. @retval EFI_INVALID_PARAMETER Language is NULL.
  320. @retval EFI_INVALID_PARAMETER DriverName is NULL.
  321. @retval EFI_UNSUPPORTED The driver specified by This does not support
  322. the language specified by Language.
  323. **/
  324. EFI_STATUS
  325. EFIAPI
  326. OpalEfiDriverComponentNameGetDriverName(
  327. EFI_COMPONENT_NAME_PROTOCOL* This,
  328. CHAR8* Language,
  329. CHAR16** DriverName
  330. );
  331. /**
  332. Retrieves a Unicode string that is the user readable name of the controller
  333. that is being managed by a driver.
  334. This function retrieves the user readable name of the controller specified by
  335. ControllerHandle and ChildHandle in the form of a Unicode string. If the
  336. driver specified by This has a user readable name in the language specified by
  337. Language, then a pointer to the controller name is returned in ControllerName,
  338. and EFI_SUCCESS is returned. If the driver specified by This is not currently
  339. managing the controller specified by ControllerHandle and ChildHandle,
  340. then EFI_UNSUPPORTED is returned. If the driver specified by This does not
  341. support the language specified by Language, then EFI_UNSUPPORTED is returned.
  342. @param This[in] A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or
  343. EFI_COMPONENT_NAME_PROTOCOL instance.
  344. @param ControllerHandle[in] The handle of a controller that the driver
  345. specified by This is managing. This handle
  346. specifies the controller whose name is to be
  347. returned.
  348. @param ChildHandle[in] The handle of the child controller to retrieve
  349. the name of. This is an optional parameter that
  350. may be NULL. It will be NULL for device
  351. drivers. It will also be NULL for a bus drivers
  352. that wish to retrieve the name of the bus
  353. controller. It will not be NULL for a bus
  354. driver that wishes to retrieve the name of a
  355. child controller.
  356. @param Language[in] A pointer to a Null-terminated ASCII string
  357. array indicating the language. This is the
  358. language of the driver name that the caller is
  359. requesting, and it must match one of the
  360. languages specified in SupportedLanguages. The
  361. number of languages supported by a driver is up
  362. to the driver writer. Language is specified in
  363. RFC 4646 or ISO 639-2 language code format.
  364. @param ControllerName[out] A pointer to the Unicode string to return.
  365. This Unicode string is the name of the
  366. controller specified by ControllerHandle and
  367. ChildHandle in the language specified by
  368. Language from the point of view of the driver
  369. specified by This.
  370. @retval EFI_SUCCESS The Unicode string for the user readable name in
  371. the language specified by Language for the
  372. driver specified by This was returned in
  373. DriverName.
  374. @retval EFI_INVALID_PARAMETER ControllerHandle is NULL.
  375. @retval EFI_INVALID_PARAMETER ChildHandle is not NULL and it is not a valid
  376. EFI_HANDLE.
  377. @retval EFI_INVALID_PARAMETER Language is NULL.
  378. @retval EFI_INVALID_PARAMETER ControllerName is NULL.
  379. @retval EFI_UNSUPPORTED The driver specified by This is not currently
  380. managing the controller specified by
  381. ControllerHandle and ChildHandle.
  382. @retval EFI_UNSUPPORTED The driver specified by This does not support
  383. the language specified by Language.
  384. **/
  385. EFI_STATUS
  386. EFIAPI
  387. OpalEfiDriverComponentNameGetControllerName(
  388. EFI_COMPONENT_NAME_PROTOCOL* This,
  389. EFI_HANDLE ControllerHandle,
  390. EFI_HANDLE ChildHandle,
  391. CHAR8* Language,
  392. CHAR16** ControllerName
  393. );
  394. /**
  395. Retrieves a Unicode string that is the user readable name of the driver.
  396. This function retrieves the user readable name of a driver in the form of a
  397. Unicode string. If the driver specified by This has a user readable name in
  398. the language specified by Language, then a pointer to the driver name is
  399. returned in DriverName, and EFI_SUCCESS is returned. If the driver specified
  400. by This does not support the language specified by Language,
  401. then EFI_UNSUPPORTED is returned.
  402. @param This[in] A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or
  403. EFI_COMPONENT_NAME_PROTOCOL instance.
  404. @param Language[in] A pointer to a Null-terminated ASCII string
  405. array indicating the language. This is the
  406. language of the driver name that the caller is
  407. requesting, and it must match one of the
  408. languages specified in SupportedLanguages. The
  409. number of languages supported by a driver is up
  410. to the driver writer. Language is specified
  411. in RFC 4646 or ISO 639-2 language code format.
  412. @param DriverName[out] A pointer to the Unicode string to return.
  413. This Unicode string is the name of the
  414. driver specified by This in the language
  415. specified by Language.
  416. @retval EFI_SUCCESS The Unicode string for the Driver specified by
  417. This and the language specified by Language was
  418. returned in DriverName.
  419. @retval EFI_INVALID_PARAMETER Language is NULL.
  420. @retval EFI_INVALID_PARAMETER DriverName is NULL.
  421. @retval EFI_UNSUPPORTED The driver specified by This does not support
  422. the language specified by Language.
  423. **/
  424. EFI_STATUS
  425. EFIAPI
  426. OpalEfiDriverComponentName2GetDriverName(
  427. EFI_COMPONENT_NAME2_PROTOCOL* This,
  428. CHAR8* Language,
  429. CHAR16** DriverName
  430. );
  431. /**
  432. Retrieves a Unicode string that is the user readable name of the controller
  433. that is being managed by a driver.
  434. This function retrieves the user readable name of the controller specified by
  435. ControllerHandle and ChildHandle in the form of a Unicode string. If the
  436. driver specified by This has a user readable name in the language specified by
  437. Language, then a pointer to the controller name is returned in ControllerName,
  438. and EFI_SUCCESS is returned. If the driver specified by This is not currently
  439. managing the controller specified by ControllerHandle and ChildHandle,
  440. then EFI_UNSUPPORTED is returned. If the driver specified by This does not
  441. support the language specified by Language, then EFI_UNSUPPORTED is returned.
  442. @param This[in] A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or
  443. EFI_COMPONENT_NAME_PROTOCOL instance.
  444. @param ControllerHandle[in] The handle of a controller that the driver
  445. specified by This is managing. This handle
  446. specifies the controller whose name is to be
  447. returned.
  448. @param ChildHandle[in] The handle of the child controller to retrieve
  449. the name of. This is an optional parameter that
  450. may be NULL. It will be NULL for device
  451. drivers. It will also be NULL for a bus drivers
  452. that wish to retrieve the name of the bus
  453. controller. It will not be NULL for a bus
  454. driver that wishes to retrieve the name of a
  455. child controller.
  456. @param Language[in] A pointer to a Null-terminated ASCII string
  457. array indicating the language. This is the
  458. language of the driver name that the caller is
  459. requesting, and it must match one of the
  460. languages specified in SupportedLanguages. The
  461. number of languages supported by a driver is up
  462. to the driver writer. Language is specified in
  463. RFC 4646 or ISO 639-2 language code format.
  464. @param ControllerName[out] A pointer to the Unicode string to return.
  465. This Unicode string is the name of the
  466. controller specified by ControllerHandle and
  467. ChildHandle in the language specified by
  468. Language from the point of view of the driver
  469. specified by This.
  470. @retval EFI_SUCCESS The Unicode string for the user readable name in
  471. the language specified by Language for the
  472. driver specified by This was returned in
  473. DriverName.
  474. @retval EFI_INVALID_PARAMETER ControllerHandle is NULL.
  475. @retval EFI_INVALID_PARAMETER ChildHandle is not NULL and it is not a valid
  476. EFI_HANDLE.
  477. @retval EFI_INVALID_PARAMETER Language is NULL.
  478. @retval EFI_INVALID_PARAMETER ControllerName is NULL.
  479. @retval EFI_UNSUPPORTED The driver specified by This is not currently
  480. managing the controller specified by
  481. ControllerHandle and ChildHandle.
  482. @retval EFI_UNSUPPORTED The driver specified by This does not support
  483. the language specified by Language.
  484. **/
  485. EFI_STATUS
  486. EFIAPI
  487. OpalEfiDriverComponentName2GetControllerName(
  488. EFI_COMPONENT_NAME2_PROTOCOL* This,
  489. EFI_HANDLE ControllerHandle,
  490. EFI_HANDLE ChildHandle,
  491. CHAR8* Language,
  492. CHAR16** ControllerName
  493. );
  494. #endif //_OPAL_DRIVER_H_