Skip to content

Commit

Permalink
CORE-17401 IDE patch
Browse files Browse the repository at this point in the history
  • Loading branch information
archeYR authored and DarkFire01 committed Dec 7, 2024
1 parent 6c7250b commit b98a594
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 7 deletions.
11 changes: 11 additions & 0 deletions boot/bootdata/hivesys.inf
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#VEN_1033&DEV_0
HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\*PNP0C08","Service",0x00000000,"acpi"
HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\*PNP0C08","ClassGUID",0x00000000,"{4D36E97D-E325-11CE-BFC1-08002BE10318}"

HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#CC_0101","Service",0x00000000,"pciide"
HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#CC_0101","ClassGUID",0x00000000,"{4D36E96A-E325-11CE-BFC1-08002BE10318}"

HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\*PNP0600","Service",0x00000000,"atapi"
HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\*PNP0600","ClassGUID",0x00000000,"{4D36E96A-E325-11CE-BFC1-08002BE10318}"

HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#CC_0C0300","Service",0x00000000,"usbuhci"
HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#CC_0C0300","ClassGUID",0x00000000,"{36FC9E60-C465-11CF-8056-444553540000}"

Expand Down Expand Up @@ -431,6 +437,11 @@ HKLM,"SYSTEM\CurrentControlSet\Control\Class\{9D6D66A6-0B0C-4563-9077-A0E9A7955A
HKLM,"SYSTEM\CurrentControlSet\Control\Class\{9D6D66A6-0B0C-4563-9077-A0E9A7955AE4}","Class",0x00000000,"Ramdisk"
HKLM,"SYSTEM\CurrentControlSet\Control\Class\{9D6D66A6-0B0C-4563-9077-A0E9A7955AE4}","Icon",0x00000000,"-5"

HKLM,"SYSTEM\CurrentControlSet\Control\Class\{4D36E96A-E325-11CE-BFC1-08002BE10318}",,0x00000000,"IDE ATA/ATAPI controllers"
HKLM,"SYSTEM\CurrentControlSet\Control\Class\{4D36E96A-E325-11CE-BFC1-08002BE10318}","Class",0x00000000,"hdc"
HKLM,"SYSTEM\CurrentControlSet\Control\Class\{4D36E96A-E325-11CE-BFC1-08002BE10318}","Icon",0x00000000,"-9"
HKLM,"SYSTEM\CurrentControlSet\Control\Class\{4D36E96A-E325-11CE-BFC1-08002BE10318}","Installer32",0x00000000,"SysSetup.Dll,HdcClassInstaller"

; Class Co-Installers
HKLM,"SYSTEM\CurrentControlSet\Control\CoDeviceInstallers",,0x00000012
HKLM,"SYSTEM\CurrentControlSet\Control\CoDeviceInstallers","{4D36E965-E325-11CE-BFC1-08002BE10318}",0x00010000,"syssetup.dll,StorageCoInstaller","syssetup.dll,CriticalDeviceCoInstaller"
Expand Down
9 changes: 3 additions & 6 deletions boot/bootdata/txtsetup.sif
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ FreeSysPartDiskSpace=450
acpi.sys = 1,,,,,,,4,1,,,1,4
nmidebug.sys = 1,,,,,,x,4,,,,1,4
sacdrv.sys = 1,,,,,,x,4,,,,1,4
uniata.sys = 1,,,,,,x,4,,,,1,4
atapi.sys = 1,,,,,,x,4,,,,1,4
buslogic.sys = 1,,,,,,x,4,,,,1,4
blue.sys = 1,,,,,,x,4,,,,1,4
vgafonts.cab = 1,,,,,,,1,,,,1,1
Expand Down Expand Up @@ -156,11 +156,8 @@ PCI\CC_0601 = isapnp
PCI\CC_0604 = pci
PCI\VEN_104B&CC_0100 = buslogic
PCI\CC_0101 = pciide
PCI\CC_0104 = uniata
PCI\CC_0105 = uniata
PCI\CC_0106 = uniata
;PCI\CC_0106 = storahci
*PNP0600 = uniata
*PNP0600 = atapi
USB\CLASS_09 = usbhub
USB\ROOT_HUB = usbhub
USB\ROOT_HUB20 = usbhub
Expand Down Expand Up @@ -201,7 +198,7 @@ i8042prt = i8042prt.sys
pciide = pciide.sys

[SCSI.Load]
uniata = uniata.sys
atapi = atapi.sys
buslogic = buslogic.sys
storahci = storahci.sys
disk = disk.sys
Expand Down
2 changes: 1 addition & 1 deletion drivers/storage/ide/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
add_subdirectory(atapi)
add_subdirectory(pciide)
add_subdirectory(pciidex)
add_subdirectory(uniata)
# add_subdirectory(uniata)
1 change: 1 addition & 0 deletions drivers/storage/ide/atapi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ target_link_libraries(atapi libcntpr)
set_module_type(atapi kernelmodedriver)
add_importlibs(atapi scsiport)
add_cd_file(TARGET atapi DESTINATION reactos/system32/drivers NO_CAB FOR all)
add_registry_inf(atapi_reg.inf)
8 changes: 8 additions & 0 deletions drivers/storage/ide/atapi/atapi_reg.inf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
; IDE Port Driver
[AddReg]
HKLM,"SYSTEM\CurrentControlSet\Services\atapi","ErrorControl",0x00010001,0x00000003
HKLM,"SYSTEM\CurrentControlSet\Services\atapi","Group",0x00000000,"SCSI Miniport"
HKLM,"SYSTEM\CurrentControlSet\Services\atapi","ImagePath",0x00020000,"system32\drivers\atapi.sys"
HKLM,"SYSTEM\CurrentControlSet\Services\atapi","Start",0x00010001,0x00000000
HKLM,"SYSTEM\CurrentControlSet\Services\atapi","Type",0x00010001,0x00000001
HKLM,"SYSTEM\CurrentControlSet\Services\atapi","Tag",0x00010001,0x00000021
1 change: 1 addition & 0 deletions drivers/storage/ide/pciide/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ else()
endif()
add_importlibs(pciide pciidex ntoskrnl)
add_cd_file(TARGET pciide DESTINATION reactos/system32/drivers NO_CAB FOR all)
add_registry_inf(pciide_reg.inf)
8 changes: 8 additions & 0 deletions drivers/storage/ide/pciide/pciide_reg.inf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
; PCIIde IDE Minidriver
[AddReg]
HKLM,"SYSTEM\CurrentControlSet\Services\PCIIde","ErrorControl",0x00010001,0x00000000
HKLM,"SYSTEM\CurrentControlSet\Services\PCIIde","Group",0x00000000,"System Bus Extender"
HKLM,"SYSTEM\CurrentControlSet\Services\PCIIde","ImagePath",0x00020000,"system32\drivers\pciide.sys"
HKLM,"SYSTEM\CurrentControlSet\Services\PCIIde","Start",0x00010001,0x00000000
HKLM,"SYSTEM\CurrentControlSet\Services\PCIIde","Type",0x00010001,0x00000001
HKLM,"SYSTEM\CurrentControlSet\Services\PCIIde","Tag",0x00010001,0x00000010

0 comments on commit b98a594

Please sign in to comment.