|
ReactOS 0.4.17-dev-1190-g4c812f4
|

Go to the source code of this file.
Macros | |
| #define | NDEBUG |
Variables | |
| LONG | PciPdoSequenceNumber |
| PCI_MN_DISPATCH_TABLE | PciPdoDispatchPowerTable [] |
| PCI_MN_DISPATCH_TABLE | PciPdoDispatchPnpTable [] |
| PCI_MJ_DISPATCH_TABLE | PciPdoDispatchTable |
| static IO_WORKITEM_ROUTINE | PciPdoDevicePowerWorker |
| C_ASSERT | ( | FIELD_OFFSET(PCI_FDO_EXTENSION, DeviceState) | = =FIELD_OFFSET(PCI_PDO_EXTENSION, DeviceState) | ) |
| C_ASSERT | ( | FIELD_OFFSET(PCI_FDO_EXTENSION, List) | = =FIELD_OFFSET(PCI_PDO_EXTENSION, Next) | ) |
| C_ASSERT | ( | FIELD_OFFSET(PCI_FDO_EXTENSION, TentativeNextState) | = =FIELD_OFFSET(PCI_PDO_EXTENSION, TentativeNextState) | ) |
|
static |
Checks whether a request for a low power device state may take power from a function.
| [in] | DeviceExtension | The PDO extension of the function. |
| [in] | DeviceState | The low power state being entered. |
Definition at line 402 of file pdo.c.
Referenced by PciPdoEnterDevicePowerState().
|
static |
Checks whether a function may stop decoding for as long as it is stopped or removed.
| [in] | DeviceExtension | The PDO extension of the function. |
Definition at line 300 of file pdo.c.
Referenced by PciPdoCanPowerDown(), PciPdoIrpQueryStopDevice(), and PciPdoTurnOff().
| NTSTATUS NTAPI PciPdoCreate | ( | IN PPCI_FDO_EXTENSION | DeviceExtension, |
| IN PCI_SLOT_NUMBER | Slot, | ||
| OUT PDEVICE_OBJECT * | PdoDeviceObject | ||
| ) |
Definition at line 1022 of file pdo.c.
Referenced by PciScanBus().
|
static |
Completes a device set power request that arrived at raised IRQL.
| [in] | Context | The pending device power IRP. |
Definition at line 511 of file pdo.c.
|
static |
Moves a function to a device power state and reports it to the power manager.
| [in,out] | DeviceExtension | The PDO extension of the function. |
| [in] | DeviceState | The state to enter, D0 through D3. |
Definition at line 451 of file pdo.c.
Referenced by PciPdoDevicePowerWorker(), and PciPdoSetPowerState().
| NTSTATUS NTAPI PciPdoIrpCancelRemoveDevice | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_PDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 597 of file pdo.c.
| NTSTATUS NTAPI PciPdoIrpCancelStopDevice | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_PDO_EXTENSION | DeviceExtension | ||
| ) |
| NTSTATUS NTAPI PciPdoIrpDeviceUsageNotification | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_PDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 956 of file pdo.c.
| NTSTATUS NTAPI PciPdoIrpQueryBusInformation | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_PDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 809 of file pdo.c.
| NTSTATUS NTAPI PciPdoIrpQueryCapabilities | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_PDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 731 of file pdo.c.
| NTSTATUS NTAPI PciPdoIrpQueryDeviceRelations | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_PDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 697 of file pdo.c.
| NTSTATUS NTAPI PciPdoIrpQueryDeviceState | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_PDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 930 of file pdo.c.
| NTSTATUS NTAPI PciPdoIrpQueryDeviceText | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_PDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 778 of file pdo.c.
| NTSTATUS NTAPI PciPdoIrpQueryId | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_PDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 795 of file pdo.c.
| NTSTATUS NTAPI PciPdoIrpQueryInterface | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_PDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 671 of file pdo.c.
| NTSTATUS NTAPI PciPdoIrpQueryLegacyBusInformation | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_PDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 1006 of file pdo.c.
| NTSTATUS NTAPI PciPdoIrpQueryPower | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_PDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 144 of file pdo.c.
| NTSTATUS NTAPI PciPdoIrpQueryRemoveDevice | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_PDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 534 of file pdo.c.
| NTSTATUS NTAPI PciPdoIrpQueryResourceRequirements | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_PDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 762 of file pdo.c.
| NTSTATUS NTAPI PciPdoIrpQueryResources | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_PDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 747 of file pdo.c.
| NTSTATUS NTAPI PciPdoIrpQueryStopDevice | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_PDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 632 of file pdo.c.
| NTSTATUS NTAPI PciPdoIrpReadConfig | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_PDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 908 of file pdo.c.
| NTSTATUS NTAPI PciPdoIrpRemoveDevice | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_PDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 560 of file pdo.c.
| NTSTATUS NTAPI PciPdoIrpStartDevice | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_PDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 158 of file pdo.c.
| NTSTATUS NTAPI PciPdoIrpStopDevice | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_PDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 613 of file pdo.c.
| NTSTATUS NTAPI PciPdoIrpSurpriseRemoval | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_PDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 976 of file pdo.c.
| NTSTATUS NTAPI PciPdoIrpWriteConfig | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_PDO_EXTENSION | DeviceExtension | ||
| ) |
|
static |
Reads the identity back from the slot to learn whether the function is still there.
| [in,out] | DeviceExtension | The PDO extension of the function. Marked not present if the identity differs. |
Definition at line 320 of file pdo.c.
Referenced by PciPdoIrpRemoveDevice(), and PciPdoIrpSurpriseRemoval().
|
static |
Serves a driver's read or write of its own function's configuration space.
| [in] | Read | TRUE to read configuration space, FALSE to write it. |
Definition at line 836 of file pdo.c.
Referenced by PciPdoIrpReadConfig(), and PciPdoIrpWriteConfig().
| NTSTATUS NTAPI PciPdoSetPowerState | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_PDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 104 of file pdo.c.
|
static |
Stops a function from decoding, mastering and raising interrupts, and optionally moves it to D3.
| [in,out] | DeviceExtension | The PDO extension of the function. |
| [in] | PowerDown | TRUE to also power the function down. |
Definition at line 353 of file pdo.c.
Referenced by PciPdoEnterDevicePowerState(), PciPdoIrpRemoveDevice(), PciPdoIrpStopDevice(), and PciPdoIrpSurpriseRemoval().
|
static |
Checks the uses of a function that keep it from being stopped or removed.
| [in] | DeviceExtension | The PDO extension of the function. |
Definition at line 268 of file pdo.c.
Referenced by PciPdoIrpQueryDeviceState(), PciPdoIrpQueryRemoveDevice(), and PciPdoIrpQueryStopDevice().
| NTSTATUS NTAPI PciPdoWaitWake | ( | IN PIRP | Irp, |
| IN PIO_STACK_LOCATION | IoStackLocation, | ||
| IN PPCI_PDO_EXTENSION | DeviceExtension | ||
| ) |
Definition at line 88 of file pdo.c.
|
static |
Definition at line 84 of file pdo.c.
Referenced by PciPdoSetPowerState().
| PCI_MN_DISPATCH_TABLE PciPdoDispatchPnpTable[] |
| PCI_MN_DISPATCH_TABLE PciPdoDispatchPowerTable[] |
| PCI_MJ_DISPATCH_TABLE PciPdoDispatchTable |
Definition at line 63 of file pdo.c.
Referenced by PciPdoCreate().
| LONG PciPdoSequenceNumber |
Definition at line 18 of file pdo.c.
Referenced by PciPdoCreate().