TianoCore EDK2 master
|
#include <PiPei.h>
#include <Library/PeiServicesLib.h>
#include <Library/HobLib.h>
#include <Ppi/MemoryDiscovered.h>
#include <Ppi/IoMmu.h>
#include "DebugCommunicationLibUsb3Internal.h"
Go to the source code of this file.
Functions | |
EFI_STATUS EFIAPI | Usb3IoMmuPpiNotify (IN EFI_PEI_SERVICES **PeiServices, IN EFI_PEI_NOTIFY_DESCRIPTOR *NotifyDesc, IN VOID *Ppi) |
EFI_STATUS | IoMmuAllocateBuffer (IN EDKII_IOMMU_PPI *IoMmu, IN UINTN Pages, OUT VOID **HostAddress, OUT EFI_PHYSICAL_ADDRESS *DeviceAddress, OUT VOID **Mapping) |
EDKII_IOMMU_PPI * | Usb3GetIoMmu (VOID) |
EFI_PHYSICAL_ADDRESS * | GetUsb3DebugPortInstanceAddrPtr (VOID) |
VOID * | AllocateAlignBuffer (IN UINTN BufferSize) |
Variables | |
GUID | gUsb3DbgGuid = USB3_DBG_GUID |
EFI_PEI_NOTIFY_DESCRIPTOR | mUsb3IoMmuPpiNotifyDesc |
Debug Port Library implementation based on usb3 debug port.
Copyright (c) 2014 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file DebugCommunicationLibUsb3Pei.c.
Allocate aligned memory for XHC's usage.
BufferSize | The size, in bytes, of the Buffer. |
Definition at line 224 of file DebugCommunicationLibUsb3Pei.c.
EFI_PHYSICAL_ADDRESS * GetUsb3DebugPortInstanceAddrPtr | ( | VOID | ) |
Return USB3 debug instance address pointer.
Definition at line 179 of file DebugCommunicationLibUsb3Pei.c.
EFI_STATUS IoMmuAllocateBuffer | ( | IN EDKII_IOMMU_PPI * | IoMmu, |
IN UINTN | Pages, | ||
OUT VOID ** | HostAddress, | ||
OUT EFI_PHYSICAL_ADDRESS * | DeviceAddress, | ||
OUT VOID ** | Mapping | ||
) |
Allocates pages that are suitable for an OperationBusMasterCommonBuffer or OperationBusMasterCommonBuffer64 mapping.
IoMmu | Pointer to IOMMU PPI. |
Pages | The number of pages to allocate. |
HostAddress | A pointer to store the base system memory address of the allocated range. |
DeviceAddress | The resulting map address for the bus master PCI controller to use to access the hosts HostAddress. |
Mapping | A resulting value to pass to Unmap(). |
EFI_SUCCESS | The requested memory pages were allocated. |
EFI_UNSUPPORTED | Attributes is unsupported. The only legal attribute bits are MEMORY_WRITE_COMBINE and MEMORY_CACHED. |
EFI_INVALID_PARAMETER | One or more parameters are invalid. |
EFI_OUT_OF_RESOURCES | The memory pages could not be allocated. |
Definition at line 89 of file DebugCommunicationLibUsb3Pei.c.
EDKII_IOMMU_PPI * Usb3GetIoMmu | ( | VOID | ) |
USB3 get IOMMU PPI.
Definition at line 153 of file DebugCommunicationLibUsb3Pei.c.
EFI_STATUS EFIAPI Usb3IoMmuPpiNotify | ( | IN EFI_PEI_SERVICES ** | PeiServices, |
IN EFI_PEI_NOTIFY_DESCRIPTOR * | NotifyDesc, | ||
IN VOID * | Ppi | ||
) |
USB3 IOMMU PPI notify.
[in] | PeiServices | Pointer to PEI Services Table. |
[in] | NotifyDesc | Pointer to the descriptor for the Notification event that caused this function to execute. |
[in] | Ppi | Pointer to the PPI data associated with this function. |
EFI_STATUS | Always return EFI_SUCCESS |
Definition at line 30 of file DebugCommunicationLibUsb3Pei.c.
GUID gUsb3DbgGuid = USB3_DBG_GUID |
Definition at line 16 of file DebugCommunicationLibUsb3Pei.c.
EFI_PEI_NOTIFY_DESCRIPTOR mUsb3IoMmuPpiNotifyDesc |
Definition at line 63 of file DebugCommunicationLibUsb3Pei.c.