From 87c899380d9bacf513ac823e057189dde3ffa1f1 Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Wed, 18 Aug 2004 22:11:15 +0000 Subject: [PATCH] Report the correct resource flags. svn path=/trunk/; revision=10594 --- reactos/drivers/bus/pci/pdo.c | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/reactos/drivers/bus/pci/pdo.c b/reactos/drivers/bus/pci/pdo.c index 90be95f3f1e..3d77d3bb87f 100644 --- a/reactos/drivers/bus/pci/pdo.c +++ b/reactos/drivers/bus/pci/pdo.c @@ -1,4 +1,4 @@ -/* $Id: pdo.c,v 1.7 2004/08/18 08:25:58 ekohl Exp $ +/* $Id: pdo.c,v 1.8 2004/08/18 22:11:15 ekohl Exp $ * * PROJECT: ReactOS PCI bus driver * FILE: pdo.c @@ -435,7 +435,9 @@ PdoQueryResourceRequirements( { Descriptor->Type = CmResourceTypePort; Descriptor->ShareDisposition = CmResourceShareDeviceExclusive; - Descriptor->Flags = CM_RESOURCE_PORT_IO; + Descriptor->Flags = CM_RESOURCE_PORT_IO | + CM_RESOURCE_PORT_16_BIT_DECODE | + CM_RESOURCE_PORT_POSITIVE_DECODE; Descriptor->u.Port.Length = Length; Descriptor->u.Port.Alignment = 1; @@ -461,12 +463,14 @@ PdoQueryResourceRequirements( { Descriptor->Type = CmResourceTypePort; Descriptor->ShareDisposition = CmResourceShareDeviceExclusive; - Descriptor->Flags = CM_RESOURCE_PORT_IO; + Descriptor->Flags = CM_RESOURCE_PORT_IO | + CM_RESOURCE_PORT_16_BIT_DECODE | + CM_RESOURCE_PORT_POSITIVE_DECODE; Descriptor->u.Port.Length = Length; Descriptor->u.Port.Alignment = Length; Descriptor->u.Port.MinimumAddress.QuadPart = (ULONGLONG)0; - Descriptor->u.Port.MaximumAddress.QuadPart = (ULONGLONG)(ULONG)-1; + Descriptor->u.Port.MaximumAddress.QuadPart = (ULONGLONG)0x00000000FFFFFFFF; } else { @@ -477,7 +481,7 @@ PdoQueryResourceRequirements( Descriptor->u.Memory.Length = Length; Descriptor->u.Memory.Alignment = Length; Descriptor->u.Port.MinimumAddress.QuadPart = (ULONGLONG)0; - Descriptor->u.Port.MaximumAddress.QuadPart = (ULONGLONG)(ULONG)-1; + Descriptor->u.Port.MaximumAddress.QuadPart = (ULONGLONG)0x00000000FFFFFFFF; } Descriptor++; } @@ -489,6 +493,7 @@ PdoQueryResourceRequirements( Descriptor->Type = CmResourceTypeInterrupt; Descriptor->ShareDisposition = CmResourceShareShared; Descriptor->Flags = CM_RESOURCE_INTERRUPT_LEVEL_SENSITIVE; + Descriptor->u.Interrupt.MinimumVector = 0; Descriptor->u.Interrupt.MaximumVector = 0xFF; } @@ -519,7 +524,9 @@ PdoQueryResourceRequirements( { Descriptor->Type = CmResourceTypePort; Descriptor->ShareDisposition = CmResourceShareDeviceExclusive; - Descriptor->Flags = CM_RESOURCE_PORT_IO; + Descriptor->Flags = CM_RESOURCE_PORT_IO | + CM_RESOURCE_PORT_16_BIT_DECODE | + CM_RESOURCE_PORT_POSITIVE_DECODE; Descriptor->u.Port.Length = Length; Descriptor->u.Port.Alignment = 1; @@ -545,12 +552,14 @@ PdoQueryResourceRequirements( { Descriptor->Type = CmResourceTypePort; Descriptor->ShareDisposition = CmResourceShareDeviceExclusive; - Descriptor->Flags = CM_RESOURCE_PORT_IO; + Descriptor->Flags = CM_RESOURCE_PORT_IO | + CM_RESOURCE_PORT_16_BIT_DECODE | + CM_RESOURCE_PORT_POSITIVE_DECODE; Descriptor->u.Port.Length = Length; Descriptor->u.Port.Alignment = Length; Descriptor->u.Port.MinimumAddress.QuadPart = (ULONGLONG)0; - Descriptor->u.Port.MaximumAddress.QuadPart = (ULONGLONG)(ULONG)-1; + Descriptor->u.Port.MaximumAddress.QuadPart = (ULONGLONG)0x00000000FFFFFFFF; } else { -- 2.17.1