public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* How to get BBS_BBS_DEVICE_PATH from BOOTXXXX variable
@ 2016-10-18 17:18 Saqib Khan
  2016-10-18 17:40 ` Laszlo Ersek
  0 siblings, 1 reply; 7+ messages in thread
From: Saqib Khan @ 2016-10-18 17:18 UTC (permalink / raw)
  To: edk2-devel

Hi,
I can not find structure of BOOTXXXX variable, Can any one help how to
extract device path from BOOTXXXX variable.

here is code  i have attempt (rEFind)

*UINT8 *Value;*












*Status = gRT->GetVariable ((CHAR16 *)Name, &gEfiGlobalVariableGuid, NULL,
&BootVariableSize, Value);        //print attribute        /*Check if
device boot variable is legacy*/                  Ptr = Value;         Ptr
+= sizeof (UINT32);         DevPathLen = *(UINT16 *) Ptr;         Ptr +=
sizeof (UINT16);         Ptr += StrSize ((UINT16 *) Ptr);
 DevicePath = (EFI_DEVICE_PATH_PROTOCOL *) Ptr;          Print (L"Paths:
%s\n",ConvertDevicePathToText (DevicePath,TRUE,TRUE));*


-- 
Regards
Saqib


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-10-20 15:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-18 17:18 How to get BBS_BBS_DEVICE_PATH from BOOTXXXX variable Saqib Khan
2016-10-18 17:40 ` Laszlo Ersek
2016-10-18 18:37   ` Andrew Fish
2016-10-19 18:17     ` Saqib Khan
2016-10-19 20:41       ` Carsey, Jaben
2016-10-20  7:29         ` Saqib Khan
2016-10-20 15:44           ` Carsey, Jaben

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox