Hi
When I am doing WLK storage query property test for my virtual scsi
miniport driver,which service a virtual block device enumerated by my
virtual bus driver. I fond that storage_bus_type I return isn’t fix for
this test. WLK task log tells me that:
‘STORAGE_ADAPTER_DESCRIPTOR: Adapter must return the appropraiate
STORAGE_BUS_TYPE (as determined by PCI class code) when issued a
StorageAdapterProperty.’
‘Base Class: 0xFF’
‘Sub-Class: 0x80’
‘Interface: 0x00’
‘Acceptable STORAGE_BUS_TYPEs: BusTypeUnknown’
‘STORAGE_ADAPTER_DESCRIPTOR BusType: BusTypeScsi’
It seems that I return a wrong PCI class code for this adapter to let
windows think my storage adapter is ‘BusTypeUnknown’. But now I want to
export my adapter as ‘BusTypeScsi’ right now.
So I want to know where can I set these ‘PCI class code’? In bus driver
or in miniport driver? Now, I just add a register key ‘BusType=1
(BusTypeScsi)’ in my adapter service register entry.
Thanks
Wayne