ReactOS 0.4.16-dev-88-ga65b6ae
|
#include <ntoskrnl.h>
#include <debug.h>
Go to the source code of this file.
Classes | |
struct | _IO_QUERY |
Macros | |
#define | NDEBUG |
#define | IORSRCTRACE(...) do { if(0) { DbgPrint(__VA_ARGS__); } } while(0) |
Typedefs | |
typedef struct _IO_QUERY | IO_QUERY |
typedef struct _IO_QUERY * | PIO_QUERY |
Variables | |
static CONFIGURATION_INFORMATION | _SystemConfigurationInformation = { 0, 0, 0, 0, 0, 0, 0, FALSE, FALSE, 0, 0 } |
PCWSTR | ArcTypes [MaximumType+1] |
PCWSTR | IoDeviceInfoNames [IoQueryDeviceMaxData] |
NTSTATUS NTAPI IoAssignResources | ( | _In_ PUNICODE_STRING | RegistryPath, |
_In_opt_ PUNICODE_STRING | DriverClassName, | ||
_In_ PDRIVER_OBJECT | DriverObject, | ||
_In_opt_ PDEVICE_OBJECT | DeviceObject, | ||
_In_opt_ PIO_RESOURCE_REQUIREMENTS_LIST | RequestedResources, | ||
_Inout_ PCM_RESOURCE_LIST * | AllocatedResources | ||
) |
Definition at line 1134 of file iorsrce.c.
Referenced by PciAssignSlotResources(), and VideoPortGetAccessRanges().
PCONFIGURATION_INFORMATION NTAPI IoGetConfigurationInformation | ( | VOID | ) |
Returns a pointer to the I/O manager's global configuration information structure.
This structure contains the current values for how many physical storage media, SCSI HBA, serial, and parallel devices have device objects created to represent them by drivers as they are loaded.
Definition at line 998 of file iorsrce.c.
Referenced by AddControllers(), AddDeviceInternal(), DeviceEvtSelfManagedIoCleanup(), DeviceEvtSelfManagedIoInit(), DiskAddDevice(), DiskRemoveDevice(), DriverEntry(), FdoRemoveAdapter(), FdoStartAdapter(), InitializeConfiguration(), IoGetBootDiskInformation(), IopCreateArcNamesCd(), IopCreateArcNamesDisk(), QSI_DEF(), ScsiFlopAddDevice(), ScsiFlopRemoveDevice(), ScsiPortInitialize(), SerialAddDeviceInternal(), SpiConfigToResource(), SpiCreatePortConfig(), UniataFindBusMasterController(), VfdCreateDevice(), VfdDeleteDevice(), and xHalIoAssignDriveLetters().
NTSTATUS IopFetchConfigurationInformation | ( | _Out_ PWSTR * | SymbolicLinkList, |
_In_ GUID | Guid, | ||
_In_ ULONG | ExpectedInterfaces, | ||
_Out_ PULONG | Interfaces | ||
) |
Definition at line 821 of file iorsrce.c.
Referenced by IopCreateArcNamesCd(), and IopCreateArcNamesDisk().
|
static |
Definition at line 1093 of file iorsrce.c.
Referenced by IoAssignResources().
|
static |
Reads and returns Hardware information from the appropriate hardware registry key. Helper stub of IoQueryDeviceDescription(). Has two modes of operation, either looking for root bus types or for sub-bus information.
[in] | Query | What the parent function wants. |
[in] | RootKey | Which key to look in. |
[in] | RootKeyHandle | Handle to the key. |
[in,out] | Bus | Pointer to the current bus number. |
[in] | KeyIsRoot | Whether we are looking for root bus types or information under them. |
Definition at line 566 of file iorsrce.c.
Referenced by IopQueryBusDescription(), and IoQueryDeviceDescription().
|
static |
Reads and returns Hardware information from the appropriate hardware registry key. Helper stub of IopQueryBusDescription().
[in] | Query | What the parent function wants. |
[in] | RootKey | Which key to look in. |
[in] | RootKeyHandle | Handle to the key. |
[in] | Bus | The bus number. |
[in] | BusInformation | The configuration information being sent. |
Definition at line 126 of file iorsrce.c.
Referenced by IopQueryBusDescription().
VOID IopStoreSystemPartitionInformation | ( | _In_ PUNICODE_STRING | NtSystemPartitionDeviceName, |
_In_ PUNICODE_STRING | OsLoaderPathName | ||
) |
Definition at line 860 of file iorsrce.c.
Referenced by IopCreateArcNames(), and IopCreateArcNamesDisk().
NTSTATUS NTAPI IoQueryDeviceDescription | ( | _In_opt_ PINTERFACE_TYPE | BusType, |
_In_opt_ PULONG | BusNumber, | ||
_In_opt_ PCONFIGURATION_TYPE | ControllerType, | ||
_In_opt_ PULONG | ControllerNumber, | ||
_In_opt_ PCONFIGURATION_TYPE | PeripheralType, | ||
_In_opt_ PULONG | PeripheralNumber, | ||
_In_ PIO_QUERY_DEVICE_ROUTINE | CalloutRoutine, | ||
_In_opt_ PVOID | Context | ||
) |
Reads and returns Hardware information from the appropriate hardware registry key.
[in] | BusType | Specifies the bus type, for example: MCA, ISA, EISA, etc. |
[in] | BusNumber | The number of the specified bus type to query. |
[in] | ControllerType | Specifies the controller type |
[in] | ControllerNumber | The number of the specified controller type to query. |
[in] | CalloutRoutine | A user-provided callback function to call for each valid query. |
[in] | Context | A callback-specific context value. |
Definition at line 1213 of file iorsrce.c.
Referenced by AddControllers(), FdcFdoQueryBusRelations(), IntVideoPortEnumBuses(), and SpiCreatePortConfig().
NTSTATUS NTAPI IoReportHalResourceUsage | ( | _In_ PUNICODE_STRING | HalName, |
_In_ PCM_RESOURCE_LIST | RawResourceList, | ||
_In_ PCM_RESOURCE_LIST | TranslatedResourceList, | ||
_In_ ULONG | ResourceListSize | ||
) |
Reports hardware resources of the HAL in the \Registry\Machine\Hardware\ResourceMap tree.
[in] | HalName | Descriptive name of the HAL. |
[in] | RawResourceList | List of raw (bus specific) resources which should be claimed for the HAL. |
[in] | TranslatedResourceList | List of translated (system wide) resources which should be claimed for the HAL. |
[in] | ResourceListSize | Size in bytes of the raw and translated resource lists. Both lists have the same size. |
Definition at line 1321 of file iorsrce.c.
Referenced by HalpReportResourceUsage().
NTSTATUS NTAPI IoReportResourceUsage | ( | _In_opt_ PUNICODE_STRING | DriverClassName, |
_In_ PDRIVER_OBJECT | DriverObject, | ||
_In_reads_bytes_opt_(DriverListSize) PCM_RESOURCE_LIST | DriverList, | ||
_In_opt_ ULONG | DriverListSize, | ||
_In_opt_ PDEVICE_OBJECT | DeviceObject, | ||
_In_reads_bytes_opt_(DeviceListSize) PCM_RESOURCE_LIST | DeviceList, | ||
_In_opt_ ULONG | DeviceListSize, | ||
_In_ BOOLEAN | OverrideConflict, | ||
_Out_ PBOOLEAN | ConflictDetected | ||
) |
Reports hardware resources in the \Registry\Machine\Hardware\ResourceMap tree, so that a subsequently loaded driver cannot attempt to use the same resources.
@halfplemented
[in] | DriverClassName | The driver class under which the resource information should be stored. |
[in] | DriverObject | The driver object that was provided to the DriverEntry routine. |
[in] | DriverList | Resources claimed for the all the driver's devices, rather than per-device. |
[in] | DriverListSize | Size in bytes of the DriverList. |
[in] | DeviceObject | The device object for which resources should be claimed. |
[in] | DeviceList | List of resources that should be claimed for the device. |
[in] | DeviceListSize | Size of the per-device resource list in bytes. |
[in] | OverrideConflict | TRUE if the resources should be claimed even if a conflict is found. |
[out] | ConflictDetected | Points to a variable that receives TRUE if a conflict is detected with another driver. |
Definition at line 1041 of file iorsrce.c.
|
static |
Definition at line 31 of file iorsrce.c.
Referenced by IoGetConfigurationInformation().
PCWSTR ArcTypes[MaximumType+1] |
Definition at line 47 of file iorsrce.c.
Referenced by IopQueryDeviceDescription().
PCWSTR IoDeviceInfoNames[IoQueryDeviceMaxData] |
Definition at line 94 of file iorsrce.c.
Referenced by IopQueryBusDescription(), and IopQueryDeviceDescription().