Changeset 99404 in vbox for trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/Dhcp6Dxe/ComponentName.c
- Timestamp:
- Apr 14, 2023 3:17:44 PM (22 months ago)
- Location:
- trunk/src/VBox/Devices/EFI/FirmwareNew
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/FirmwareNew
-
Property svn:mergeinfo
changed from (toggle deleted branches)
to (toggle deleted branches)/vendor/edk2/current 103735-103757,103769-103776,129194-145445 /vendor/edk2/current 103735-103757,103769-103776,129194-156846
-
Property svn:mergeinfo
changed from (toggle deleted branches)
-
trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/Dhcp6Dxe/ComponentName.c
r80721 r99404 9 9 10 10 #include "Dhcp6Impl.h" 11 12 11 13 12 /** … … 58 57 ); 59 58 60 61 59 /** 62 60 Retrieves a Unicode string that is the user-readable name of the controller … … 130 128 EFIAPI 131 129 Dhcp6ComponentNameGetControllerName ( 132 IN EFI_COMPONENT_NAME_PROTOCOL 133 IN EFI_HANDLE 134 IN EFI_HANDLE 135 IN CHAR8 136 OUT CHAR16 130 IN EFI_COMPONENT_NAME_PROTOCOL *This, 131 IN EFI_HANDLE ControllerHandle, 132 IN EFI_HANDLE ChildHandle OPTIONAL, 133 IN CHAR8 *Language, 134 OUT CHAR16 **ControllerName 137 135 ); 138 139 136 140 137 // 141 138 // EFI Component Name Protocol 142 139 // 143 GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME_PROTOCOL 140 GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME_PROTOCOL gDhcp6ComponentName = { 144 141 Dhcp6ComponentNameGetDriverName, 145 142 Dhcp6ComponentNameGetControllerName, … … 150 147 // EFI Component Name 2 Protocol 151 148 // 152 GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME2_PROTOCOL 153 (EFI_COMPONENT_NAME2_GET_DRIVER_NAME) 154 (EFI_COMPONENT_NAME2_GET_CONTROLLER_NAME) 149 GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME2_PROTOCOL gDhcp6ComponentName2 = { 150 (EFI_COMPONENT_NAME2_GET_DRIVER_NAME)Dhcp6ComponentNameGetDriverName, 151 (EFI_COMPONENT_NAME2_GET_CONTROLLER_NAME)Dhcp6ComponentNameGetControllerName, 155 152 "en" 156 153 }; 157 154 158 GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE 155 GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mDhcp6DriverNameTable[] = { 159 156 { 160 157 "eng;en", … … 167 164 }; 168 165 169 GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE 170 171 CHAR16 *mDhcp6ControllerName[] = {166 GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE *gDhcp6ControllerNameTable = NULL; 167 168 CHAR16 *mDhcp6ControllerName[] = { 172 169 L"DHCPv6 (State=0, Init)", 173 170 L"DHCPv6 (State=1, Selecting)", … … 249 246 EFI_STATUS 250 247 UpdateName ( 251 IN EFI_DHCP6_PROTOCOL 248 IN EFI_DHCP6_PROTOCOL *Dhcp6 252 249 ) 253 250 { 254 EFI_STATUS 255 EFI_DHCP6_MODE_DATA 256 CHAR16 251 EFI_STATUS Status; 252 EFI_DHCP6_MODE_DATA Dhcp6ModeData; 253 CHAR16 *HandleName; 257 254 258 255 if (Dhcp6 == NULL) { … … 279 276 return EFI_DEVICE_ERROR; 280 277 } 278 281 279 HandleName = mDhcp6ControllerName[Dhcp6ModeData.Ia->State]; 282 280 } … … 285 283 FreePool (Dhcp6ModeData.Ia); 286 284 } 285 287 286 if (Dhcp6ModeData.ClientId != NULL) { 288 287 FreePool (Dhcp6ModeData.ClientId); … … 380 379 EFIAPI 381 380 Dhcp6ComponentNameGetControllerName ( 382 IN EFI_COMPONENT_NAME_PROTOCOL 383 IN EFI_HANDLE 384 IN EFI_HANDLE 385 IN CHAR8 386 OUT CHAR16 381 IN EFI_COMPONENT_NAME_PROTOCOL *This, 382 IN EFI_HANDLE ControllerHandle, 383 IN EFI_HANDLE ChildHandle OPTIONAL, 384 IN CHAR8 *Language, 385 OUT CHAR16 **ControllerName 387 386 ) 388 387 { 389 EFI_STATUS 390 EFI_DHCP6_PROTOCOL 388 EFI_STATUS Status; 389 EFI_DHCP6_PROTOCOL *Dhcp6; 391 390 392 391 // … … 440 439 ); 441 440 } 442
Note:
See TracChangeset
for help on using the changeset viewer.