TianoCore EDK2 master
|
#include <PiDxe.h>
#include <Guid/NonDiscoverableDevice.h>
#include <Library/BaseMemoryLib.h>
#include <Library/DebugLib.h>
#include <Library/DevicePathLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/NonDiscoverableDeviceRegistrationLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Protocol/DevicePath.h>
#include <Protocol/NonDiscoverableDevice.h>
Go to the source code of this file.
Data Structures | |
struct | NON_DISCOVERABLE_DEVICE_PATH |
Functions | |
STATIC CONST EFI_GUID * | GetGuidFromType (IN NON_DISCOVERABLE_DEVICE_TYPE Type) |
EFI_STATUS EFIAPI | RegisterNonDiscoverableMmioDevice (IN NON_DISCOVERABLE_DEVICE_TYPE Type, IN NON_DISCOVERABLE_DEVICE_DMA_TYPE DmaType, IN NON_DISCOVERABLE_DEVICE_INIT InitFunc, IN OUT EFI_HANDLE *Handle OPTIONAL, IN UINTN NumMmioResources,...) |
Copyright (c) 2016, Linaro, Ltd. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file NonDiscoverableDeviceRegistrationLib.c.
Get Guid form the type of non-discoverable device.
[in] | Type | The type of non-discoverable device. |
Return | the Guid. |
Definition at line 32 of file NonDiscoverableDeviceRegistrationLib.c.
EFI_STATUS EFIAPI RegisterNonDiscoverableMmioDevice | ( | IN NON_DISCOVERABLE_DEVICE_TYPE | Type, |
IN NON_DISCOVERABLE_DEVICE_DMA_TYPE | DmaType, | ||
IN NON_DISCOVERABLE_DEVICE_INIT | InitFunc, | ||
IN OUT EFI_HANDLE *Handle | OPTIONAL, | ||
IN UINTN | NumMmioResources, | ||
... | |||
) |
Register a non-discoverable MMIO device.
[in] | Type | The type of non-discoverable device |
[in] | DmaType | Whether the device is DMA coherent |
[in] | InitFunc | Initialization routine to be invoked when the device is enabled |
[in,out] | Handle | The handle onto which to install the non-discoverable device protocol. If Handle is NULL or *Handle is NULL, a new handle will be allocated. |
[in] | NumMmioResources | The number of UINTN base/size pairs that follow, each describing an MMIO region owned by the device |
[in] | ... | The variable argument list which contains the info about MmioResources. |
EFI_SUCCESS | The registration succeeded. |
EFI_INVALID_PARAMETER | An invalid argument was given |
Other | The registration failed. |
Definition at line 102 of file NonDiscoverableDeviceRegistrationLib.c.