|
ReactOS 0.4.17-dev-934-g091855f
|
#include <pci.h>#include <debug.h>
Go to the source code of this file.
Macros | |
| #define | NDEBUG |
| #define | PCI_ECAM_BUS_COUNT (PCI_MAX_BRIDGE_NUMBER + 1) |
| #define | PCI_ECAM_BUS_SIZE (PCI_MAX_DEVICES * PCI_MAX_FUNCTION * PCI_EXTENDED_CONFIG_LENGTH) |
Functions | |
| static BOOLEAN NTAPI | PciEcamParseWindow (_In_ PKEY_VALUE_PARTIAL_INFORMATION Value) |
| static NTSTATUS NTAPI | PciEcamQueryWindow (VOID) |
| static PUCHAR NTAPI | PciEcamMapBus (_In_ ULONG Bus) |
| static VOID NTAPI | PciEcamDiscardWindow (VOID) |
| static PUCHAR NTAPI | PciEcamFunctionBase (_In_ ULONG Bus, _In_ PCI_SLOT_NUMBER Slot) |
| static VOID NTAPI | PciEcamTransfer (_In_ PUCHAR Function, _Inout_updates_bytes_(Length) PUCHAR Buffer, _In_ ULONG Offset, _In_ ULONG Length, _In_ BOOLEAN Read) |
| static NTSTATUS NTAPI | PciEcamVerifyBus (_In_ PPCI_FDO_EXTENSION FdoExtension) |
| VOID NTAPI | PciInitializeEcam (_In_ PPCI_FDO_EXTENSION FdoExtension) |
| Maps the bus an FDO decodes into the ECAM window and verifies the window the first time a bus with devices on it is seen. | |
| BOOLEAN NTAPI | PciEcamReadWriteConfig (_In_ ULONG Bus, _In_ PCI_SLOT_NUMBER Slot, _Inout_updates_bytes_(Length) PVOID Buffer, _In_ ULONG Offset, _In_ ULONG Length, _In_ BOOLEAN Read) |
| Performs a configuration space access through the ECAM window. | |
Variables | |
| BOOLEAN | PciEcamVerified = FALSE |
| static BOOLEAN | PciEcamWindowQueried = FALSE |
| static BOOLEAN | PciEcamSkipK8Northbridge = FALSE |
| static ULONGLONG | PciEcamWindowStart |
| static ULONG | PciEcamWindowBuses |
| static PUCHAR | PciEcamBusView [PCI_ECAM_BUS_COUNT] |
| #define PCI_ECAM_BUS_COUNT (PCI_MAX_BRIDGE_NUMBER + 1) |
| #define PCI_ECAM_BUS_SIZE (PCI_MAX_DEVICES * PCI_MAX_FUNCTION * PCI_EXTENDED_CONFIG_LENGTH) |
Definition at line 184 of file ecam.c.
Referenced by PciInitializeEcam().
Definition at line 203 of file ecam.c.
Referenced by PciEcamReadWriteConfig(), and PciEcamVerifyBus().
Definition at line 162 of file ecam.c.
Referenced by PciInitializeEcam().
|
static |
Definition at line 34 of file ecam.c.
Referenced by PciEcamQueryWindow().
Definition at line 74 of file ecam.c.
Referenced by PciInitializeEcam().
| BOOLEAN NTAPI PciEcamReadWriteConfig | ( | _In_ ULONG | Bus, |
| _In_ PCI_SLOT_NUMBER | Slot, | ||
| _Inout_updates_bytes_(Length) PVOID | Buffer, | ||
| _In_ ULONG | Offset, | ||
| _In_ ULONG | Length, | ||
| _In_ BOOLEAN | Read | ||
| ) |
Performs a configuration space access through the ECAM window.
Definition at line 386 of file ecam.c.
Referenced by PciReadWriteConfigSpace().
|
static |
Definition at line 226 of file ecam.c.
Referenced by PciEcamReadWriteConfig().
|
static |
Definition at line 287 of file ecam.c.
Referenced by PciInitializeEcam().
| VOID NTAPI PciInitializeEcam | ( | _In_ PPCI_FDO_EXTENSION | FdoExtension | ) |
Maps the bus an FDO decodes into the ECAM window and verifies the window the first time a bus with devices on it is seen.
| [in] | FdoExtension | The FDO extension of the bus being started. |
Definition at line 336 of file ecam.c.
Referenced by PciAddDevice().
|
static |
Definition at line 26 of file ecam.c.
Referenced by PciEcamDiscardWindow(), PciEcamFunctionBase(), and PciEcamMapBus().
Definition at line 23 of file ecam.c.
Referenced by PciEcamFunctionBase(), and PciInitializeEcam().
Definition at line 20 of file ecam.c.
Referenced by PciEcamReadWriteConfig(), PciGetExpressCapabilities(), and PciInitializeEcam().
|
static |
Definition at line 25 of file ecam.c.
Referenced by PciEcamDiscardWindow(), PciEcamFunctionBase(), PciEcamMapBus(), PciEcamParseWindow(), and PciInitializeEcam().
Definition at line 22 of file ecam.c.
Referenced by PciInitializeEcam().
|
static |
Definition at line 24 of file ecam.c.
Referenced by PciEcamMapBus(), PciEcamParseWindow(), and PciInitializeEcam().