TianoCore EDK2 master
Loading...
Searching...
No Matches
NonDiscoverablePciDeviceDxe.c File Reference

Go to the source code of this file.

Macros

#define MAX_NON_DISCOVERABLE_PCI_DEVICE_ID   (32 * 256)
 

Functions

STATIC EFI_STATUS EFIAPI NonDiscoverablePciDeviceSupported (IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE DeviceHandle, IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath)
 
STATIC EFI_STATUS EFIAPI NonDiscoverablePciDeviceStart (IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE DeviceHandle, IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath)
 
STATIC EFI_STATUS EFIAPI NonDiscoverablePciDeviceStop (IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE DeviceHandle, IN UINTN NumberOfChildren, IN EFI_HANDLE *ChildHandleBuffer)
 
EFI_STATUS EFIAPI NonDiscoverablePciDeviceDxeEntryPoint (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Variables

STATIC UINTN mUniqueIdCounter = 0
 
EFI_CPU_ARCH_PROTOCOLmCpu
 
STATIC CONST EFI_GUID *CONST SupportedNonDiscoverableDevices []
 
STATIC EFI_DRIVER_BINDING_PROTOCOL gDriverBinding
 

Detailed Description

Copyright (C) 2016, Linaro Ltd. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file NonDiscoverablePciDeviceDxe.c.

Macro Definition Documentation

◆ MAX_NON_DISCOVERABLE_PCI_DEVICE_ID

#define MAX_NON_DISCOVERABLE_PCI_DEVICE_ID   (32 * 256)

Definition at line 13 of file NonDiscoverablePciDeviceDxe.c.

Function Documentation

◆ NonDiscoverablePciDeviceDxeEntryPoint()

EFI_STATUS EFIAPI NonDiscoverablePciDeviceDxeEntryPoint ( IN EFI_HANDLE  ImageHandle,
IN EFI_SYSTEM_TABLE SystemTable 
)

Entry point of this driver.

Parameters
ImageHandleImage handle this driver.
SystemTablePointer to the System Table.
Return values
EFI_SUCCESSThe entry point is executed successfully.
otherSome error occurred when executing this entry point.

Definition at line 298 of file NonDiscoverablePciDeviceDxe.c.

◆ NonDiscoverablePciDeviceStart()

STATIC EFI_STATUS EFIAPI NonDiscoverablePciDeviceStart ( IN EFI_DRIVER_BINDING_PROTOCOL This,
IN EFI_HANDLE  DeviceHandle,
IN EFI_DEVICE_PATH_PROTOCOL RemainingDevicePath 
)

This routine is called right after the .Supported() called and Start this driver on ControllerHandle.

Parameters
ThisProtocol instance pointer.
DeviceHandleHandle of device to bind driver to.
RemainingDevicePathA pointer to the device path. it should be ignored by device driver.
Return values
EFI_SUCCESSThis driver is added to this device.
otherSome error occurs when binding this driver to this device.

Definition at line 142 of file NonDiscoverablePciDeviceDxe.c.

◆ NonDiscoverablePciDeviceStop()

STATIC EFI_STATUS EFIAPI NonDiscoverablePciDeviceStop ( IN EFI_DRIVER_BINDING_PROTOCOL This,
IN EFI_HANDLE  DeviceHandle,
IN UINTN  NumberOfChildren,
IN EFI_HANDLE ChildHandleBuffer 
)

Stop this driver on ControllerHandle.

Parameters
ThisProtocol instance pointer.
DeviceHandleHandle of device to stop driver on.
NumberOfChildrenNot used.
ChildHandleBufferNot used.
Return values
EFI_SUCCESSThis driver is removed from this device.
otherSome error occurs when removing this driver from this device.

Definition at line 223 of file NonDiscoverablePciDeviceDxe.c.

◆ NonDiscoverablePciDeviceSupported()

STATIC EFI_STATUS EFIAPI NonDiscoverablePciDeviceSupported ( IN EFI_DRIVER_BINDING_PROTOCOL This,
IN EFI_HANDLE  DeviceHandle,
IN EFI_DEVICE_PATH_PROTOCOL RemainingDevicePath 
)

Supported function of Driver Binding protocol for this driver. Test to see if this driver supports ControllerHandle.

Parameters
ThisProtocol instance pointer.
DeviceHandleHandle of device to test.
RemainingDevicePathA pointer to the device path. it should be ignored by device driver.
Return values
EFI_SUCCESSThis driver supports this device.
otherThis driver does not support this device.

Definition at line 65 of file NonDiscoverablePciDeviceDxe.c.

Variable Documentation

◆ gDriverBinding

Initial value:
= {
0x10,
}
#define NULL
Definition: Base.h:319
STATIC EFI_STATUS EFIAPI NonDiscoverablePciDeviceStart(IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE DeviceHandle, IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath)
STATIC EFI_STATUS EFIAPI NonDiscoverablePciDeviceStop(IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE DeviceHandle, IN UINTN NumberOfChildren, IN EFI_HANDLE *ChildHandleBuffer)
STATIC EFI_STATUS EFIAPI NonDiscoverablePciDeviceSupported(IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE DeviceHandle, IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath)

Definition at line 277 of file NonDiscoverablePciDeviceDxe.c.

◆ mCpu

Definition at line 16 of file NonDiscoverablePciDeviceDxe.c.

◆ mUniqueIdCounter

STATIC UINTN mUniqueIdCounter = 0

Definition at line 15 of file NonDiscoverablePciDeviceDxe.c.

◆ SupportedNonDiscoverableDevices

STATIC CONST EFI_GUID* CONST SupportedNonDiscoverableDevices[]
Initial value:
= {
&gEdkiiNonDiscoverableAhciDeviceGuid,
&gEdkiiNonDiscoverableEhciDeviceGuid,
&gEdkiiNonDiscoverableNvmeDeviceGuid,
&gEdkiiNonDiscoverableOhciDeviceGuid,
&gEdkiiNonDiscoverableSdhciDeviceGuid,
&gEdkiiNonDiscoverableUfsDeviceGuid,
&gEdkiiNonDiscoverableUhciDeviceGuid,
&gEdkiiNonDiscoverableXhciDeviceGuid,
}

Definition at line 23 of file NonDiscoverablePciDeviceDxe.c.