@@ -13,6 +13,8 @@ use core::fmt::{self, Debug, Display, Formatter};
13
13
use core:: { ptr, slice} ;
14
14
use uefi_raw:: protocol:: driver:: ComponentName2Protocol ;
15
15
16
+ /// Component Name1 [`Protocol`].
17
+ ///
16
18
/// Protocol that provides human-readable names for a driver and for each of the
17
19
/// controllers that the driver is managing.
18
20
///
@@ -27,6 +29,7 @@ use uefi_raw::protocol::driver::ComponentName2Protocol;
27
29
///
28
30
/// [ISO 639-2]: https://en.wikipedia.org/wiki/List_of_ISO_639-2_codes
29
31
/// [RFC 4646]: https://www.rfc-editor.org/rfc/rfc4646
32
+ /// [`Protocol`]: uefi::proto::Protocol
30
33
#[ deprecated = "deprecated in UEFI 2.1; use ComponentName2 where possible" ]
31
34
#[ unsafe_protocol( ComponentName2Protocol :: DEPRECATED_COMPONENT_NAME_GUID ) ]
32
35
#[ derive( Debug ) ]
@@ -87,6 +90,8 @@ impl ComponentName1 {
87
90
}
88
91
}
89
92
93
+ /// Component Name2 [`Protocol`].
94
+ ///
90
95
/// Protocol that provides human-readable names for a driver and for each of the
91
96
/// controllers that the driver is managing.
92
97
///
@@ -101,6 +106,7 @@ impl ComponentName1 {
101
106
///
102
107
/// [ISO 639-2]: https://en.wikipedia.org/wiki/List_of_ISO_639-2_codes
103
108
/// [RFC 4646]: https://www.rfc-editor.org/rfc/rfc4646
109
+ /// [`Protocol`]: uefi::proto::Protocol
104
110
#[ unsafe_protocol( ComponentName2Protocol :: GUID ) ]
105
111
#[ derive( Debug ) ]
106
112
#[ repr( transparent) ]
0 commit comments