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

Go to the source code of this file.

Data Structures

struct  PCI_CLASS_STRINGS
 
struct  PCI_CLASS_ENTRY_TAG
 
struct  PCIE_EXPLAIN_STRUCT
 

Typedefs

typedef struct PCI_CLASS_ENTRY_TAG PCI_CLASS_ENTRY
 
typedef EFI_STATUS(* PCIE_EXPLAIN_FUNCTION) (IN PCI_CAPABILITY_PCIEXP *PciExpressCap)
 

Enumerations

enum  PCIE_CAPREG_FIELD_WIDTH { FieldWidthUINT8 , FieldWidthUINT16 , FieldWidthUINT32 }
 
enum  PCIE_EXPLAIN_TYPE {
  PcieExplainTypeCommon , PcieExplainTypeDevice , PcieExplainTypeLink , PcieExplainTypeSlot ,
  PcieExplainTypeRoot , PcieExplainTypeMax
}
 

Functions

VOID PciGetClassStrings (IN UINT32 ClassCode, IN OUT PCI_CLASS_STRINGS *ClassStrings)
 
VOID PciPrintClassCode (IN UINT8 *ClassCodePtr, IN BOOLEAN IncludePIF)
 
EFI_STATUS PciFindProtocolInterface (IN EFI_HANDLE *HandleBuf, IN UINTN HandleCount, IN UINT16 Segment, IN UINT16 Bus, OUT EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL **IoDev)
 
EFI_STATUS PciGetProtocolAndResource (IN EFI_HANDLE Handle, OUT EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL **IoDev, OUT EFI_ACPI_ADDRESS_SPACE_DESCRIPTOR **Descriptors)
 
EFI_STATUS PciGetNextBusRange (IN OUT EFI_ACPI_ADDRESS_SPACE_DESCRIPTOR **Descriptors, OUT UINT16 *MinBus, OUT UINT16 *MaxBus, OUT BOOLEAN *IsEnd)
 
VOID PciExplainPci (IN PCI_CONFIG_SPACE *ConfigSpace, IN UINT64 Address, IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *IoDev)
 
EFI_STATUS PciExplainDeviceData (IN PCI_DEVICE_HEADER_TYPE_REGION *Device, IN UINT64 Address, IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *IoDev)
 
EFI_STATUS PciExplainBridgeData (IN PCI_BRIDGE_CONTROL_REGISTER *Bridge, IN UINT64 Address, IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *IoDev)
 
EFI_STATUS PciExplainBar (IN UINT32 *Bar, IN UINT16 *Command, IN UINT64 Address, IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *IoDev, IN OUT UINTN *Index)
 
EFI_STATUS PciExplainCardBusData (IN PCI_CARDBUS_CONTROL_REGISTER *CardBus, IN UINT64 Address, IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *IoDev)
 
EFI_STATUS PciExplainStatus (IN UINT16 *Status, IN BOOLEAN MainStatus, IN PCI_HEADER_TYPE HeaderType)
 
EFI_STATUS PciExplainCommand (IN UINT16 *Command)
 
EFI_STATUS PciExplainBridgeControl (IN UINT16 *BridgeControl, IN PCI_HEADER_TYPE HeaderType)
 
UINT8 LocatePciCapability (IN PCI_CONFIG_SPACE *ConfigSpace, IN UINT8 CapabilityId)
 
VOID PciExplainPciExpress (IN PCI_CAPABILITY_PCIEXP *PciExpressCap, IN UINT8 *ExtendedConfigSpace, IN UINTN ExtendedConfigSize, IN CONST UINT16 ExtendedCapability)
 
EFI_STATUS ExplainPcieCapReg (IN PCI_CAPABILITY_PCIEXP *PciExpressCap)
 
EFI_STATUS ExplainPcieDeviceCap (IN PCI_CAPABILITY_PCIEXP *PciExpressCap)
 
EFI_STATUS ExplainPcieDeviceControl (IN PCI_CAPABILITY_PCIEXP *PciExpressCap)
 
EFI_STATUS ExplainPcieDeviceStatus (IN PCI_CAPABILITY_PCIEXP *PciExpressCap)
 
EFI_STATUS ExplainPcieLinkCap (IN PCI_CAPABILITY_PCIEXP *PciExpressCap)
 
EFI_STATUS ExplainPcieLinkControl (IN PCI_CAPABILITY_PCIEXP *PciExpressCap)
 
EFI_STATUS ExplainPcieLinkStatus (IN PCI_CAPABILITY_PCIEXP *PciExpressCap)
 
EFI_STATUS ExplainPcieSlotCap (IN PCI_CAPABILITY_PCIEXP *PciExpressCap)
 
EFI_STATUS ExplainPcieSlotControl (IN PCI_CAPABILITY_PCIEXP *PciExpressCap)
 
EFI_STATUS ExplainPcieSlotStatus (IN PCI_CAPABILITY_PCIEXP *PciExpressCap)
 
EFI_STATUS ExplainPcieRootControl (IN PCI_CAPABILITY_PCIEXP *PciExpressCap)
 
EFI_STATUS ExplainPcieRootCap (IN PCI_CAPABILITY_PCIEXP *PciExpressCap)
 
EFI_STATUS ExplainPcieRootStatus (IN PCI_CAPABILITY_PCIEXP *PciExpressCap)
 
