ReactOS 0.4.15-dev-6067-g0b695a6
|
#include <ntddk.h>
#include <ntstrsafe.h>
#include <section_attribs.h>
#include "isapnphw.h"
#include <initguid.h>
#include <wdmguid.h>
Go to the source code of this file.
Classes | |
struct | _ISAPNP_IO |
struct | _ISAPNP_IRQ |
struct | _ISAPNP_DMA |
struct | _ISAPNP_MEMRANGE |
struct | _ISAPNP_MEMRANGE32 |
struct | _ISAPNP_COMPATIBLE_ID_ENTRY |
struct | _ISAPNP_ALTERNATIVES |
struct | _ISAPNP_LOGICAL_DEVICE |
struct | _ISAPNP_COMMON_EXTENSION |
struct | _ISAPNP_FDO_EXTENSION |
struct | _ISAPNP_PDO_EXTENSION |
Macros | |
#define | TAG_ISAPNP 'pasI' |
#define | ISAPNP_MAX_RESOURCEDATA 0x1000 |
Maximum size of resource data structure supported by the driver. | |
#define | ISAPNP_MAX_ALTERNATIVES 8 |
Maximum number of Start DF tags supported by the driver. | |
#define | ISAPNP_PRESENT 0x00000001 |
Cleared when the device is physically removed. | |
#define | ISAPNP_HAS_MULTIPLE_LOGDEVS 0x00000002 |
Indicates if the parent card has multiple logical devices. | |
#define | ISAPNP_HAS_RESOURCES 0x00000004 |
Cleared when the device has no boot resources. | |
#define | ISAPNP_ENUMERATED 0x00000001 |
Whether the device has been reported to the PnP manager. | |
#define | ISAPNP_SCANNED_BY_READ_PORT 0x00000002 |
The bus has been scanned by Read Port PDO. | |
#define | ISAPNP_READ_PORT_ALLOW_FDO_SCAN 0x00000004 |
Allows the active FDO to scan the bus. | |
#define | ISAPNP_READ_PORT_NEED_REBALANCE 0x00000008 |
The I/O resource requirements have changed. | |
Enumerations | |
enum | ISAPNP_DEVICE_STATE { dsStopped , dsStarted } |
enum | _ISAPNP_SIGNATURE { IsaPnpBus = 'odFI' , IsaPnpLogicalDevice = 'veDI' , IsaPnpReadDataPort = 'pdRI' } |
Variables | |
KEVENT | BusSyncEvent |
DRIVER_INITIALIZE | DriverEntry |
_In_ PISAPNP_LOGICAL_DEVICE | LogicalDevice |
#define ISAPNP_ENUMERATED 0x00000001 |
#define ISAPNP_HAS_MULTIPLE_LOGDEVS 0x00000002 |
#define ISAPNP_HAS_RESOURCES 0x00000004 |
#define ISAPNP_MAX_ALTERNATIVES 8 |
#define ISAPNP_MAX_RESOURCEDATA 0x1000 |
#define ISAPNP_PRESENT 0x00000001 |
#define ISAPNP_READ_PORT_ALLOW_FDO_SCAN 0x00000004 |
#define ISAPNP_READ_PORT_NEED_REBALANCE 0x00000008 |
#define ISAPNP_SCANNED_BY_READ_PORT 0x00000002 |
typedef struct _ISAPNP_DMA ISAPNP_DMA |
typedef struct _ISAPNP_IO ISAPNP_IO |
typedef struct _ISAPNP_IRQ ISAPNP_IRQ |
typedef struct _ISAPNP_MEMRANGE ISAPNP_MEMRANGE |
typedef enum _ISAPNP_SIGNATURE ISAPNP_SIGNATURE |
typedef struct _ISAPNP_ALTERNATIVES * PISAPNP_ALTERNATIVES |
typedef struct _ISAPNP_DMA * PISAPNP_DMA |
typedef struct _ISAPNP_FDO_EXTENSION * PISAPNP_FDO_EXTENSION |
typedef struct _ISAPNP_IO * PISAPNP_IO |
typedef struct _ISAPNP_IRQ * PISAPNP_IRQ |
typedef struct _ISAPNP_MEMRANGE * PISAPNP_MEMRANGE |
typedef struct _ISAPNP_MEMRANGE32 * PISAPNP_MEMRANGE32 |
typedef struct _ISAPNP_PDO_EXTENSION * PISAPNP_PDO_EXTENSION |
Enumerator | |
---|---|
IsaPnpBus | |
IsaPnpLogicalDevice | |
IsaPnpReadDataPort |
Enumerator | |
---|---|
dsStopped | |
dsStarted |
_Guarded_by_ | ( | BusSyncEvent | ) |
Definition at line 23 of file isapnp.c.
_IRQL_requires_max_ | ( | DISPATCH_LEVEL | ) |
Definition at line 347 of file hardware.c.
_Releases_lock_ | ( | BusSyncEvent | ) |
_Releases_lock_ | ( | FdoExt-> | DeviceSyncEvent | ) |
_Requires_lock_held_ | ( | FdoExt-> | DeviceSyncEvent | ) |
Definition at line 1460 of file hardware.c.
_Requires_lock_not_held_ | ( | BusSyncEvent | ) |
_Requires_lock_not_held_ | ( | FdoExt-> | DeviceSyncEvent | ) | -> DeviceSyncEvent) FORCEINLINE VOID IsaPnpAcquireDeviceDataLock( _In_ PISAPNP_FDO_EXTENSION FdoExt) |
BOOLEAN FindDmaDescriptor | ( | _In_ PISAPNP_LOGICAL_DEVICE | LogDevice, |
_In_ ULONG | Channel, | ||
_Out_opt_ PUCHAR | WriteOrder | ||
) |
Definition at line 639 of file isapnp.c.
Referenced by IsaHwConfigureDevice(), IsaPnpCreateLogicalDeviceResources(), and WriteResources().
BOOLEAN FindIoDescriptor | ( | _In_ PISAPNP_LOGICAL_DEVICE | LogDevice, |
_In_opt_ ULONG | Base, | ||
_In_ ULONG | RangeStart, | ||
_In_ ULONG | RangeEnd, | ||
_Out_opt_ PUCHAR | Information, | ||
_Out_opt_ PULONG | Length, | ||
_Out_opt_ PUCHAR | WriteOrder | ||
) |
Definition at line 518 of file isapnp.c.
Referenced by IsaHwConfigureDevice(), IsaPnpCreateLogicalDeviceResources(), and WriteResources().
BOOLEAN FindIrqDescriptor | ( | _In_ PISAPNP_LOGICAL_DEVICE | LogDevice, |
_In_ ULONG | Vector, | ||
_Out_opt_ PUCHAR | WriteOrder | ||
) |
Definition at line 583 of file isapnp.c.
Referenced by IsaHwConfigureDevice(), IsaPnpCreateLogicalDeviceResources(), and WriteResources().
BOOLEAN FindMemoryDescriptor | ( | _In_ PISAPNP_LOGICAL_DEVICE | LogDevice, |
_In_ ULONG | RangeStart, | ||
_In_ ULONG | RangeEnd, | ||
_Out_opt_ PBOOLEAN | Memory32, | ||
_Out_opt_ PUCHAR | Information, | ||
_Out_opt_ PUCHAR | WriteOrder | ||
) |
Definition at line 695 of file isapnp.c.
Referenced by IsaHwConfigureDevice(), IsaPnpCreateLogicalDeviceResources(), and WriteResources().
FORCEINLINE BOOLEAN HasDmaAlternatives | ( | _In_ PISAPNP_ALTERNATIVES | Alternatives | ) |
Definition at line 258 of file isapnp.h.
Referenced by IsaPnpCreateLogicalDeviceRequirements(), and ParseTags().
FORCEINLINE BOOLEAN HasIoAlternatives | ( | _In_ PISAPNP_ALTERNATIVES | Alternatives | ) |
Definition at line 242 of file isapnp.h.
Referenced by IsaPnpCreateLogicalDeviceRequirements(), and ParseTags().
FORCEINLINE BOOLEAN HasIrqAlternatives | ( | _In_ PISAPNP_ALTERNATIVES | Alternatives | ) |
Definition at line 250 of file isapnp.h.
Referenced by IsaPnpCreateLogicalDeviceRequirements(), and ParseTags().
FORCEINLINE BOOLEAN HasMemory32Alternatives | ( | _In_ PISAPNP_ALTERNATIVES | Alternatives | ) |
Definition at line 274 of file isapnp.h.
Referenced by IsaPnpCreateLogicalDeviceRequirements(), and ParseTags().
FORCEINLINE BOOLEAN HasMemoryAlternatives | ( | _In_ PISAPNP_ALTERNATIVES | Alternatives | ) |
Definition at line 266 of file isapnp.h.
Referenced by IsaPnpCreateLogicalDeviceRequirements(), and ParseTags().
NTSTATUS IsaFdoPnp | ( | _In_ PISAPNP_FDO_EXTENSION | FdoExt, |
_Inout_ PIRP | Irp, | ||
_In_ PIO_STACK_LOCATION | IrpSp | ||
) |
Definition at line 123 of file fdo.c.
Referenced by _Dispatch_type_().
NTSTATUS IsaFdoQueryInterface | ( | _In_ PISAPNP_FDO_EXTENSION | FdoExt, |
_In_ PIO_STACK_LOCATION | IrpSp | ||
) |
Definition at line 19 of file interface.c.
Referenced by _Dispatch_type_(), and IsaFdoPnp().
NTSTATUS IsaHwConfigureDevice | ( | _In_ PISAPNP_FDO_EXTENSION | FdoExt, |
_In_ PISAPNP_LOGICAL_DEVICE | LogicalDevice, | ||
_In_ PCM_RESOURCE_LIST | Resources | ||
) |
Definition at line 1603 of file hardware.c.
Referenced by IsaPdoPnp().
Definition at line 1362 of file hardware.c.
Referenced by IsaPdoStartReadPort(), and IsaPnpFillDeviceRelations().
NTSTATUS IsaPdoPnp | ( | _In_ PISAPNP_PDO_EXTENSION | PdoDeviceExtension, |
_Inout_ PIRP | Irp, | ||
_In_ PIO_STACK_LOCATION | IrpSp | ||
) |
Definition at line 864 of file pdo.c.
Referenced by _Dispatch_type_().
NTSTATUS IsaPnpCreateReadPortDORequirements | ( | _In_ PISAPNP_PDO_EXTENSION | PdoExt, |
_In_opt_ ULONG | SelectedReadPort | ||
) |
Definition at line 1042 of file isapnp.c.
Referenced by IsaPdoStartReadPort(), and IsaPnpCreateReadPortDO().
NTSTATUS IsaPnpFillDeviceRelations | ( | _In_ PISAPNP_FDO_EXTENSION | FdoExt, |
_Inout_ PIRP | Irp, | ||
_In_ BOOLEAN | IncludeDataPort | ||
) |
Definition at line 1304 of file isapnp.c.
Referenced by IsaFdoQueryBusRelations(), and IsaPdoQueryDeviceRelations().
VOID IsaPnpRemoveLogicalDeviceDO | ( | _In_ PDEVICE_OBJECT | Pdo | ) |
Definition at line 820 of file pdo.c.
Referenced by IsaFdoRemoveDevice(), and IsaPdoRemoveDevice().
VOID IsaPnpRemoveReadPortDO | ( | _In_ PDEVICE_OBJECT | Pdo | ) |
Definition at line 1284 of file isapnp.c.
Referenced by IsaFdoRemoveDevice(), IsaPnpCreateReadPortDO(), and IsaReadPortRemoveDevice().
|
extern |
Definition at line 21 of file isapnp.c.
Referenced by _Releases_lock_(), _Requires_lock_not_held_(), and DriverEntry().
_In_ PISAPNP_LOGICAL_DEVICE LogicalDevice |
Definition at line 399 of file isapnp.h.
Referenced by _IRQL_requires_max_(), and IsaHwConfigureDevice().