#include "acpi.h"
#include "accommon.h"
Go to the source code of this file.
◆ _COMPONENT
◆ PCI_CFG_HEADER_TYPE_REG
#define PCI_CFG_HEADER_TYPE_REG 0x0E |
◆ PCI_CFG_PRIMARY_BUS_NUMBER_REG
#define PCI_CFG_PRIMARY_BUS_NUMBER_REG 0x18 |
◆ PCI_CFG_SECONDARY_BUS_NUMBER_REG
#define PCI_CFG_SECONDARY_BUS_NUMBER_REG 0x19 |
◆ PCI_HEADER_TYPE_MASK
#define PCI_HEADER_TYPE_MASK 0x7F |
◆ PCI_TYPE_BRIDGE
◆ PCI_TYPE_CARDBUS_BRIDGE
#define PCI_TYPE_CARDBUS_BRIDGE 0x02 |
◆ ACPI_PCI_DEVICE
◆ AcpiHwBuildPciList()
Definition at line 192 of file hwpci.c.
208 *ReturnListHead =
NULL;
209 CurrentDevice = PciRegion;
239 ListElement->
Next = *ReturnListHead;
241 *ReturnListHead = ListElement;
static void AcpiHwDeletePciList(ACPI_PCI_DEVICE *ListHead)
ACPI_STATUS AcpiGetParent(ACPI_HANDLE Handle, ACPI_HANDLE *RetHandle)
_Must_inspect_result_ _In_ WDFDEVICE ParentDevice
struct acpi_pci_device * Next
Referenced by AcpiHwDerivePciId().
◆ AcpiHwDeletePciList()
◆ AcpiHwDerivePciId()
Definition at line 137 of file hwpci.c.
static void AcpiHwDeletePciList(ACPI_PCI_DEVICE *ListHead)
static ACPI_STATUS AcpiHwProcessPciList(ACPI_PCI_ID *PciId, ACPI_PCI_DEVICE *ListHead)
static ACPI_STATUS AcpiHwBuildPciList(ACPI_HANDLE RootPciDevice, ACPI_HANDLE PciRegion, ACPI_PCI_DEVICE **ReturnListHead)
#define return_ACPI_STATUS(s)
#define ACPI_FUNCTION_TRACE(a)
Referenced by AcpiEvPciConfigRegionSetup().
◆ AcpiHwGetPciDeviceInfo()
Definition at line 367 of file hwpci.c.
#define ACPI_LODWORD(Integer64)
ACPI_STATUS AcpiOsReadPciConfiguration(ACPI_PCI_ID *PciId, UINT32 Reg, UINT64 *Value, UINT32 Width)
#define ACPI_LOWORD(Integer)
ACPI_STATUS AcpiUtEvaluateNumericObject(const char *ObjectName, ACPI_NAMESPACE_NODE *DeviceNode, UINT64 *Value)
UINT32 void void ** ReturnValue
#define PCI_CFG_SECONDARY_BUS_NUMBER_REG
_In_opt_ PUNICODE_STRING _In_ PDRIVER_OBJECT _In_ PDEVICE_OBJECT _In_ INTERFACE_TYPE _In_ ULONG BusNumber
#define PCI_TYPE_CARDBUS_BRIDGE
#define PCI_HEADER_TYPE_MASK
#define PCI_CFG_PRIMARY_BUS_NUMBER_REG
#define ACPI_HIWORD(Integer)
#define PCI_CFG_HEADER_TYPE_REG
ACPI_STATUS AcpiGetType(ACPI_HANDLE Handle, ACPI_OBJECT_TYPE *RetType)
unsigned long long UINT64
Referenced by AcpiHwProcessPciList().
◆ AcpiHwProcessPciList()
Definition at line 266 of file hwpci.c.
280 "Input PciId: Seg %4.4X Bus %4.4X Dev %4.4X Func %4.4X\n",
306 "Output PciId: Seg %4.4X Bus %4.4X Dev %4.4X Func %4.4X " 307 "Status %X BusNumber %X IsBridge %X\n",
_Must_inspect_result_ _In_ WDFCHILDLIST _In_ PWDF_CHILD_LIST_ITERATOR _Out_ WDFDEVICE _Inout_opt_ PWDF_CHILD_RETRIEVE_INFO Info
_In_opt_ PUNICODE_STRING _In_ PDRIVER_OBJECT _In_ PDEVICE_OBJECT _In_ INTERFACE_TYPE _In_ ULONG BusNumber
#define ACPI_DEBUG_PRINT(pl)
static ACPI_STATUS AcpiHwGetPciDeviceInfo(ACPI_PCI_ID *PciId, ACPI_HANDLE PciDevice, UINT16 *BusNumber, BOOLEAN *IsBridge)
#define ACPI_FUNCTION_NAME(a)
Referenced by AcpiHwDerivePciId().