|
ReactOS 0.4.17-dev-1196-gb6224c3
|
#include <pci.h>#include <debug.h>
Go to the source code of this file.
Macros | |
| #define | NDEBUG |
Functions | |
| NTSTATUS NTAPI | routeintrf_Initializer (IN PVOID Instance) |
| static PPCI_PDO_EXTENSION NTAPI | routeintrf_FindDevice (_In_opt_ PDEVICE_OBJECT DeviceObject, _Outptr_result_maybenull_ PPCI_LEGACY_DEVICE *LegacyDevice) |
| Finds the PDO extension behind one of our PDOs or a cached legacy device object. LegacyDevice receives the cache entry when the object came from a non-PnP driver. | |
| static VOID NTAPI | routeintrf_Reference (_In_ PVOID Context) |
| static VOID NTAPI | routeintrf_Dereference (_In_ PVOID Context) |
| static NTSTATUS NTAPI | routeintrf_GetInterruptRouting (_In_ PDEVICE_OBJECT Pdo, _Out_ ULONG *Bus, _Out_ ULONG *PciSlot, _Out_ UCHAR *InterruptLine, _Out_ UCHAR *InterruptPin, _Out_ UCHAR *ClassCode, _Out_ UCHAR *SubClassCode, _Out_ PDEVICE_OBJECT *ParentPdo, _Out_ ROUTING_TOKEN *RoutingToken, _Out_ UCHAR *Flags) |
| Describes where a device's interrupt pin is wired. ParentPdo is the PDO of the bridge above the device's bus, which is not ours for a root bus. | |
| static NTSTATUS NTAPI | routeintrf_SetInterruptRoutingToken (_In_ PDEVICE_OBJECT Pdo, _In_ PROUTING_TOKEN RoutingToken) |
| static VOID NTAPI | routeintrf_UpdateInterruptLine (_In_ PDEVICE_OBJECT Pdo, _In_ UCHAR LineRegister) |
| Programs the IRQ chosen for a device into its interrupt line register. The saved BIOS copy is updated too, so a later enumeration does not restore the old line. | |
| NTSTATUS NTAPI | routeintrf_Constructor (IN PVOID DeviceExtension, IN PVOID Instance, IN PVOID InterfaceData, IN USHORT Version, IN USHORT Size, IN PINTERFACE Interface) |
| NTSTATUS NTAPI | PciCacheLegacyDeviceRouting (IN PDEVICE_OBJECT DeviceObject, IN ULONG BusNumber, IN ULONG SlotNumber, IN UCHAR InterruptLine, IN UCHAR InterruptPin, IN UCHAR BaseClass, IN UCHAR SubClass, IN PDEVICE_OBJECT PhysicalDeviceObject, IN PPCI_PDO_EXTENSION PdoExtension, OUT PDEVICE_OBJECT *pFoundDeviceObject) |
| VOID NTAPI | PciFreeLegacyDeviceCache (VOID) |
| Frees the routing cached for slots claimed by legacy drivers. | |
Variables | |
| PPCI_LEGACY_DEVICE | PciLegacyDeviceHead |
| PCI_INTERFACE | PciRoutingInterface |
| #define NDEBUG |
Definition at line 13 of file routintf.c.
| NTSTATUS NTAPI PciCacheLegacyDeviceRouting | ( | IN PDEVICE_OBJECT | DeviceObject, |
| IN ULONG | BusNumber, | ||
| IN ULONG | SlotNumber, | ||
| IN UCHAR | InterruptLine, | ||
| IN UCHAR | InterruptPin, | ||
| IN UCHAR | BaseClass, | ||
| IN UCHAR | SubClass, | ||
| IN PDEVICE_OBJECT | PhysicalDeviceObject, | ||
| IN PPCI_PDO_EXTENSION | PdoExtension, | ||
| OUT PDEVICE_OBJECT * | pFoundDeviceObject | ||
| ) |
Definition at line 266 of file routintf.c.
Referenced by PciAssignSlotResources().
Frees the routing cached for slots claimed by legacy drivers.
Definition at line 357 of file routintf.c.
Referenced by PciDriverUnload().
| NTSTATUS NTAPI routeintrf_Constructor | ( | IN PVOID | DeviceExtension, |
| IN PVOID | Instance, | ||
| IN PVOID | InterfaceData, | ||
| IN USHORT | Version, | ||
| IN USHORT | Size, | ||
| IN PINTERFACE | Interface | ||
| ) |
Definition at line 236 of file routintf.c.
|
static |
Finds the PDO extension behind one of our PDOs or a cached legacy device object. LegacyDevice receives the cache entry when the object came from a non-PnP driver.
Definition at line 57 of file routintf.c.
Referenced by routeintrf_GetInterruptRouting(), routeintrf_SetInterruptRoutingToken(), and routeintrf_UpdateInterruptLine().
|
static |
Describes where a device's interrupt pin is wired. ParentPdo is the PDO of the bridge above the device's bus, which is not ours for a root bus.
Definition at line 116 of file routintf.c.
Referenced by routeintrf_Constructor().
Definition at line 37 of file routintf.c.
Definition at line 93 of file routintf.c.
Referenced by routeintrf_Constructor().
|
static |
Definition at line 166 of file routintf.c.
Referenced by routeintrf_Constructor().
|
static |
Programs the IRQ chosen for a device into its interrupt line register. The saved BIOS copy is updated too, so a later enumeration does not restore the old line.
Definition at line 200 of file routintf.c.
Referenced by routeintrf_Constructor().
| PPCI_LEGACY_DEVICE PciLegacyDeviceHead |
Definition at line 18 of file routintf.c.
Referenced by PciCacheLegacyDeviceRouting(), PciFreeLegacyDeviceCache(), and routeintrf_FindDevice().
| PCI_INTERFACE PciRoutingInterface |
Definition at line 20 of file routintf.c.