MdePkg[all]
1.08
|
Data Structures | |
struct | EFI_HPC_LOCATION |
struct | _EFI_PCI_HOT_PLUG_INIT_PROTOCOL |
Macros | |
#define | EFI_PCI_HOT_PLUG_INIT_PROTOCOL_GUID |
#define | EFI_HPC_STATE_INITIALIZED 0x01 |
#define | EFI_HPC_STATE_ENABLED 0x02 |
Typedefs | |
typedef struct _EFI_PCI_HOT_PLUG_INIT_PROTOCOL | EFI_PCI_HOT_PLUG_INIT_PROTOCOL |
typedef UINT16 | EFI_HPC_STATE |
typedef EFI_STATUS(EFIAPI * | EFI_GET_ROOT_HPC_LIST )(IN EFI_PCI_HOT_PLUG_INIT_PROTOCOL *This, OUT UINTN *HpcCount, OUT EFI_HPC_LOCATION **HpcList) |
typedef EFI_STATUS(EFIAPI * | EFI_INITIALIZE_ROOT_HPC )(IN EFI_PCI_HOT_PLUG_INIT_PROTOCOL *This, IN EFI_DEVICE_PATH_PROTOCOL *HpcDevicePath, IN UINT64 HpcPciAddress, IN EFI_EVENT Event, OUT EFI_HPC_STATE *HpcState) |
typedef EFI_STATUS(EFIAPI * | EFI_GET_HOT_PLUG_PADDING )(IN EFI_PCI_HOT_PLUG_INIT_PROTOCOL *This, IN EFI_DEVICE_PATH_PROTOCOL *HpcDevicePath, IN UINT64 HpcPciAddress, OUT EFI_HPC_STATE *HpcState, OUT VOID **Padding, OUT EFI_HPC_PADDING_ATTRIBUTES *Attributes) |
Enumerations | |
enum | EFI_HPC_PADDING_ATTRIBUTES { EfiPaddingPciBus, EfiPaddingPciRootBridge } |
Variables | |
EFI_GUID | gEfiPciHotPlugInitProtocolGuid |
This file declares EFI PCI Hot Plug Init Protocol.
This protocol provides the necessary functionality to initialize the Hot Plug Controllers (HPCs) and the buses that they control. This protocol also provides information regarding resource padding.
The EFI_PCI_HOT_PLUG_INIT_PROTOCOL provides a mechanism for the PCI bus enumerator to properly initialize the HPCs and CardBus sockets that require initialization. The HPC initialization takes place before the PCI enumeration process is complete. There cannot be more than one instance of this protocol in a system. This protocol is installed on its own separate handle.
Because the system may include multiple HPCs, one instance of this protocol should represent all of them. The protocol functions use the device path of the HPC to identify the HPC. When the PCI bus enumerator finds a root HPC, it will call EFI_PCI_HOT_PLUG_INIT_PROTOCOL.InitializeRootHpc(). If InitializeRootHpc() is unable to initialize a root HPC, the PCI enumerator will ignore that root HPC and continue the enumeration process. If the HPC is not initialized, the devices that it controls may not be initialized, and no resource padding will be provided.
From the standpoint of the PCI bus enumerator, HPCs are divided into the following two classes:
Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
#define EFI_HPC_STATE_ENABLED 0x02 |
The HPC initialization function was called, the HPC completed initialization, and it was enabled. Resource padding is required.
#define EFI_HPC_STATE_INITIALIZED 0x01 |
The HPC initialization function was called and the HPC completed initialization, but it was not enabled for some reason. The HPC may be disabled in hardware, or it may be disabled due to user preferences, hardware failure, or other reasons. No resource padding is required.
#define EFI_PCI_HOT_PLUG_INIT_PROTOCOL_GUID |
Global ID for the EFI_PCI_HOT_PLUG_INIT_PROTOCOL
typedef EFI_STATUS(EFIAPI * EFI_GET_HOT_PLUG_PADDING)(IN EFI_PCI_HOT_PLUG_INIT_PROTOCOL *This, IN EFI_DEVICE_PATH_PROTOCOL *HpcDevicePath, IN UINT64 HpcPciAddress, OUT EFI_HPC_STATE *HpcState, OUT VOID **Padding, OUT EFI_HPC_PADDING_ATTRIBUTES *Attributes) |
Returns the resource padding that is required by the PCI bus that is controlled by the specified Hot Plug Controller (HPC).
This function returns the resource padding that is required by the PCI bus that is controlled by the specified HPC. This member function is called for all the root HPCs and nonroot HPCs that are detected by the PCI bus enumerator. This function will be called before PCI resource allocation is completed. This function must be called after all the root HPCs, with the possible exception of a PCI-to-CardBus bridge, have completed initialization.
[in] | This | Pointer to the EFI_PCI_HOT_PLUG_INIT_PROTOCOL instance. |
[in] | HpcDevicePath | The device path to the HPC. |
[in] | HpcPciAddress | The address of the HPC function on the PCI bus. |
[in] | HpcState | The state of the HPC hardware. |
[out] | Padding | The amount of resource padding that is required by the PCI bus under the control of the specified HPC. |
[out] | Attributes | Describes how padding is accounted for. The padding is returned in the form of ACPI 2.0 resource descriptors. |
EFI_SUCCESS | The resource padding was successfully returned. |
EFI_UNSUPPORTED | This instance of the EFI_PCI_HOT_PLUG_INIT_PROTOCOL does not support the specified HPC. |
EFI_NOT_READY | This function was called before HPC initialization is complete. |
EFI_INVALID_PARAMETER | HpcState or Padding or Attributes is NULL. |
EFI_OUT_OF_RESOURCES | ACPI 2.0 resource descriptors for Padding cannot be allocated due to insufficient resources. |
typedef EFI_STATUS(EFIAPI * EFI_GET_ROOT_HPC_LIST)(IN EFI_PCI_HOT_PLUG_INIT_PROTOCOL *This, OUT UINTN *HpcCount, OUT EFI_HPC_LOCATION **HpcList) |
Returns a list of root Hot Plug Controllers (HPCs) that require initialization during the boot process.
This procedure returns a list of root HPCs. The PCI bus driver must initialize these controllers during the boot process. The PCI bus driver may or may not be able to detect these HPCs. If the platform includes a PCI-to-CardBus bridge, it can be included in this list if it requires initialization. The HpcList must be self consistent. An HPC cannot control any of its parent buses. Only one HPC can control a PCI bus. Because this list includes only root HPCs, no HPC in the list can be a child of another HPC. This policy must be enforced by the EFI_PCI_HOT_PLUG_INIT_PROTOCOL. The PCI bus driver may not check for such invalid conditions. The callee allocates the buffer HpcList
[in] | This | Pointer to the EFI_PCI_HOT_PLUG_INIT_PROTOCOL instance. |
[out] | HpcCount | The number of root HPCs that were returned. |
[out] | HpcList | The list of root HPCs. HpcCount defines the number of elements in this list. |
EFI_SUCCESS | HpcList was returned. |
EFI_OUT_OF_RESOURCES | HpcList was not returned due to insufficient resources. |
EFI_INVALID_PARAMETER | HpcCount is NULL or HpcList is NULL. |
typedef UINT16 EFI_HPC_STATE |
Describes the current state of an HPC
typedef EFI_STATUS(EFIAPI * EFI_INITIALIZE_ROOT_HPC)(IN EFI_PCI_HOT_PLUG_INIT_PROTOCOL *This, IN EFI_DEVICE_PATH_PROTOCOL *HpcDevicePath, IN UINT64 HpcPciAddress, IN EFI_EVENT Event, OUT EFI_HPC_STATE *HpcState) |
Initializes one root Hot Plug Controller (HPC). This process may causes initialization of its subordinate buses.
This function initializes the specified HPC. At the end of initialization, the hot-plug slots or sockets (controlled by this HPC) are powered and are connected to the bus. All the necessary registers in the HPC are set up. For a Standard (PCI) Hot Plug Controller (SHPC), the registers that must be set up are defined in the PCI Standard Hot Plug Controller and Subsystem Specification.
[in] | This | Pointer to the EFI_PCI_HOT_PLUG_INIT_PROTOCOL instance. |
[in] | HpcDevicePath | The device path to the HPC that is being initialized. |
[in] | HpcPciAddress | The address of the HPC function on the PCI bus. |
[in] | Event | The event that should be signaled when the HPC initialization is complete. Set to NULL if the caller wants to wait until the entire initialization process is complete. |
[out] | HpcState | The state of the HPC hardware. The state is EFI_HPC_STATE_INITIALIZED or EFI_HPC_STATE_ENABLED. |
EFI_SUCCESS | If Event is NULL, the specific HPC was successfully initialized. If Event is not NULL, Event will be signaled at a later time when initialization is complete. |
EFI_UNSUPPORTED | This instance of EFI_PCI_HOT_PLUG_INIT_PROTOCOL does not support the specified HPC. |
EFI_OUT_OF_RESOURCES | Initialization failed due to insufficient resources. |
EFI_INVALID_PARAMETER | HpcState is NULL. |
typedef struct _EFI_PCI_HOT_PLUG_INIT_PROTOCOL EFI_PCI_HOT_PLUG_INIT_PROTOCOL |
Forward declaration for EFI_PCI_HOT_PLUG_INIT_PROTOCOL
Describes how resource padding should be applied
EFI_GUID gEfiPciHotPlugInitProtocolGuid |