Hi,
All.
To read the PCI Express card’s configuration space, I used the NTDDK’s
function
ULONG
HalGetBusDataByOffset(
IN BUS_DATA_TYPE BusDataType,
IN ULONG BusNumber,
IN ULONG SlotNumber,
IN PVOID Buffer,
IN ULONG Offset,
IN ULONG Length
);when Offset+Length < 0xFF,$B!!(Bthe configuration space’s data can be read
correctly, but if reading the place which Offset+Length>0xFF, all the
data(Vendor ID, etc) became others(Maybe the data was from other place, not
the configuration space). Maybe there is other way to read the configuration
space whoes offset is more tha 0xFF, who konws it. thx.
No currently released version of Windows supports PCI-Express extended
configuration space.
–
Jake Oshins
Windows Kernel Group
This posting is provided “AS IS” with no warranties, and confers no rights.
“Ryu” wrote in message news:xxxxx@ntdev…
Hi,
All.
To read the PCI Express card’s configuration space, I used the NTDDK’s
function
ULONG
HalGetBusDataByOffset(
IN BUS_DATA_TYPE BusDataType,
IN ULONG BusNumber,
IN ULONG SlotNumber,
IN PVOID Buffer,
IN ULONG Offset,
IN ULONG Length
);
when Offset+Length < 0xFF,$B!!(Bthe configuration space’s data can be read
correctly, but if reading the place which Offset+Length>0xFF, all the
data(Vendor ID, etc) became others(Maybe the data was from other place, not
the configuration space). Maybe there is other way to read the configuration
space whoes offset is more tha 0xFF, who konws it. thx.