summaryrefslogtreecommitdiff
path: root/Drivers
AgeCommit message (Collapse)AuthorFilesLines
2024-04-10OptionRomPkg: Update the comments of GetInformation functionShang, Qingyu2-2/+8
Refer to Uefi spec 2.10 section 11.11.2, add a new retval EFI_NOT_FOUND to EFI_ADAPTER_INFORMATION_PROTOCOL.GetInformation(). Reference: [mantis #1866] - GetInfo() of Adapter Information Protocol should have a provision for IHV to return no data. Cc: Pedro Falcato <pedro.falcato@gmail.com> Reviewed-by: Ray Ni <ray.ni@intel.com> Signed-off-by: Qingyu <qingyu.shang@intel.com> Signed-off-by: Gahan Saraiya <gahan.saraiya@intel.com>
2021-08-11Drivers/OpTee: address cast build warning issue in 32b modeEtienne Carriere1-7/+14
Use (UINTN) cast to cast physical or virtual address values to the pointer size before casting from/to a pointer value. Cc: Ard Biesheuvel <ardb+tianocore@kernel.org> Cc: Ilias Apalodimas <ilias.apalodimas@linaro.org> Cc: Leif Lindholm <leif@nuviainc.com> Cc: Sami Mujawar <sami.mujawar@arm.com> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
2021-08-11Drivers/OpTee: Add Aarch32 SVC IDs for 32bit Arm targetsEtienne Carriere2-3/+15
Add SMCCC function IDs for RPMB read/write service on 32bit architectures. Define generic SP_SVC_RPMB_READ/SP_SVC_RPMB_WRITE IDs for native target architecture (32b or 64b). Changes OpTeeRpmbFvb.c to use architecture agnostic macro ARM_SVC_ID_FFA_MSG_SEND_DIRECT_REQ for 32b and 64b support. Cc: Ard Biesheuvel <ardb+tianocore@kernel.org> Cc: Ilias Apalodimas <ilias.apalodimas@linaro.org> Cc: Leif Lindholm <leif@nuviainc.com> Cc: Sami Mujawar <sami.mujawar@arm.com> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
2021-03-31Drivers/OptionRomPkg: Consume MdeLibs.dsc.inc for RegisterFilterLibDandan Bi1-1/+3
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3246 MdeLibs.dsc.inc was added for some basic/default library instances provided by MdePkg and RegisterFilterLibNull Library was also added into it as the first version of MdeLibs.dsc.inc. So update platform dsc to consume MdeLibs.dsc.inc for RegisterFilterLibNull which will be consumed by IoLib and BaseLib. Cc: Ray Ni <ray.ni@intel.com> Signed-off-by: Dandan Bi <dandan.bi@intel.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
2021-03-31Drivers/DisplayLink: Consume MdeLibs.dsc.inc for RegisterFilterLibDandan Bi1-0/+2
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3246 MdeLibs.dsc.inc was added for some basic/default library instances provided by MdePkg and RegisterFilterLibNull Library was also added into it as the first version of MdeLibs.dsc.inc. So update platform dsc to consume MdeLibs.dsc.inc for RegisterFilterLibNull which will be consumed by IoLib and BaseLib. Cc: Leif Lindholm <leif@nuviainc.com> Cc: Ard Biesheuvel <ardb+tianocore@kernel.org> Cc: Andy Hayes <andy.hayes@displaylink.com> Signed-off-by: Dandan Bi <dandan.bi@intel.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
2021-03-31Drivers/ASIX: Consume MdeLibs.dsc.inc for RegisterFilterLibDandan Bi1-0/+3
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3246 MdeLibs.dsc.inc was added for some basic/default library instances provided by MdePkg and RegisterFilterLibNull Library was also added into it as the first version of MdeLibs.dsc.inc. So update platform dsc to consume MdeLibs.dsc.inc for RegisterFilterLibNull which will be consumed by IoLib and BaseLib. Cc: Samer El-Haj-Mahmoud <samer.el-haj-mahmoud@arm.com> Cc: Ray Ni <ray.ni@intel.com> Signed-off-by: Dandan Bi <dandan.bi@intel.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
2021-03-28Drivers/OpTeeRpmb: Add an OP-TEE backed RPMB driverIlias Apalodimas5-0/+1095
A following patch is adding support for building StMM in order to run it from OP-TEE. OP-TEE in combination with a NS-world supplicant can use the RPMB partition of an eMMC to store EFI variables. The supplicant functionality is currently available in U-Boot only but can be ported into EDK2. Assuming similar functionality is added in EDK2, this will allow any hardware with an RPMB partition to store EFI variables securely. So let's add a driver that enables access of the RPMB partition through OP-TEE. Since the upper layers expect a byte addressable interface, the driver allocates memory and patches the PCDs, while syncing the memory/hardware on read/write callbacks. Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
2020-07-08Drivers/OptionRomPkg: Remove old ASIX NIC driversSamer El-Haj-Mahmoud13-9028/+1
Remove the old ASIX Ax88772 and Ax88772b USB networking drivers. These are now replaced with the new version of the driver (Ax88772c) under Drivers/ASIX/Bus/Usb/UsbNetworking/Ax88772c Signed-off-by: Samer El-Haj-Mahmoud <samer.el-haj-mahmoud@arm.com> Reviewed-by: Ray Ni <ray.ni@intel.com>
2020-07-08Drivers/ASIX: Add ASIX Ax88772c driverSamer El-Haj-Mahmoud7-0/+4842
This is the initial revision of ASIX USB networking UEFI driver version 2.8.0 for Ax88772c / Ax88772b / Ax88772a https://www.asix.com.tw/download.php?sub=driverdetail&PItemID=136 Original source code provided by ASIX is at: https://github.com/samerhaj/uefi_drivers/blob/master/UsbNetworking/Asix/ zip/source/AX88772C_772B_772A_UEFI_v2.8.0_Source.zip Signed-off-by: Samer El-Haj-Mahmoud <samer.el-haj-mahmoud@arm.com> Reviewed-by: Ray Ni <ray.ni@intel.com>
2020-07-08Drivers/ASIX: Add ASIX Ax88179 driverSamer El-Haj-Mahmoud7-1/+4551
This is the initial revision of ASIX USB networking UEFI driver version 2.9.0 for Ax88179 and Ax88178a https://www.asix.com.tw/products.php?op=pItemdetail&PItemID=131;71;112 Original source code provided by ASIX is at: https://github.com/samerhaj/uefi_drivers/blob/master/UsbNetworking/Asix/ zip/source/AX88179_178a_UEFI_v2.9.0_Source.zip Signed-off-by: Samer El-Haj-Mahmoud <samer.el-haj-mahmoud@arm.com> Reviewed-by: Ray Ni <ray.ni@intel.com>
2020-07-08Drivers/ASIX: Create ASIX packageSamer El-Haj-Mahmoud2-0/+95
Create a new ASIX package for build verification of ASIX USB drivers. Signed-off-by: Samer El-Haj-Mahmoud <samer.el-haj-mahmoud@arm.com> Reviewed-by: Ray Ni <ray.ni@intel.com>
2019-09-17Drivers/DisplayLink/DisplayLinkPkg DisplayLinkGopAndy Hayes1-1/+1
Corrected initialisation of one of data structures used to transmit USB control messages. Mistake had no practical effects but fixing to be on safe side. Cc: Leif Lindholm <leif.lindholm@linaro.org> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Andy Hayes <andy.hayes@displaylink.com> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2019-09-09Drivers/DisplayLink: Add DisplayLinkPkg and GOP driver DisplayLinkGopAndy Hayes14-0/+3928
Add GOP driver for USB docking stations based on DisplayLink chips. Cc: Leif Lindholm <leif.lindholm@linaro.org> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Andy Hayes <andy.hayes@displaylink.com> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2019-05-14Drivers/OptionRomPkg: Import OptionRomPkg from edk2Michael D Kinney51-0/+31192
https://bugzilla.tianocore.org/show_bug.cgi?id=1793 Import OptionRomPkg from edk2/master. Cc: Ray Ni <ray.ni@intel.com> Cc: Leif Lindholm <leif.lindholm@linaro.org> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Ray Ni <ray.ni@intel.com>