ReactOS 0.4.16-dev-319-g6cf4263
|
#include <hal.h>
Go to the source code of this file.
Macros | |
#define | DPRINT0 |
Functions | |
static ULONG | HalpPciBarLength (_In_ ULONG CurrentBar, _In_ ULONG NextBar) |
static BOOLEAN | HalpConfigureDebuggingDevice (_In_ PDEBUG_DEVICE_DESCRIPTOR PciDevice, _In_ ULONG PciBus, _In_ PCI_SLOT_NUMBER PciSlot, _Inout_ PPCI_COMMON_HEADER PciConfig) |
static BOOLEAN | HalpMatchDebuggingDevice (_In_ PDEBUG_DEVICE_DESCRIPTOR PciDevice, _In_ ULONG PciBus, _In_ PCI_SLOT_NUMBER PciSlot, _In_ PPCI_COMMON_HEADER PciConfig) |
static BOOLEAN | HalpFindMatchingDebuggingDevice (_In_ PDEBUG_DEVICE_DESCRIPTOR PciDevice) |
VOID NTAPI | HalpRegisterPciDebuggingDeviceInfo (VOID) |
NTSTATUS NTAPI | HalpReleasePciDeviceForDebugging (_Inout_ PDEBUG_DEVICE_DESCRIPTOR PciDevice) |
Releases the PCI device MMIO mappings previously allocated with HalpSetupPciDeviceForDebugging(). | |
NTSTATUS NTAPI | HalpSetupPciDeviceForDebugging (_In_opt_ PVOID LoaderBlock, _Inout_ PDEBUG_DEVICE_DESCRIPTOR PciDevice) |
Finds and fully initializes the PCI device associated with the supplied debug device descriptor. | |
Variables | |
PCI_TYPE1_CFG_CYCLE_BITS | HalpPciDebuggingDevice [2] = {0} |
|
static |
Definition at line 72 of file kdpci.c.
Referenced by HalpFindMatchingDebuggingDevice().
|
static |
Definition at line 237 of file kdpci.c.
Referenced by HalpSetupPciDeviceForDebugging().
|
static |
Definition at line 198 of file kdpci.c.
Referenced by HalpFindMatchingDebuggingDevice().
Definition at line 331 of file kdpci.c.
Referenced by HalReportResourceUsage().
NTSTATUS NTAPI HalpReleasePciDeviceForDebugging | ( | _Inout_ PDEBUG_DEVICE_DESCRIPTOR | PciDevice | ) |
Releases the PCI device MMIO mappings previously allocated with HalpSetupPciDeviceForDebugging().
This is used to release resources when a device specific initialization fails.
[in,out] | PciDevice | Pointer to the debug device descriptor, whose mappings are to be released. |
Definition at line 421 of file kdpci.c.
Referenced by HalpRegisterKdSupportFunctions().
NTSTATUS NTAPI HalpSetupPciDeviceForDebugging | ( | _In_opt_ PVOID | LoaderBlock, |
_Inout_ PDEBUG_DEVICE_DESCRIPTOR | PciDevice | ||
) |
Finds and fully initializes the PCI device associated with the supplied debug device descriptor.
[in] | LoaderBlock | Pointer to the Loader parameter block. Can be NULL. |
[in,out] | PciDevice | Pointer to the debug device descriptor. |
This routine is used to match devices to debug device descriptors during boot phase of the system. This function will search the first device that matches the criteria given by the fields of the debug device descriptor. A value of all 1's for the field will indicate that the function should ignore that field in the search criteria. The Length
field of the debug memory requirements optionally specifies library-determined number of bytes to be allocated for the device context.
Example:
Definition at line 483 of file kdpci.c.
Referenced by HalpRegisterKdSupportFunctions().
PCI_TYPE1_CFG_CYCLE_BITS HalpPciDebuggingDevice[2] = {0} |
Definition at line 31 of file kdpci.c.
Referenced by HalpRegisterPciDebuggingDeviceInfo(), and HalpSetupPciDeviceForDebugging().