[UNIATA] Upgrade to v0.47b from v0.47a (#8177)

- Remove unused idedma.def
  Addendum to commit 1daf74908e (r29256).

- Convert a few files to UTF-8 from ANSI
  Plus, 2 tiny formatting fixes.

- id_ata.cpp: Unmark a ReactOS own diff
  Addendum to commit 7fdf078134.

- id_init.cpp: Mark a diff
  Addendum to commit 09dde2cff9.

- Upgrade to v0.47b from v0.47a

CORE-17876
This commit is contained in:
Serge Gautherie
2025-08-16 18:56:58 +02:00
committed by GitHub
parent f100d34638
commit 7e294faff4
12 changed files with 39 additions and 35 deletions

View File

@@ -34,7 +34,7 @@ Revision History:
Mike Glass (MGlass) Mike Glass (MGlass)
Some definitions were taken from FreeBSD 4.3-4.6 ATA driver by Some definitions were taken from FreeBSD 4.3-4.6 ATA driver by
S<EFBFBD>ren Schmidt, Copyright (c) 1998,1999,2000,2001 Søren Schmidt, Copyright (c) 1998,1999,2000,2001
Code was changed/updated by Code was changed/updated by
Alter, Copyright (c) 2002-20016 Alter, Copyright (c) 2002-20016

View File

@@ -34,7 +34,7 @@ Revision History:
Alter, Copyright (c) 2002-2015 Alter, Copyright (c) 2002-2015
Some definitions were taken from FreeBSD 4.3-9.2 ATA driver by Some definitions were taken from FreeBSD 4.3-9.2 ATA driver by
S<EFBFBD>ren Schmidt, Copyright (c) 1998-2014 Søren Schmidt, Copyright (c) 1998-2014
Licence: Licence:
GPLv2 GPLv2

View File

@@ -35,7 +35,7 @@ Revision History:
Chuck Park (ChuckP) Chuck Park (ChuckP)
Some parts of code were taken from FreeBSD 4.3-6.1 ATA driver by Some parts of code were taken from FreeBSD 4.3-6.1 ATA driver by
S<EFBFBD>ren Schmidt, Copyright (c) 1998-2007 Søren Schmidt, Copyright (c) 1998-2007
All parts of code are significantly changed/updated by All parts of code are significantly changed/updated by
Alter, Copyright (c) 2002-2014: Alter, Copyright (c) 2002-2014:
@@ -9610,13 +9610,7 @@ reject_srb:
inquiryData->CommandQueue = 1; inquiryData->CommandQueue = 1;
// Fill in vendor identification fields. // Fill in vendor identification fields.
#ifdef __REACTOS__
FillDeviceIdentificationString(inquiryData, identifyData); FillDeviceIdentificationString(inquiryData, identifyData);
#else
for (i = 0; i < 24; i += 2) {
MOV_DW_SWP(inquiryData->DeviceIdentificationString[i], ((PUCHAR)identifyData->ModelNumber)[i]);
}
#endif
// Move firmware revision from IDENTIFY data to // Move firmware revision from IDENTIFY data to
// product revision in INQUIRY data. // product revision in INQUIRY data.
@@ -11412,23 +11406,28 @@ AtapiRegCheckDevValue(
swprintf(namev, L"\\SATA"); swprintf(namev, L"\\SATA");
swprintf(namex, L"Parameters%s", namev); swprintf(namex, L"Parameters%s", namev);
val = AtapiRegCheckDevLunValue( val = AtapiRegCheckDevLunValue(
HwDeviceExtension, namex, chan, dev, Name, val); HwDeviceExtension, namex, CHAN_NOT_SPECIFIED, dev, Name, val);
} }
if(HwFlags & UNIATA_AHCI) { if(HwFlags & UNIATA_AHCI) {
swprintf(namev, L"\\AHCI"); swprintf(namev, L"\\AHCI");
swprintf(namex, L"Parameters%s", namev); swprintf(namex, L"Parameters%s", namev);
val = AtapiRegCheckDevLunValue( val = AtapiRegCheckDevLunValue(
HwDeviceExtension, namex, chan, dev, Name, val); HwDeviceExtension, namex, CHAN_NOT_SPECIFIED, dev, Name, val);
} }
if(!(HwFlags & (UNIATA_SATA | UNIATA_AHCI))) { if(!(HwFlags & (UNIATA_SATA | UNIATA_AHCI))) {
swprintf(namev, L"\\PATA"); swprintf(namev, L"\\PATA");
swprintf(namex, L"Parameters%s", namev); swprintf(namex, L"Parameters%s", namev);
val = AtapiRegCheckDevLunValue( val = AtapiRegCheckDevLunValue(
HwDeviceExtension, namex, chan, dev, Name, val); HwDeviceExtension, namex, CHAN_NOT_SPECIFIED, dev, Name, val);
} }
if(deviceExtension->AdapterInterfaceType == PCIBus) { if(deviceExtension->AdapterInterfaceType == PCIBus) {
// PCI // PCI
swprintf(namev, L"\\PCIIDE");
swprintf(namex, L"Parameters%s", namev);
val = AtapiRegCheckDevLunValue(
HwDeviceExtension, namex, CHAN_NOT_SPECIFIED, dev, Name, val);
swprintf(namev, L"\\IDE_%d", deviceExtension->DevIndex); swprintf(namev, L"\\IDE_%d", deviceExtension->DevIndex);
swprintf(namex, L"Parameters%s", namev); swprintf(namex, L"Parameters%s", namev);
val = AtapiRegCheckDevLunValue( val = AtapiRegCheckDevLunValue(
@@ -11453,6 +11452,11 @@ AtapiRegCheckDevValue(
} else } else
if(deviceExtension->AdapterInterfaceType == Isa) { if(deviceExtension->AdapterInterfaceType == Isa) {
// Isa // Isa
swprintf(namev, L"\\ISAIDE");
swprintf(namex, L"Parameters%s", namev);
val = AtapiRegCheckDevLunValue(
HwDeviceExtension, namex, CHAN_NOT_SPECIFIED, dev, Name, val);
swprintf(namev, L"\\IDE_%d", deviceExtension->DevIndex+BMListLen); swprintf(namev, L"\\IDE_%d", deviceExtension->DevIndex+BMListLen);
swprintf(namex, L"Parameters%s", namev); swprintf(namex, L"Parameters%s", namev);
val = AtapiRegCheckDevLunValue( val = AtapiRegCheckDevLunValue(
@@ -11466,6 +11470,11 @@ AtapiRegCheckDevValue(
} else } else
if(deviceExtension->AdapterInterfaceType == MicroChannel) { if(deviceExtension->AdapterInterfaceType == MicroChannel) {
// MicroChannel // MicroChannel
swprintf(namev, L"\\MCA");
swprintf(namex, L"Parameters%s", namev);
val = AtapiRegCheckDevLunValue(
HwDeviceExtension, namex, CHAN_NOT_SPECIFIED, dev, Name, val);
swprintf(namev, L"\\IDE_%d", deviceExtension->DevIndex+BMListLen+IsaCount); swprintf(namev, L"\\IDE_%d", deviceExtension->DevIndex+BMListLen+IsaCount);
swprintf(namex, L"Parameters%s", namev); swprintf(namex, L"Parameters%s", namev);
val = AtapiRegCheckDevLunValue( val = AtapiRegCheckDevLunValue(

View File

@@ -31,7 +31,7 @@ Notes:
Revision History: Revision History:
This module is a port from FreeBSD 4.3-6.1 ATA driver (ata-dma.c, ata-chipset.c) by This module is a port from FreeBSD 4.3-6.1 ATA driver (ata-dma.c, ata-chipset.c) by
S<EFBFBD>ren Schmidt, Copyright (c) 1998-2008 Søren Schmidt, Copyright (c) 1998-2008
Changed defaulting-to-generic-PIO/DMA policy Changed defaulting-to-generic-PIO/DMA policy
Added PIO settings for VIA Added PIO settings for VIA

View File

@@ -2555,8 +2555,11 @@ AtapiChipInit(
* size goes below 32DW. Setting it to 1 makes the watermark * size goes below 32DW. Setting it to 1 makes the watermark
* 64DW. * 64DW.
* *
* https://jira.reactos.org/browse/CORE-5897 * http://www.reactos.org/bugzilla/show_bug.cgi?id=6500
*/ */
#ifdef __REACTOS__
// New URL is https://jira.reactos.org/browse/CORE-5897
#endif
if(DeviceID == 0x3149 || DeviceID == 0x3249) { //vt6420 or vt6421 if(DeviceID == 0x3149 || DeviceID == 0x3249) { //vt6420 or vt6421
KdPrint2((PRINT_PREFIX "VIA 642x FIFO\n")); KdPrint2((PRINT_PREFIX "VIA 642x FIFO\n"));

View File

@@ -31,7 +31,7 @@ Notes:
Revision History: Revision History:
Some parts of hardware-specific code were taken from FreeBSD 4.3-6.1 ATA driver by Some parts of hardware-specific code were taken from FreeBSD 4.3-6.1 ATA driver by
S<EFBFBD>ren Schmidt, Copyright (c) 1998-2007 Søren Schmidt, Copyright (c) 1998-2007
Some parts of device detection code were taken from from standard ATAPI.SYS from NT4 DDK by Some parts of device detection code were taken from from standard ATAPI.SYS from NT4 DDK by
Mike Glass (MGlass) Mike Glass (MGlass)

View File

@@ -1,8 +0,0 @@
; IDEDMA.def
NAME IDEDMA.SYS
DESCRIPTION 'IDEDMA.SYS'
EXPORTS

View File

@@ -6,7 +6,7 @@ Provider=%ALTERWARE%
ClassGUID={4D36E97D-E325-11CE-BFC1-08002BE10318} ClassGUID={4D36E97D-E325-11CE-BFC1-08002BE10318}
Class=System Class=System
;CatalogFile=uniata.cat ;CatalogFile=uniata.cat
DriverVer=08/25/2012,0.43.4.2 DriverVer=10/16/2021,0.47.2.0
[DestinationDirs] [DestinationDirs]

View File

@@ -1,10 +1,10 @@
#define UNIATA_VER_STR "47a" #define UNIATA_VER_STR "47b"
#define UNIATA_VER_DOT 0.47.1.0 #define UNIATA_VER_DOT 0.47.2.0
#define UNIATA_VER_MJ 0 #define UNIATA_VER_MJ 0
#define UNIATA_VER_MN 47 #define UNIATA_VER_MN 47
#define UNIATA_VER_SUB_MJ 1 #define UNIATA_VER_SUB_MJ 2
#define UNIATA_VER_SUB_MN 0 #define UNIATA_VER_SUB_MN 0
#define UNIATA_VER_DOT_COMMA 0,47,1,0 #define UNIATA_VER_DOT_COMMA 0,47,2,0
#define UNIATA_VER_DOT_STR "0.47.1.0" #define UNIATA_VER_DOT_STR "0.47.2.0"
#define UNIATA_VER_YEAR 2019 #define UNIATA_VER_YEAR 2021
#define UNIATA_VER_YEAR_STR "2019" #define UNIATA_VER_YEAR_STR "2021"

View File

@@ -152,9 +152,9 @@ URL: https://github.com/microsoft/Windows-driver-samples/tree/master/storage/sfl
Title: Universal ATA driver for Windows Title: Universal ATA driver for Windows
Path: drivers/storage/ide/uniata Path: drivers/storage/ide/uniata
Used Version: 0.47a Used Version: 0.47b
License: BSD-like License: BSD-like
URL: http://alter.org.ua/soft/win/uni_ata/ URL: https://alter.org.ua/soft/win/uni_ata/
Title: Miniport driver for the Buslogic BT 958 SCSI Controller Title: Miniport driver for the Buslogic BT 958 SCSI Controller
Path: drivers/storage/port/buslogic Path: drivers/storage/port/buslogic