mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 02:32:57 +00:00
Save DriverObject pointer to device extension
Use INTERFACE_TYPE type instead of ULONG Use OBJ_KERNEL_HANDLE when opening \Device\PhysicalMemory svn path=/trunk/; revision=15749
This commit is contained in:
parent
2bb29cba04
commit
47418050f9
3 changed files with 5 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
* VideoPort driver
|
* VideoPort driver
|
||||||
*
|
*
|
||||||
* Copyright (C) 2002, 2003, 2004 ReactOS Team
|
* Copyright (C) 2002 - 2005 ReactOS Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Library General Public
|
||||||
|
@ -43,7 +43,7 @@ IntVideoPortMapPhysicalMemory(
|
||||||
RtlInitUnicodeString(&UnicodeString, L"\\Device\\PhysicalMemory");
|
RtlInitUnicodeString(&UnicodeString, L"\\Device\\PhysicalMemory");
|
||||||
InitializeObjectAttributes(&ObjAttribs,
|
InitializeObjectAttributes(&ObjAttribs,
|
||||||
&UnicodeString,
|
&UnicodeString,
|
||||||
OBJ_CASE_INSENSITIVE/* | OBJ_KERNEL_HANDLE*/,
|
OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE,
|
||||||
NULL, NULL);
|
NULL, NULL);
|
||||||
|
|
||||||
/* Open physical memory section */
|
/* Open physical memory section */
|
||||||
|
|
|
@ -232,6 +232,7 @@ IntVideoPortCreateAdapterDeviceObject(
|
||||||
|
|
||||||
DeviceExtension = (PVIDEO_PORT_DEVICE_EXTENSION)((*DeviceObject)->DeviceExtension);
|
DeviceExtension = (PVIDEO_PORT_DEVICE_EXTENSION)((*DeviceObject)->DeviceExtension);
|
||||||
DeviceExtension->DeviceNumber = DeviceNumber;
|
DeviceExtension->DeviceNumber = DeviceNumber;
|
||||||
|
DeviceExtension->DriverObject = DriverObject;
|
||||||
DeviceExtension->PhysicalDeviceObject = PhysicalDeviceObject;
|
DeviceExtension->PhysicalDeviceObject = PhysicalDeviceObject;
|
||||||
DeviceExtension->FunctionalDeviceObject = *DeviceObject;
|
DeviceExtension->FunctionalDeviceObject = *DeviceObject;
|
||||||
DeviceExtension->DriverExtension = DriverExtension;
|
DeviceExtension->DriverExtension = DriverExtension;
|
||||||
|
|
|
@ -84,6 +84,7 @@ typedef struct _VIDEO_PORT_DRIVER_EXTENSION
|
||||||
typedef struct _VIDEO_PORT_DEVICE_EXTENSTION
|
typedef struct _VIDEO_PORT_DEVICE_EXTENSTION
|
||||||
{
|
{
|
||||||
ULONG DeviceNumber;
|
ULONG DeviceNumber;
|
||||||
|
PDRIVER_OBJECT DriverObject;
|
||||||
PDEVICE_OBJECT PhysicalDeviceObject;
|
PDEVICE_OBJECT PhysicalDeviceObject;
|
||||||
PDEVICE_OBJECT FunctionalDeviceObject;
|
PDEVICE_OBJECT FunctionalDeviceObject;
|
||||||
PDEVICE_OBJECT NextDeviceObject;
|
PDEVICE_OBJECT NextDeviceObject;
|
||||||
|
@ -94,7 +95,7 @@ typedef struct _VIDEO_PORT_DEVICE_EXTENSTION
|
||||||
ULONG InterruptVector;
|
ULONG InterruptVector;
|
||||||
ULONG InterruptLevel;
|
ULONG InterruptLevel;
|
||||||
BOOLEAN InterruptShared;
|
BOOLEAN InterruptShared;
|
||||||
ULONG AdapterInterfaceType;
|
INTERFACE_TYPE AdapterInterfaceType;
|
||||||
ULONG SystemIoBusNumber;
|
ULONG SystemIoBusNumber;
|
||||||
ULONG SystemIoSlotNumber;
|
ULONG SystemIoSlotNumber;
|
||||||
LIST_ENTRY AddressMappingListHead;
|
LIST_ENTRY AddressMappingListHead;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue