kmdf resource type of 0x81 from WdfCmResourceListGetDescriptor

This type does not seem to be defined. Any ideas?

Thanks,
Greg

You should ignore any undefined type. In this case, looking in WDM.h
yields the info you want

#define CmResourceTypeNull 0 // ResType_All or
ResType_None (0x0000)
#define CmResourceTypePort 1 // ResType_IO (0x0002)
#define CmResourceTypeInterrupt 2 // ResType_IRQ (0x0004)
#define CmResourceTypeMemory 3 // ResType_Mem (0x0001)
#define CmResourceTypeDma 4 // ResType_DMA (0x0003)
#define CmResourceTypeDeviceSpecific 5 // ResType_ClassSpecific
(0xFFFF)
#define CmResourceTypeBusNumber 6 // ResType_BusNumber
(0x0006)
#define CmResourceTypeMemoryLarge 7 // ResType_LargeMem
(0x0007)
#define CmResourceTypeNonArbitrated 128 // Not arbitrated if 0x80
bit set
#define CmResourceTypeConfigData 128 // ResType_Reserved
(0x8000)
#define CmResourceTypeDevicePrivate 129 // ResType_DevicePrivate
(0x8001)
#define CmResourceTypePcCardConfig 130 // ResType_PcCardConfig
(0x8002)
#define CmResourceTypeMfCardConfig 131 // ResType_MfCardConfig
(0x8003)

0x81 = CmResourceTypePort | CmResourceTypeNonArbitrated

You should ignore this particular resource descriptor and move on to the
next one

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Greg Coleson
Sent: Thursday, January 11, 2007 10:10 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] kmdf resource type of 0x81 from
WdfCmResourceListGetDescriptor

This type does not seem to be defined. Any ideas?

Thanks,
Greg


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Did you notice that your definition of 0x81 collides with
CmResourceTypeDevicePrivate, which is also 0x81?

Phil

Philip D. Barila
Seagate Technology LLC
(720) 684-1842

From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan

Sent: Thursday, January 11, 2007 11:36 AM
To: “Windows System Software Devs Interest List”
Subject: RE: [ntdev] kmdf resource type of 0x81 from
WdfCmResourceListGetDescriptor

[snip]

#define CmResourceTypePort 1 // ResType_IO (0x0002)

[snip]

#define CmResourceTypeNonArbitrated 128 // Not arbitrated if 0x80
bit set
#define CmResourceTypeConfigData 128 // ResType_Reserved
(0x8000)
#define CmResourceTypeDevicePrivate 129 // ResType_DevicePrivate
(0x8001)

[snip]

0x81 = CmResourceTypePort | CmResourceTypeNonArbitrated

[snip]

My bad, it is private and not the bit field combination I pointed out earlier (I was thrown off by the value mentioned in the comment for 129, 0x8001, that is obviously wrong :wink: )

d

From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@seagate.com
Sent: Thursday, January 11, 2007 12:50 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] kmdf resource type of 0x81 from WdfCmResourceListGetDescriptor

Did you notice that your definition of 0x81 collides with CmResourceTypeDevicePrivate, which is also 0x81?
?
Phil
Philip D. Barila
Seagate Technology LLC
(720) 684-1842
?


From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
Sent: Thursday, January 11, 2007 11:36 AM
To: “Windows System Software Devs Interest List”
Subject: RE: [ntdev] kmdf resource type of 0x81 from WdfCmResourceListGetDescriptor

[snip]
?
#define CmResourceTypePort 1 // ResType_IO (0x0002)
?
[snip]
?
#define CmResourceTypeNonArbitrated 128 // Not arbitrated if 0x80
bit set
#define CmResourceTypeConfigData 128 // ResType_Reserved
(0x8000)
#define CmResourceTypeDevicePrivate 129 // ResType_DevicePrivate
(0x8001)
?
[snip]

0x81 = CmResourceTypePort | CmResourceTypeNonArbitrated

[snip] — Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer