mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Fix Hardware IDs and Compatible IDs returned for PCI devices
svn path=/trunk/; revision=18326
This commit is contained in:
parent
017639fcc2
commit
0b7207b338
1 changed files with 21 additions and 17 deletions
|
@ -288,6 +288,23 @@ PciCreateHardwareIDsString(PUNICODE_STRING HardwareIDs,
|
|||
Device->PciConfig.u.type0.SubVendorID);
|
||||
Index++;
|
||||
|
||||
Index += swprintf(&Buffer[Index],
|
||||
L"PCI\\VEN_%04X&DEV_%04X&CC_%02X%02X%02X",
|
||||
Device->PciConfig.VendorID,
|
||||
Device->PciConfig.DeviceID,
|
||||
Device->PciConfig.BaseClass,
|
||||
Device->PciConfig.SubClass,
|
||||
Device->PciConfig.ProgIf);
|
||||
Index++;
|
||||
|
||||
Index += swprintf(&Buffer[Index],
|
||||
L"PCI\\VEN_%04X&DEV_%04X&CC_%02X%02X",
|
||||
Device->PciConfig.VendorID,
|
||||
Device->PciConfig.DeviceID,
|
||||
Device->PciConfig.BaseClass,
|
||||
Device->PciConfig.SubClass);
|
||||
Index++;
|
||||
|
||||
Buffer[Index] = UNICODE_NULL;
|
||||
|
||||
Length = (Index + 1) * sizeof(WCHAR);
|
||||
|
@ -315,29 +332,16 @@ PciCreateCompatibleIDsString(PUNICODE_STRING CompatibleIDs,
|
|||
|
||||
Index = 0;
|
||||
Index += swprintf(&Buffer[Index],
|
||||
L"PCI\\VEN_%04X&DEV_%04X&REV_%02X&CC_%02X%02X",
|
||||
L"PCI\\VEN_%04X&DEV_%04X&REV_%02X",
|
||||
Device->PciConfig.VendorID,
|
||||
Device->PciConfig.DeviceID,
|
||||
Device->PciConfig.RevisionID,
|
||||
Device->PciConfig.BaseClass,
|
||||
Device->PciConfig.SubClass);
|
||||
Device->PciConfig.RevisionID);
|
||||
Index++;
|
||||
|
||||
Index += swprintf(&Buffer[Index],
|
||||
L"PCI\\VEN_%04X&DEV_%04X&CC_%02X%02X%02X",
|
||||
L"PCI\\VEN_%04X&DEV_%04X",
|
||||
Device->PciConfig.VendorID,
|
||||
Device->PciConfig.DeviceID,
|
||||
Device->PciConfig.BaseClass,
|
||||
Device->PciConfig.SubClass,
|
||||
Device->PciConfig.ProgIf);
|
||||
Index++;
|
||||
|
||||
Index += swprintf(&Buffer[Index],
|
||||
L"PCI\\VEN_%04X&DEV_%04X&CC_%02X%02X",
|
||||
Device->PciConfig.VendorID,
|
||||
Device->PciConfig.DeviceID,
|
||||
Device->PciConfig.BaseClass,
|
||||
Device->PciConfig.SubClass);
|
||||
Device->PciConfig.DeviceID);
|
||||
Index++;
|
||||
|
||||
Index += swprintf(&Buffer[Index],
|
||||
|
|
Loading…
Reference in a new issue