https://git.reactos.org/?p=reactos.git;a=commitdiff;h=88d36c93a27f5d764027e…
commit 88d36c93a27f5d764027e2475c84bdde1a84c4a6
Author: Stanislav Motylkov <x86corez(a)gmail.com>
AuthorDate: Thu Dec 31 22:14:39 2020 +0300
Commit: Stanislav Motylkov <x86corez(a)gmail.com>
CommitDate: Thu Dec 31 22:14:39 2020 +0300
[UNIATA] Properly mark ReactOS diff from upstream
Addendum to 4b9cf2e (r71252), d14a872 (r73324), 7d65f2a (r71262), and 6c0ff7b.
CORE-11157 CORE-16078
---
drivers/storage/ide/uniata/bm_devs.h | 12 ++++++++++--
drivers/storage/ide/uniata/id_ata.cpp | 1 +
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/drivers/storage/ide/uniata/bm_devs.h b/drivers/storage/ide/uniata/bm_devs.h
index 78893e42c90..dc1ddeddc91 100644
--- a/drivers/storage/ide/uniata/bm_devs.h
+++ b/drivers/storage/ide/uniata/bm_devs.h
@@ -352,7 +352,11 @@ BUSMASTER_CONTROLLER_INFORMATION_BASE const BusMasterAdapters[] = {
PCI_DEV_HW_SPEC_BM( 9d05, 8086, 0x00, ATA_SA300, "Intel Sunrise Point-LP" ,
UNIATA_SATA | UNIATA_AHCI | UNIATA_RAID_CONTROLLER),
PCI_DEV_HW_SPEC_BM( 9d07, 8086, 0x00, ATA_SA300, "Intel Sunrise Point-LP" ,
UNIATA_SATA | UNIATA_AHCI | UNIATA_RAID_CONTROLLER),
-/* PCI_DEV_HW_SPEC_BM( a102, 8086, 0x00, ATA_SA300, "Intel Sunrise Point" ,
UNIATA_SATA | UNIATA_AHCI ),*/ /* workaround regression CORE-16078 */
+#ifndef __REACTOS__
+ PCI_DEV_HW_SPEC_BM( a102, 8086, 0x00, ATA_SA300, "Intel Sunrise Point" ,
UNIATA_SATA | UNIATA_AHCI ),
+#else
+ /* workaround regression CORE-16078 */
+#endif
PCI_DEV_HW_SPEC_BM( a103, 8086, 0x00, ATA_SA300, "Intel Sunrise Point" ,
UNIATA_SATA | UNIATA_AHCI ),
PCI_DEV_HW_SPEC_BM( a105, 8086, 0x00, ATA_SA300, "Intel Sunrise Point" ,
UNIATA_SATA | UNIATA_AHCI | UNIATA_RAID_CONTROLLER),
PCI_DEV_HW_SPEC_BM( a106, 8086, 0x00, ATA_SA300, "Intel Sunrise Point" ,
UNIATA_SATA | UNIATA_AHCI | UNIATA_RAID_CONTROLLER),
@@ -714,4 +718,8 @@ BUSMASTER_CONTROLLER_INFORMATION_BASE const BusMasterAdapters[] = {
PCI_DEV_HW_SPEC_BM( ffff, ffff, 0xff, BMLIST_TERMINATOR, NULL ,
BMLIST_TERMINATOR )
};
-/* static */ const ULONG _NUM_BUSMASTER_ADAPTERS = (sizeof(BusMasterAdapters) /
sizeof(BUSMASTER_CONTROLLER_INFORMATION_BASE));
+#ifndef __REACTOS__
+static const ULONG _NUM_BUSMASTER_ADAPTERS = (sizeof(BusMasterAdapters) /
sizeof(BUSMASTER_CONTROLLER_INFORMATION_BASE));
+#else
+const ULONG _NUM_BUSMASTER_ADAPTERS = (sizeof(BusMasterAdapters) /
sizeof(BUSMASTER_CONTROLLER_INFORMATION_BASE));
+#endif
diff --git a/drivers/storage/ide/uniata/id_ata.cpp
b/drivers/storage/ide/uniata/id_ata.cpp
index a49811ba90d..01f21741e96 100644
--- a/drivers/storage/ide/uniata/id_ata.cpp
+++ b/drivers/storage/ide/uniata/id_ata.cpp
@@ -6184,6 +6184,7 @@ CompleteRequest:
#ifdef __REACTOS__
(void)senseData;
#endif
+
KdPrint3((PRINT_PREFIX "AtapiInterrupt: ATAPI command status
%#x\n", status));
if (status == SRB_STATUS_DATA_OVERRUN) {
// Check to see if we at least get mininum number of bytes