freebsd-dev/lib/libefivar
Jose Luis Duran 965f85271c libefivar: Handle USBxxx device path when optional para is not specified
According to UEFI spec,
for the Messaging Device Path with USB Class SubType, some paras
are optional in the text device path.
Take UsbClass(VID,PID,Class,SubClass,Protocol) for example,
The VID is an integer between 0 and 65535 and is optional. The
default value is 0xFFFF.
The PID is an integer between 0 and 65535 and is optional. The
default value is 0xFFFF.
The Class is an integer between 0 and 255 and is optional. The
default value is 0xFF.
The SubClass is an integer between 0 and 255 and is optional. The
default value is 0xFF.
The Protocol is an integer between 0 and 255 and is optional. The
default value is 0xFF.
So if any the optional para is not specified in the text device,
we should set related para in the node structure to default value.

This commit is to do the enhancement for USB Class device path
when optional para is not specified.

Upstream Bug:	https://bugzilla.tianocore.org/show_bug.cgi?id=1243
Obtained from:	3874108034
Pull Request:   https://github.com/freebsd/freebsd-src/pull/581
2022-02-27 09:13:24 -07:00
..
efi-osdep.h libefivar: define MDE_CPU_RISCV64 2020-07-06 17:47:29 +00:00
efivar-dp-format.c libefivar: Add PciRoot/PcieRoot text for ACPI Expanded Device Path 2022-02-27 09:13:08 -07:00
efivar-dp-parse.c libefivar: Handle USBxxx device path when optional para is not specified 2022-02-27 09:13:24 -07:00
efivar-dp-xlate.c Add additional sanity checks. 2019-12-09 01:32:18 +00:00
efivar-dp.h Regularize the Netflix copyright 2019-02-04 21:28:25 +00:00
efivar.3 Regularize the Netflix copyright 2019-02-04 21:28:25 +00:00
efivar.c Regularize the Netflix copyright 2019-02-04 21:28:25 +00:00
efivar.h Regularize the Netflix copyright 2019-02-04 21:28:25 +00:00
FreeBSD-update Bring in EDK2 routines for printing and parsing device paths. 2017-03-09 00:31:31 +00:00
Makefile libefivar(3): efi_set_variables_supported.3 should be efi_variables_supported.3 2021-12-21 20:42:39 +08:00
Makefile.depend Update Makefile.depend files 2019-12-11 17:37:53 +00:00
ProcessorBind.h Bring in EDK2 routines for printing and parsing device paths. 2017-03-09 00:31:31 +00:00
uefi-dplib.h libefivar: Clean up source files 2022-02-27 09:12:55 -07:00
uefi-dputil.c Regularize the Netflix copyright 2019-02-04 21:28:25 +00:00
uefi-guid.c Bring in EDK2 routines for printing and parsing device paths. 2017-03-09 00:31:31 +00:00
uefi-guid.dat Bring in EDK2 routines for printing and parsing device paths. 2017-03-09 00:31:31 +00:00