SHELL_STATUS EFIAPI ShellCommandRunPci (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 
EFI_STATUS PrintInterpretedExtendedCompatibilityLinkControl (IN CONST PCI_EXP_EXT_HDR *HeaderAddress, IN CONST PCI_EXP_EXT_HDR *HeadersBaseAddress)
 
EFI_STATUS PrintInterpretedExtendedCompatibilityPowerBudgeting (IN CONST PCI_EXP_EXT_HDR *HeaderAddress, IN CONST PCI_EXP_EXT_HDR *HeadersBaseAddress)
 
EFI_STATUS PrintInterpretedExtendedCompatibilityAcs (IN CONST PCI_EXP_EXT_HDR *HeaderAddress, IN CONST PCI_EXP_EXT_HDR *HeadersBaseAddress)
 
EFI_STATUS PrintInterpretedExtendedCompatibilityLatencyToleranceReporting (IN CONST PCI_EXP_EXT_HDR *HeaderAddress, IN CONST PCI_EXP_EXT_HDR *HeadersBaseAddress)
 
EFI_STATUS PrintInterpretedExtendedCompatibilitySerialNumber (IN CONST PCI_EXP_EXT_HDR *HeaderAddress, IN CONST PCI_EXP_EXT_HDR *HeadersBaseAddress)
 
EFI_STATUS PrintInterpretedExtendedCompatibilityRcrb (IN CONST PCI_EXP_EXT_HDR *HeaderAddress, IN CONST PCI_EXP_EXT_HDR *HeadersBaseAddress)
 
EFI_STATUS PrintInterpretedExtendedCompatibilityVendorSpecific (IN CONST PCI_EXP_EXT_HDR *HeaderAddress, IN CONST PCI_EXP_EXT_HDR *HeadersBaseAddress)
 
EFI_STATUS PrintInterpretedExtendedCompatibilityECEA (IN CONST PCI_EXP_EXT_HDR *HeaderAddress, IN CONST PCI_EXP_EXT_HDR *HeadersBaseAddress)
 
EFI_STATUS PrintInterpretedExtendedCompatibilityAri (IN CONST PCI_EXP_EXT_HDR *HeaderAddress, IN CONST PCI_EXP_EXT_HDR *HeadersBaseAddress)
 
EFI_STATUS PrintInterpretedExtendedCompatibilityDynamicPowerAllocation (IN CONST PCI_EXP_EXT_HDR *HeaderAddress, IN CONST PCI_EXP_EXT_HDR *HeadersBaseAddress)
 
EFI_STATUS PrintInterpretedExtendedCompatibilityLinkDeclaration (IN CONST PCI_EXP_EXT_HDR *HeaderAddress, IN CONST PCI_EXP_EXT_HDR *HeadersBaseAddress)
 
EFI_STATUS PrintInterpretedExtendedCompatibilityAer (IN CONST PCI_EXP_EXT_HDR *HeaderAddress, IN CONST PCI_EXP_EXT_HDR *HeadersBaseAddress)
 
EFI_STATUS PrintInterpretedExtendedCompatibilityMulticast (IN CONST PCI_EXP_EXT_HDR *HeaderAddress, IN CONST PCI_EXP_EXT_HDR *HeadersBaseAddress, IN CONST PCI_CAPABILITY_PCIEXP *PciExpressCapPtr)
 
EFI_STATUS PrintInterpretedExtendedCompatibilityVirtualChannel (IN CONST PCI_EXP_EXT_HDR *HeaderAddress, IN CONST PCI_EXP_EXT_HDR *HeadersBaseAddress)
 
EFI_STATUS PrintInterpretedExtendedCompatibilityResizeableBar (IN CONST PCI_EXP_EXT_HDR *HeaderAddress, IN CONST PCI_EXP_EXT_HDR *HeadersBaseAddress)
 
EFI_STATUS PrintInterpretedExtendedCompatibilityTph (IN CONST PCI_EXP_EXT_HDR *HeaderAddress, IN CONST PCI_EXP_EXT_HDR *HeadersBaseAddress)
 
EFI_STATUS PrintInterpretedExtendedCompatibilitySecondary (IN CONST PCI_EXP_EXT_HDR *HeaderAddress, IN CONST PCI_EXP_EXT_HDR *HeadersBaseAddress, IN CONST PCI_CAPABILITY_PCIEXP *PciExpressCap)
 
EFI_STATUS PrintPciExtendedCapabilityDetails (IN CONST PCI_EXP_EXT_HDR *HeadersBaseAddress, IN CONST PCI_EXP_EXT_HDR *HeaderAddress, IN CONST PCI_CAPABILITY_PCIEXP *PciExpressCapPtr)
 

Variables

PCI_CLASS_ENTRY PCIBlankEntry []
 
PCI_CLASS_ENTRY PCISubClass_00 []
 
PCI_CLASS_ENTRY PCISubClass_01 []
 
PCI_CLASS_ENTRY PCISubClass_02 []
 
PCI_CLASS_ENTRY PCISubClass_03 []
 
PCI_CLASS_ENTRY PCISubClass_04 []
 
PCI_CLASS_ENTRY PCISubClass_05 []
 
PCI_CLASS_ENTRY PCISubClass_06 []
 
PCI_CLASS_ENTRY PCISubClass_07 []
 
PCI_CLASS_ENTRY PCISubClass_08 []
 
PCI_CLASS_ENTRY PCISubClass_09 []
 
PCI_CLASS_ENTRY PCISubClass_0a []
 
PCI_CLASS_ENTRY PCISubClass_0b []
 
PCI_CLASS_ENTRY PCISubClass_0c []
 
PCI_CLASS_ENTRY PCISubClass_0d []
 
PCI_CLASS_ENTRY PCISubClass_0e []
 
PCI_CLASS_ENTRY PCISubClass_0f []
 
PCI_CLASS_ENTRY PCISubClass_10 []
 
PCI_CLASS_ENTRY PCISubClass_11 []
 
PCI_CLASS_ENTRY PCISubClass_12 []
 
PCI_CLASS_ENTRY PCISubClass_13 []
 
PCI_CLASS_ENTRY PCIPIFClass_0100 []
 
PCI_CLASS_ENTRY PCIPIFClass_0101 []
 
PCI_CLASS_ENTRY PCIPIFClass_0105 []
 
PCI_CLASS_ENTRY PCIPIFClass_0106 []
 
PCI_CLASS_ENTRY PCIPIFClass_0107 []
 
PCI_CLASS_ENTRY PCIPIFClass_0108 []
 
PCI_CLASS_ENTRY PCIPIFClass_0109 []
 
PCI_CLASS_ENTRY PCIPIFClass_0300 []
 
PCI_CLASS_ENTRY PCIPIFClass_0604 []
 
PCI_CLASS_ENTRY PCIPIFClass_0609 []
 
PCI_CLASS_ENTRY PCIPIFClass_060b []
 
PCI_CLASS_ENTRY PCIPIFClass_0700 []
 
PCI_CLASS_ENTRY PCIPIFClass_0701 []
 
PCI_CLASS_ENTRY PCIPIFClass_0703 []
 
PCI_CLASS_ENTRY PCIPIFClass_0800 []
 
PCI_CLASS_ENTRY PCIPIFClass_0801 []
 
PCI_CLASS_ENTRY PCIPIFClass_0802 []
 
PCI_CLASS_ENTRY PCIPIFClass_0803 []
 
PCI_CLASS_ENTRY PCIPIFClass_0904 []
 
PCI_CLASS_ENTRY PCIPIFClass_0c00 []
 
PCI_CLASS_ENTRY PCIPIFClass_0c03 []
 
PCI_CLASS_ENTRY PCIPIFClass_0c07 []
 
PCI_CLASS_ENTRY PCIPIFClass_0d01 []
 
PCI_CLASS_ENTRY PCIPIFClass_0e00 []
 
PCI_CLASS_ENTRY gClassStringList []
 
PCIE_EXPLAIN_STRUCT PcieExplainList []
 
PCI_CONFIG_SPACEmConfigSpace = NULL
 
STATIC CONST SHELL_PARAM_ITEM ParamList []
 
CHAR16 * DevicePortTypeTable []
 
CHAR16 * L0sLatencyStrTable []
 
CHAR16 * L1LatencyStrTable []
 
CHAR16 * ASPMCtrlStrTable []
 
CHAR16 * SlotPwrLmtScaleTable []
 
CHAR16 * IndicatorTable []
 

Detailed Description

Main file for Pci shell Debug1 function.

Copyright (c) 2005 - 2021, Intel Corporation. All rights reserved.
(C) Copyright 2013-2015 Hewlett-Packard Development Company, L.P.
(C) Copyright 2016 Hewlett Packard Enterprise Development LP
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file Pci.c.

Typedef Documentation

◆ PCIE_EXPLAIN_FUNCTION

typedef EFI_STATUS(* PCIE_EXPLAIN_FUNCTION) (IN PCI_CAPABILITY_PCIEXP *PciExpressCap)

Definition at line 2217 of file Pci.c.

Enumeration Type Documentation

◆ PCIE_CAPREG_FIELD_WIDTH

enum PCIE_CAPREG_FIELD_WIDTH

Definition at line 2221 of file Pci.c.

◆ PCIE_EXPLAIN_TYPE

enum PCIE_EXPLAIN_TYPE

Definition at line 2227 of file Pci.c.

Function Documentation

◆ ExplainPcieCapReg()

EFI_STATUS ExplainPcieCapReg ( IN PCI_CAPABILITY_PCIEXP PciExpressCap)

Print out information of the capability information.

Parameters
[in]PciExpressCapThe pointer to the structure about the device.
Return values
EFI_SUCCESSThe operation was successful.

Definition at line 4484 of file Pci.c.

◆ ExplainPcieDeviceCap()

EFI_STATUS ExplainPcieDeviceCap ( IN PCI_CAPABILITY_PCIEXP PciExpressCap)

Print out information of the device capability information.

Parameters
[in]PciExpressCapThe pointer to the structure about the device.
Return values
EFI_SUCCESSThe operation was successful.

Definition at line 4541 of file Pci.c.

◆ ExplainPcieDeviceControl()

EFI_STATUS ExplainPcieDeviceControl ( IN PCI_CAPABILITY_PCIEXP PciExpressCap)

Print out information of the device control information.

Parameters
[in]PciExpressCapThe pointer to the structure about the device.
Return values
EFI_SUCCESSThe operation was successful.

Definition at line 4643 of file Pci.c.

◆ ExplainPcieDeviceStatus()

EFI_STATUS ExplainPcieDeviceStatus ( IN PCI_CAPABILITY_PCIEXP PciExpressCap)

Print out information of the device status information.

Parameters
[in]PciExpressCapThe pointer to the structure about the device.
Return values
EFI_SUCCESSThe operation was successful.

Definition at line 4738 of file Pci.c.

◆ ExplainPcieLinkCap()

EFI_STATUS ExplainPcieLinkCap ( IN PCI_CAPABILITY_PCIEXP PciExpressCap)

Print out information of the device link information.

Parameters
[in]PciExpressCapThe pointer to the structure about the device.
Return values
EFI_SUCCESSThe operation was successful.

Definition at line 4789 of file Pci.c.

◆ ExplainPcieLinkControl()

EFI_STATUS ExplainPcieLinkControl ( IN PCI_CAPABILITY_PCIEXP PciExpressCap)

Print out information of the device link control information.

Parameters
[in]PciExpressCapThe pointer to the structure about the device.
Return values
EFI_SUCCESSThe operation was successful.

Definition at line 4909 of file Pci.c.

◆ ExplainPcieLinkStatus()

EFI_STATUS ExplainPcieLinkStatus ( IN PCI_CAPABILITY_PCIEXP PciExpressCap)

Print out information of the device link status information.

Parameters
[in]PciExpressCapThe pointer to the structure about the device.
Return values
EFI_SUCCESSThe operation was successful.

Definition at line 4999 of file Pci.c.

◆ ExplainPcieRootCap()

EFI_STATUS ExplainPcieRootCap ( IN PCI_CAPABILITY_PCIEXP PciExpressCap)

Print out information of the device root capability information.

Parameters
[in]PciExpressCapThe pointer to the structure about the device.
Return values
EFI_SUCCESSThe operation was successful.

Definition at line 5379 of file Pci.c.

◆ ExplainPcieRootControl()

EFI_STATUS ExplainPcieRootControl ( IN PCI_CAPABILITY_PCIEXP PciExpressCap)

Print out information of the device root information.

Parameters
[in]PciExpressCapThe pointer to the structure about the device.
Return values
EFI_SUCCESSThe operation was successful.

Definition at line 5333 of file Pci.c.

◆ ExplainPcieRootStatus()

EFI_STATUS ExplainPcieRootStatus ( IN PCI_CAPABILITY_PCIEXP PciExpressCap)

Print out information of the device root status information.

Parameters
[in]PciExpressCapThe pointer to the structure about the device.
Return values
EFI_SUCCESSThe operation was successful.

Definition at line 5401 of file Pci.c.

◆ ExplainPcieSlotCap()

EFI_STATUS ExplainPcieSlotCap ( IN PCI_CAPABILITY_PCIEXP PciExpressCap)

Print out information of the device slot information.

Parameters
[in]PciExpressCapThe pointer to the structure about the device.
Return values
EFI_SUCCESSThe operation was successful.

Definition at line 5082 of file Pci.c.

◆ ExplainPcieSlotControl()

EFI_STATUS ExplainPcieSlotControl ( IN PCI_CAPABILITY_PCIEXP PciExpressCap)

Print out information of the device slot control information.

Parameters
[in]PciExpressCapThe pointer to the structure about the device.
Return values
EFI_SUCCESSThe operation was successful.

Definition at line 5170 of file Pci.c.

◆ ExplainPcieSlotStatus()

EFI_STATUS ExplainPcieSlotStatus ( IN PCI_CAPABILITY_PCIEXP PciExpressCap)

Print out information of the device slot status information.

Parameters
[in]PciExpressCapThe pointer to the structure about the device.
Return values
EFI_SUCCESSThe operation was successful.

Definition at line 5255 of file Pci.c.

◆ LocatePciCapability()

UINT8 LocatePciCapability ( IN PCI_CONFIG_SPACE ConfigSpace,
IN UINT8  CapabilityId 
)

Locate capability register block per capability ID.

Parameters
[in]ConfigSpaceData in PCI configuration space.
[in]CapabilityIdThe capability ID.
Returns
The offset of the register block per capability ID.

Locate capability register block per capability ID.

Parameters
[in]ConfigSpaceData in PCI configuration space.
[in]CapabilityIdThe capability ID.
Returns
The offset of the register block per capability ID, or 0 if the register block cannot be found.

Definition at line 4427 of file Pci.c.

◆ PciExplainBar()

EFI_STATUS PciExplainBar ( IN UINT32 *  Bar,
IN UINT16 *  Command,
IN UINT64  Address,
IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL IoDev,
IN OUT UINTN Index 
)

Explain the Base Address Register(Bar) in PCI configuration space.

Parameters
[in]BarPoints to the Base Address Register intended to interpret.
[in]CommandPoints to the register Command.
[in]AddressAddress used to access configuration space of this PCI device.
[in]IoDevHandle used to access configuration space of PCI device.
[in,out]IndexThe Index.
Return values
EFI_SUCCESSThe command completed successfully.

Definition at line 3713 of file Pci.c.

◆ PciExplainBridgeControl()

EFI_STATUS PciExplainBridgeControl ( IN UINT16 *  BridgeControl,
IN PCI_HEADER_TYPE  HeaderType 
)

Explain each meaningful bit of register Bridge Control.

Parameters
[in]BridgeControlPoints to the content of register Bridge Control.
[in]HeaderTypeThe headertype.
Return values
EFI_SUCCESSThe command completed successfully.

Definition at line 4278 of file Pci.c.

◆ PciExplainBridgeData()

EFI_STATUS PciExplainBridgeData ( IN PCI_BRIDGE_CONTROL_REGISTER Bridge,
IN UINT64  Address,
IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL IoDev 
)

Explain the bridge specific part of data in PCI configuration space.

Parameters
[in]BridgeBridge specific data region in PCI configuration space.
[in]AddressAddress used to access configuration space of this PCI device.
[in]IoDevHandle used to access configuration space of PCI device.
Return values
EFI_SUCCESSThe command completed successfully.

Definition at line 3477 of file Pci.c.

◆ PciExplainCardBusData()

EFI_STATUS PciExplainCardBusData ( IN PCI_CARDBUS_CONTROL_REGISTER CardBus,
IN UINT64  Address,
IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL IoDev 
)

Explain the cardbus specific part of data in PCI configuration space.

Parameters
[in]CardBusCardBus specific region of PCI configuration space.
[in]AddressAddress used to access configuration space of this PCI device.
[in]IoDevHandle used to access configuration space of PCI device.
Return values
EFI_SUCCESSThe command completed successfully.

Definition at line 3879 of file Pci.c.

◆ PciExplainCommand()

EFI_STATUS PciExplainCommand ( IN UINT16 *  Command)

Explain each meaningful bit of register Command.

Parameters
[in]CommandPoints to the content of register Command.
Return values
EFI_SUCCESSThe command completed successfully.

Definition at line 4164 of file Pci.c.

◆ PciExplainDeviceData()

EFI_STATUS PciExplainDeviceData ( IN PCI_DEVICE_HEADER_TYPE_REGION Device,
IN UINT64  Address,
IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL IoDev 
)

Explain the device specific part of data in PCI configuration space.

Parameters
[in]DeviceData in PCI configuration space.
[in]AddressAddress used to access configuration space of this PCI device.
[in]IoDevHandle used to access configuration space of PCI device.
Return values
EFI_SUCCESSThe command completed successfully.

Definition at line 3302 of file Pci.c.

◆ PciExplainPci()

VOID PciExplainPci ( IN PCI_CONFIG_SPACE ConfigSpace,
IN UINT64  Address,
IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL IoDev 
)

Explain the data in PCI configuration space. The part which is common for PCI device and bridge is interpreted in this function. It calls other functions to interpret data unique for device or bridge.

Parameters
[in]ConfigSpaceData in PCI configuration space.
[in]AddressAddress used to access configuration space of this PCI device.
[in]IoDevHandle used to access configuration space of PCI device.

Definition at line 3158 of file Pci.c.

◆ PciExplainPciExpress()

VOID PciExplainPciExpress ( IN PCI_CAPABILITY_PCIEXP PciExpressCap,
IN UINT8 *  ExtendedConfigSpace,
IN UINTN  ExtendedConfigSize,
IN CONST UINT16  ExtendedCapability 
)

Display Pcie device structure.

Parameters
[in]PciExpressCapPCI Express capability buffer.
[in]ExtendedConfigSpacePCI Express extended configuration space.
[in]ExtendedConfigSizePCI Express extended configuration size.
[in]ExtendedCapabilityPCI Express extended capability ID to explain.

Definition at line 6202 of file Pci.c.

◆ PciExplainStatus()

EFI_STATUS PciExplainStatus ( IN UINT16 *  Status,
IN BOOLEAN  MainStatus,
IN PCI_HEADER_TYPE  HeaderType 
)

Explain each meaningful bit of register Status. The definition of Status is slightly different depending on the PCI header type.

Parameters
[in]StatusPoints to the content of register Status.
[in]MainStatusIndicates if this register is main status(not secondary status).
[in]HeaderTypeHeader type of this PCI device.
Return values
EFI_SUCCESSThe command completed successfully.

Definition at line 4057 of file Pci.c.

◆ PciFindProtocolInterface()

EFI_STATUS PciFindProtocolInterface ( IN EFI_HANDLE HandleBuf,
IN UINTN  HandleCount,
IN UINT16  Segment,
IN UINT16  Bus,
OUT EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL **  IoDev 
)

This function finds out the protocol which is in charge of the given segment, and its bus range covers the current bus number. It lookes each instances of RootBridgeIoProtocol handle, until the one meets the criteria is found.

Parameters
[in]HandleBufBuffer which holds all PCI_ROOT_BRIDIGE_IO_PROTOCOL handles.
[in]HandleCountCount of all PCI_ROOT_BRIDIGE_IO_PROTOCOL handles.
[in]SegmentSegment number of device we are dealing with.
[in]BusBus number of device we are dealing with.
[out]IoDevHandle used to access configuration space of PCI device.
Return values
EFI_SUCCESSThe command completed successfully.
EFI_INVALID_PARAMETERInvalid parameter.

Definition at line 2991 of file Pci.c.

◆ PciGetClassStrings()

VOID PciGetClassStrings ( IN UINT32  ClassCode,
IN OUT PCI_CLASS_STRINGS ClassStrings 
)

Generates printable Unicode strings that represent PCI device class, subclass and programmed I/F based on a value passed to the function.

Parameters
[in]ClassCodeValue representing the PCI "Class Code" register read from a PCI device. The encodings are: bits 23:16 - Base Class Code bits 15:8 - Sub-Class Code bits 7:0 - Programming Interface
[in,out]ClassStringsPointer of PCI_CLASS_STRINGS structure, which contains printable class strings corresponding to ClassCode. The caller must not modify the strings that are pointed by the fields in ClassStrings.

Definition at line 1684 of file Pci.c.

◆ PciGetNextBusRange()

EFI_STATUS PciGetNextBusRange ( IN OUT EFI_ACPI_ADDRESS_SPACE_DESCRIPTOR **  Descriptors,
OUT UINT16 *  MinBus,
OUT UINT16 *  MaxBus,
OUT BOOLEAN *  IsEnd 
)

This function get the next bus range of given address space descriptors. It also moves the pointer backward a node, to get prepared to be called again.

Parameters
[in,out]DescriptorsPoints to current position of a serial of address space descriptors.
[out]MinBusThe lower range of bus number.
[out]MaxBusThe upper range of bus number.
[out]IsEndMeet end of the serial of descriptors.
Return values
EFI_SUCCESSThe command completed successfully.

Definition at line 3104 of file Pci.c.

◆ PciGetProtocolAndResource()

EFI_STATUS PciGetProtocolAndResource ( IN EFI_HANDLE  Handle,
OUT EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL **  IoDev,
OUT EFI_ACPI_ADDRESS_SPACE_DESCRIPTOR **  Descriptors 
)

This function gets the protocol interface from the given handle, and obtains its address space descriptors.

Parameters
[in]HandleThe PCI_ROOT_BRIDIGE_IO_PROTOCOL handle.
[out]IoDevHandle used to access configuration space of PCI device.
[out]DescriptorsPoints to the address space descriptors.
Return values
EFI_SUCCESSThe command completed successfully

Definition at line 3057 of file Pci.c.

◆ PciPrintClassCode()

VOID PciPrintClassCode ( IN UINT8 *  ClassCodePtr,
IN BOOLEAN  IncludePIF 
)

Print strings that represent PCI device class, subclass and programmed I/F.

Parameters
[in]ClassCodePtrPoints to the memory which stores register Class Code in PCI configuration space.
[in]IncludePIFIf the printed string should include the programming I/F part

Definition at line 1796 of file Pci.c.

◆ PrintInterpretedExtendedCompatibilityAcs()

EFI_STATUS PrintInterpretedExtendedCompatibilityAcs ( IN CONST PCI_EXP_EXT_HDR *  HeaderAddress,
IN CONST PCI_EXP_EXT_HDR *  HeadersBaseAddress 
)

Function to interpret and print out the ACS structure

Parameters
[in]HeaderAddressThe Address of this capability header.
[in]HeadersBaseAddressThe address of all the extended capability headers.

Definition at line 5503 of file Pci.c.

◆ PrintInterpretedExtendedCompatibilityAer()

EFI_STATUS PrintInterpretedExtendedCompatibilityAer ( IN CONST PCI_EXP_EXT_HDR *  HeaderAddress,
IN CONST PCI_EXP_EXT_HDR *  HeadersBaseAddress 
)

Function to interpret and print out the Advanced Error Reporting structure

Parameters
[in]HeaderAddressThe Address of this capability header.
[in]HeadersBaseAddressThe address of all the extended capability headers.

Definition at line 5858 of file Pci.c.

◆ PrintInterpretedExtendedCompatibilityAri()

EFI_STATUS PrintInterpretedExtendedCompatibilityAri ( IN CONST PCI_EXP_EXT_HDR *  HeaderAddress,
IN CONST PCI_EXP_EXT_HDR *  HeadersBaseAddress 
)

Function to interpret and print out the ARI structure

Parameters
[in]HeaderAddressThe Address of this capability header.
[in]HeadersBaseAddressThe address of all the extended capability headers.

Definition at line 5728 of file Pci.c.

◆ PrintInterpretedExtendedCompatibilityDynamicPowerAllocation()

EFI_STATUS PrintInterpretedExtendedCompatibilityDynamicPowerAllocation ( IN CONST PCI_EXP_EXT_HDR *  HeaderAddress,
IN CONST PCI_EXP_EXT_HDR *  HeadersBaseAddress 
)

Function to interpret and print out the DPA structure

Parameters
[in]HeaderAddressThe Address of this capability header.
[in]HeadersBaseAddressThe address of all the extended capability headers.

Definition at line 5762 of file Pci.c.

◆ PrintInterpretedExtendedCompatibilityECEA()

EFI_STATUS PrintInterpretedExtendedCompatibilityECEA ( IN CONST PCI_EXP_EXT_HDR *  HeaderAddress,
IN CONST PCI_EXP_EXT_HDR *  HeadersBaseAddress 
)

Function to interpret and print out the Event Collector Endpoint Association structure

Parameters
[in]HeaderAddressThe Address of this capability header.
[in]HeadersBaseAddressThe address of all the extended capability headers.

Definition at line 5695 of file Pci.c.

◆ PrintInterpretedExtendedCompatibilityLatencyToleranceReporting()

EFI_STATUS PrintInterpretedExtendedCompatibilityLatencyToleranceReporting ( IN CONST PCI_EXP_EXT_HDR *  HeaderAddress,
IN CONST PCI_EXP_EXT_HDR *  HeadersBaseAddress 
)

Function to interpret and print out the latency tolerance reporting structure

Parameters
[in]HeaderAddressThe Address of this capability header.
[in]HeadersBaseAddressThe address of all the extended capability headers.

Definition at line 5559 of file Pci.c.

◆ PrintInterpretedExtendedCompatibilityLinkControl()

EFI_STATUS PrintInterpretedExtendedCompatibilityLinkControl ( IN CONST PCI_EXP_EXT_HDR *  HeaderAddress,
IN CONST PCI_EXP_EXT_HDR *  HeadersBaseAddress 
)

Function to interpret and print out the link control structure

Parameters
[in]HeaderAddressThe Address of this capability header.
[in]HeadersBaseAddressThe address of all the extended capability headers.

Definition at line 5433 of file Pci.c.

◆ PrintInterpretedExtendedCompatibilityLinkDeclaration()

EFI_STATUS PrintInterpretedExtendedCompatibilityLinkDeclaration ( IN CONST PCI_EXP_EXT_HDR *  HeaderAddress,
IN CONST PCI_EXP_EXT_HDR *  HeadersBaseAddress 
)

Function to interpret and print out the link declaration structure

Parameters
[in]HeaderAddressThe Address of this capability header.
[in]HeadersBaseAddressThe address of all the extended capability headers.

Definition at line 5811 of file Pci.c.

◆ PrintInterpretedExtendedCompatibilityMulticast()

EFI_STATUS PrintInterpretedExtendedCompatibilityMulticast ( IN CONST PCI_EXP_EXT_HDR *  HeaderAddress,
IN CONST PCI_EXP_EXT_HDR *  HeadersBaseAddress,
IN CONST PCI_CAPABILITY_PCIEXP PciExpressCapPtr 
)

Function to interpret and print out the multicast structure

Parameters
[in]HeaderAddressThe Address of this capability header.
[in]HeadersBaseAddressThe address of all the extended capability headers.
[in]PciExpressCapPtrThe address of the PCIe capabilities structure.

Definition at line 5909 of file Pci.c.

◆ PrintInterpretedExtendedCompatibilityPowerBudgeting()

EFI_STATUS PrintInterpretedExtendedCompatibilityPowerBudgeting ( IN CONST PCI_EXP_EXT_HDR *  HeaderAddress,
IN CONST PCI_EXP_EXT_HDR *  HeadersBaseAddress 
)

Function to interpret and print out the power budgeting structure

Parameters
[in]HeaderAddressThe Address of this capability header.
[in]HeadersBaseAddressThe address of all the extended capability headers.

Definition at line 5468 of file Pci.c.

◆ PrintInterpretedExtendedCompatibilityRcrb()

EFI_STATUS PrintInterpretedExtendedCompatibilityRcrb ( IN CONST PCI_EXP_EXT_HDR *  HeaderAddress,
IN CONST PCI_EXP_EXT_HDR *  HeadersBaseAddress 
)

Function to interpret and print out the RCRB structure

Parameters
[in]HeaderAddressThe Address of this capability header.
[in]HeadersBaseAddressThe address of all the extended capability headers.

Definition at line 5626 of file Pci.c.

◆ PrintInterpretedExtendedCompatibilityResizeableBar()

EFI_STATUS PrintInterpretedExtendedCompatibilityResizeableBar ( IN CONST PCI_EXP_EXT_HDR *  HeaderAddress,
IN CONST PCI_EXP_EXT_HDR *  HeadersBaseAddress 
)

Function to interpret and print out the resizeable bar structure

Parameters
[in]HeaderAddressThe Address of this capability header.
[in]HeadersBaseAddressThe address of all the extended capability headers.

Definition at line 6009 of file Pci.c.

◆ PrintInterpretedExtendedCompatibilitySecondary()

EFI_STATUS PrintInterpretedExtendedCompatibilitySecondary ( IN CONST PCI_EXP_EXT_HDR *  HeaderAddress,
IN CONST PCI_EXP_EXT_HDR *  HeadersBaseAddress,
IN CONST PCI_CAPABILITY_PCIEXP PciExpressCap 
)

Function to interpret and print out the secondary PCIe capability structure

Parameters
[in]HeaderAddressThe Address of this capability header.
[in]HeadersBaseAddressThe address of all the extended capability headers.
[in]PciExpressCapPtrThe address of the PCIe capabilities structure.

Definition at line 6092 of file Pci.c.

◆ PrintInterpretedExtendedCompatibilitySerialNumber()

EFI_STATUS PrintInterpretedExtendedCompatibilitySerialNumber ( IN CONST PCI_EXP_EXT_HDR *  HeaderAddress,
IN CONST PCI_EXP_EXT_HDR *  HeadersBaseAddress 
)

Function to interpret and print out the serial number structure

Parameters
[in]HeaderAddressThe Address of this capability header.
[in]HeadersBaseAddressThe address of all the extended capability headers.

Definition at line 5593 of file Pci.c.

◆ PrintInterpretedExtendedCompatibilityTph()

EFI_STATUS PrintInterpretedExtendedCompatibilityTph ( IN CONST PCI_EXP_EXT_HDR *  HeaderAddress,
IN CONST PCI_EXP_EXT_HDR *  HeadersBaseAddress 
)

Function to interpret and print out the TPH structure

Parameters
[in]HeaderAddressThe Address of this capability header.
[in]HeadersBaseAddressThe address of all the extended capability headers.

Definition at line 6049 of file Pci.c.

◆ PrintInterpretedExtendedCompatibilityVendorSpecific()

EFI_STATUS PrintInterpretedExtendedCompatibilityVendorSpecific ( IN CONST PCI_EXP_EXT_HDR *  HeaderAddress,
IN CONST PCI_EXP_EXT_HDR *  HeadersBaseAddress 
)

Function to interpret and print out the vendor specific structure

Parameters
[in]HeaderAddressThe Address of this capability header.
[in]HeadersBaseAddressThe address of all the extended capability headers.

Definition at line 5662 of file Pci.c.

◆ PrintInterpretedExtendedCompatibilityVirtualChannel()

EFI_STATUS PrintInterpretedExtendedCompatibilityVirtualChannel ( IN CONST PCI_EXP_EXT_HDR *  HeaderAddress,
IN CONST PCI_EXP_EXT_HDR *  HeadersBaseAddress 
)

Function to interpret and print out the virtual channel and multi virtual channel structure

Parameters
[in]HeaderAddressThe Address of this capability header.
[in]HeadersBaseAddressThe address of all the extended capability headers.

Definition at line 5951 of file Pci.c.

◆ PrintPciExtendedCapabilityDetails()

EFI_STATUS PrintPciExtendedCapabilityDetails ( IN CONST PCI_EXP_EXT_HDR *  HeadersBaseAddress,
IN CONST PCI_EXP_EXT_HDR *  HeaderAddress,
IN CONST PCI_CAPABILITY_PCIEXP PciExpressCapPtr 
)

Display Pcie extended capability details

Parameters
[in]HeadersBaseAddressThe address of all the extended capability headers.
[in]HeaderAddressThe address of this capability header.
[in]PciExpressCapPtrThe address of the PCIe capabilities structure.

Definition at line 6137 of file Pci.c.

◆ ShellCommandRunPci()

SHELL_STATUS EFIAPI ShellCommandRunPci ( IN EFI_HANDLE  ImageHandle,
IN EFI_SYSTEM_TABLE SystemTable 
)

Function for 'pci' command.

Parameters
[in]ImageHandleHandle to the Image (NULL if Internal).
[in]SystemTablePointer to the System Table (NULL if Internal).

Definition at line 2435 of file Pci.c.

Variable Documentation

◆ ASPMCtrlStrTable

CHAR16* ASPMCtrlStrTable[]
Initial value:
= {
L"Disabled",
L"L0s Entry Enabled",
L"L1 Entry Enabled",
L"L0s and L1 Entry Enabled"
}

Definition at line 2406 of file Pci.c.

◆ DevicePortTypeTable

CHAR16* DevicePortTypeTable[]
Initial value:
= {
L"PCI Express Endpoint",
L"Legacy PCI Express Endpoint",
L"Unknown Type",
L"Unknonw Type",
L"Root Port of PCI Express Root Complex",
L"Upstream Port of PCI Express Switch",
L"Downstream Port of PCI Express Switch",
L"PCI Express to PCI/PCI-X Bridge",
L"PCI/PCI-X to PCI Express Bridge",
L"Root Complex Integrated Endpoint",
L"Root Complex Event Collector"
}

Definition at line 2370 of file Pci.c.

◆ gClassStringList

PCI_CLASS_ENTRY gClassStringList[]

Definition at line 90 of file Pci.c.

◆ IndicatorTable

CHAR16* IndicatorTable[]
Initial value:
= {
L"Reserved",
L"On",
L"Blink",
L"Off"
}

Definition at line 2420 of file Pci.c.

◆ L0sLatencyStrTable

CHAR16* L0sLatencyStrTable[]
Initial value:
= {
L"Less than 64ns",
L"64ns to less than 128ns",
L"128ns to less than 256ns",
L"256ns to less than 512ns",
L"512ns to less than 1us",
L"1us to less than 2us",
L"2us-4us",
L"More than 4us"
}

Definition at line 2384 of file Pci.c.

◆ L1LatencyStrTable

CHAR16* L1LatencyStrTable[]
Initial value:
= {
L"Less than 1us",
L"1us to less than 2us",
L"2us to less than 4us",
L"4us to less than 8us",
L"8us to less than 16us",
L"16us to less than 32us",
L"32us-64us",
L"More than 64us"
}

Definition at line 2395 of file Pci.c.

◆ mConfigSpace

PCI_CONFIG_SPACE* mConfigSpace = NULL

Definition at line 2362 of file Pci.c.

◆ ParamList

Initial value:
= {
{ L"-s", TypeValue },
{ L"-i", TypeFlag },
{ L"-ec", TypeValue },
{ NULL, TypeMax }
}
#define NULL
Definition: Base.h:319
@ TypeValue
A flag that has some data following it with a space (IE "-a 1").
Definition: ShellLib.h:700
@ TypeFlag
A flag that is present or not present only (IE "-a").
Definition: ShellLib.h:699

Definition at line 2363 of file Pci.c.

◆ PCIBlankEntry

PCI_CLASS_ENTRY PCIBlankEntry
Initial value:
= {
{
0x00,
L"",
PCIBlankEntry
},
{
0x00,
}
}

Definition at line 41 of file Pci.c.

◆ PcieExplainList

PCIE_EXPLAIN_STRUCT PcieExplainList[]

Definition at line 2244 of file Pci.c.

◆ PCIPIFClass_0100

PCI_CLASS_ENTRY PCIPIFClass_0100

Definition at line 62 of file Pci.c.

◆ PCIPIFClass_0101

PCI_CLASS_ENTRY PCIPIFClass_0101

Definition at line 63 of file Pci.c.

◆ PCIPIFClass_0105

PCI_CLASS_ENTRY PCIPIFClass_0105
Initial value:
= {
{
0x20,
L"Single stepping",
PCIBlankEntry
},
{
0x30,
L"Continuous operation",
PCIBlankEntry
},
{
0x00,
}
}

Definition at line 64 of file Pci.c.

◆ PCIPIFClass_0106

PCI_CLASS_ENTRY PCIPIFClass_0106
Initial value:
= {
{
0x00,
L"",
PCIBlankEntry
},
{
0x01,
L"AHCI",
PCIBlankEntry
},
{
0x02,
L"Serial Storage Bus",
PCIBlankEntry
},
{
0x00,
}
}

Definition at line 65 of file Pci.c.

◆ PCIPIFClass_0107

PCI_CLASS_ENTRY PCIPIFClass_0107
Initial value:
= {
{
0x00,
L"",
PCIBlankEntry
},
{
0x01,
L"Obsolete",
PCIBlankEntry
},
{
0x00,
}
}

Definition at line 66 of file Pci.c.

◆ PCIPIFClass_0108

PCI_CLASS_ENTRY PCIPIFClass_0108
Initial value:
= {
{
0x00,
L"",
PCIBlankEntry
},
{
0x01,
L"NVMHCI",
PCIBlankEntry
},
{
0x02,
L"NVM Express",
PCIBlankEntry
},
{
0x00,
}
}

Definition at line 67 of file Pci.c.

◆ PCIPIFClass_0109

PCI_CLASS_ENTRY PCIPIFClass_0109
Initial value:
= {
{
0x00,
L"",
PCIBlankEntry
},
{
0x01,
L"UFSHCI",
PCIBlankEntry
},
{
0x00,
}
}

Definition at line 68 of file Pci.c.

◆ PCIPIFClass_0300

PCI_CLASS_ENTRY PCIPIFClass_0300
Initial value:
= {
{
0x00,
L"VGA compatible",
PCIBlankEntry
},
{
0x01,
L"8514 compatible",
PCIBlankEntry
},
{
0x00,
}
}

Definition at line 69 of file Pci.c.

◆ PCIPIFClass_0604

PCI_CLASS_ENTRY PCIPIFClass_0604
Initial value:
= {
{
0x00,
L"",
PCIBlankEntry
},
{
0x01,
L"Subtractive decode",
PCIBlankEntry
},
{
0x00,
}
}

Definition at line 70 of file Pci.c.

◆ PCIPIFClass_0609

PCI_CLASS_ENTRY PCIPIFClass_0609
Initial value:
= {
{
0x40,
L"Primary PCI bus side facing the system host processor",
PCIBlankEntry
},
{
0x80,
L"Secondary PCI bus side facing the system host processor",
PCIBlankEntry
},
{
0x00,
}
}

Definition at line 71 of file Pci.c.

◆ PCIPIFClass_060b

PCI_CLASS_ENTRY PCIPIFClass_060b
Initial value:
= {
{
0x00,
L"Custom",
PCIBlankEntry
},
{
0x01,
L"ASI-SIG Defined Portal",
PCIBlankEntry
},
{
0x00,
}
}

Definition at line 72 of file Pci.c.

◆ PCIPIFClass_0700

PCI_CLASS_ENTRY PCIPIFClass_0700

Definition at line 73 of file Pci.c.

◆ PCIPIFClass_0701

PCI_CLASS_ENTRY PCIPIFClass_0701

Definition at line 74 of file Pci.c.

◆ PCIPIFClass_0703

PCI_CLASS_ENTRY PCIPIFClass_0703

Definition at line 75 of file Pci.c.

◆ PCIPIFClass_0800

PCI_CLASS_ENTRY PCIPIFClass_0800

Definition at line 76 of file Pci.c.

◆ PCIPIFClass_0801

PCI_CLASS_ENTRY PCIPIFClass_0801
Initial value:
= {
{
0x00,
L"Generic 8237",
PCIBlankEntry
},
{
0x01,
L"ISA",
PCIBlankEntry
},
{
0x02,
L"EISA",
PCIBlankEntry
},
{
0x00,
}
}

Definition at line 77 of file Pci.c.

◆ PCIPIFClass_0802

PCI_CLASS_ENTRY PCIPIFClass_0802
Initial value:
= {
{
0x00,
L"Generic 8254",
PCIBlankEntry
},
{
0x01,
L"ISA",
PCIBlankEntry
},
{
0x02,
L"EISA",
PCIBlankEntry
},
{
0x00,
}
}

Definition at line 78 of file Pci.c.

◆ PCIPIFClass_0803

PCI_CLASS_ENTRY PCIPIFClass_0803
Initial value:
= {
{
0x00,
L"Generic",
PCIBlankEntry
},
{
0x01,
L"ISA",
PCIBlankEntry
},
{
0x02,
L"EISA",
PCIBlankEntry
},
{
0x00,
}
}

Definition at line 79 of file Pci.c.

◆ PCIPIFClass_0904

PCI_CLASS_ENTRY PCIPIFClass_0904
Initial value:
= {
{
0x00,
L"Generic",
PCIBlankEntry
},
{
0x10,
L"",
PCIBlankEntry
},
{
0x00,
}
}

Definition at line 80 of file Pci.c.

◆ PCIPIFClass_0c00

PCI_CLASS_ENTRY PCIPIFClass_0c00
Initial value:
= {
{
0x00,
L"",
PCIBlankEntry
},
{
0x10,
L"Using 1394 OpenHCI spec",
PCIBlankEntry
},
{
0x00,
}
}

Definition at line 81 of file Pci.c.

◆ PCIPIFClass_0c03

PCI_CLASS_ENTRY PCIPIFClass_0c03

Definition at line 82 of file Pci.c.

◆ PCIPIFClass_0c07

PCI_CLASS_ENTRY PCIPIFClass_0c07
Initial value:
= {
{
0x00,
L"SMIC",
PCIBlankEntry
},
{
0x01,
L"Keyboard Controller Style",
PCIBlankEntry
},
{
0x02,
L"Block Transfer",
PCIBlankEntry
},
{
0x00,
}
}

Definition at line 83 of file Pci.c.

◆ PCIPIFClass_0d01

PCI_CLASS_ENTRY PCIPIFClass_0d01
Initial value:
= {
{
0x00,
L"Consumer IR controller",
PCIBlankEntry
},
{
0x10,
L"UWB Radio controller",
PCIBlankEntry
},
{
0x00,
}
}

Definition at line 84 of file Pci.c.

◆ PCIPIFClass_0e00

PCI_CLASS_ENTRY PCIPIFClass_0e00
Initial value:
= {
{
0x00,
L"Message FIFO at offset 40h",
PCIBlankEntry
},
{
0x01,
L"",
PCIBlankEntry
},
{
0x00,
}
}

Definition at line 85 of file Pci.c.

◆ PCISubClass_00

PCI_CLASS_ENTRY PCISubClass_00
Initial value:
= {
{
0x00,
L"All devices other than VGA",
PCIBlankEntry
},
{
0x01,
L"VGA-compatible devices",
PCIBlankEntry
},
{
0x00,
}
}

Definition at line 42 of file Pci.c.

◆ PCISubClass_01

PCI_CLASS_ENTRY PCISubClass_01

Definition at line 43 of file Pci.c.

◆ PCISubClass_02

PCI_CLASS_ENTRY PCISubClass_02

Definition at line 44 of file Pci.c.

◆ PCISubClass_03

PCI_CLASS_ENTRY PCISubClass_03
Initial value:
= {
{
0x00,
L"VGA/8514 controller",
PCIPIFClass_0300
},
{
0x01,
L"XGA controller",
PCIBlankEntry
},
{
0x02,
L"3D controller",
PCIBlankEntry
},
{
0x80,
L"Other display controller",
PCIBlankEntry
},
{
0x00,
PCIBlankEntry
}
}

Definition at line 45 of file Pci.c.

◆ PCISubClass_04

PCI_CLASS_ENTRY PCISubClass_04

Definition at line 46 of file Pci.c.

◆ PCISubClass_05

PCI_CLASS_ENTRY PCISubClass_05
Initial value:
= {
{
0x00,
L"RAM memory controller",
PCIBlankEntry
},
{
0x01,
L"Flash memory controller",
PCIBlankEntry
},
{
0x80,
L"Other memory controller",
PCIBlankEntry
},
{
0x00,
}
}

Definition at line 47 of file Pci.c.

◆ PCISubClass_06

PCI_CLASS_ENTRY PCISubClass_06

Definition at line 48 of file Pci.c.

◆ PCISubClass_07

PCI_CLASS_ENTRY PCISubClass_07

Definition at line 49 of file Pci.c.

◆ PCISubClass_08

PCI_CLASS_ENTRY PCISubClass_08

Definition at line 50 of file Pci.c.

◆ PCISubClass_09

PCI_CLASS_ENTRY PCISubClass_09

Definition at line 51 of file Pci.c.

◆ PCISubClass_0a

PCI_CLASS_ENTRY PCISubClass_0a
Initial value:
= {
{
0x00,
L"Generic docking station",
PCIBlankEntry
},
{
0x80,
L"Other type of docking station",
PCIBlankEntry
},
{
0x00,
}
}

Definition at line 52 of file Pci.c.

◆ PCISubClass_0b

PCI_CLASS_ENTRY PCISubClass_0b

Definition at line 53 of file Pci.c.

◆ PCISubClass_0c

PCI_CLASS_ENTRY PCISubClass_0c

Definition at line 54 of file Pci.c.

◆ PCISubClass_0d

PCI_CLASS_ENTRY PCISubClass_0d

Definition at line 55 of file Pci.c.

◆ PCISubClass_0e

PCI_CLASS_ENTRY PCISubClass_0e
Initial value:
= {
{
0x00,
L"I2O Architecture",
PCIPIFClass_0e00
},
{
0x00,
}
}

Definition at line 56 of file Pci.c.

◆ PCISubClass_0f

PCI_CLASS_ENTRY PCISubClass_0f

Definition at line 57 of file Pci.c.

◆ PCISubClass_10

PCI_CLASS_ENTRY PCISubClass_10
Initial value:
= {
{
0x00,
L"Network & computing Encrypt/Decrypt",
PCIBlankEntry
},
{
0x01,
L"Entertainment Encrypt/Decrypt",
PCIBlankEntry
},
{
0x80,
L"Other Encrypt/Decrypt",
PCIBlankEntry
},
{
0x00,
}
}

Definition at line 58 of file Pci.c.

◆ PCISubClass_11

PCI_CLASS_ENTRY PCISubClass_11

Definition at line 59 of file Pci.c.

◆ PCISubClass_12

PCI_CLASS_ENTRY PCISubClass_12
Initial value:
= {
{
0x00,
L"Processing Accelerator",
PCIBlankEntry
},
{
0x00,
}
}

Definition at line 60 of file Pci.c.

◆ PCISubClass_13

PCI_CLASS_ENTRY PCISubClass_13
Initial value:
= {
{
0x00,
L"Non-Essential Instrumentation Function",
PCIBlankEntry
},
{
0x00,
}
}

Definition at line 61 of file Pci.c.

◆ SlotPwrLmtScaleTable

CHAR16* SlotPwrLmtScaleTable[]
Initial value:
= {
L"1.0x",
L"0.1x",
L"0.01x",
L"0.001x"
}

Definition at line 2413 of file Pci.c.