A modern laptop probably defaults to AHCI
on the SATA ports.
Older OSes need "Compatible IDE" emulation mode,
to fool the OS into thinking the older ports are
present and that the optical drive is a ribbon cable
IDE drive.
How this works, is the registers for the ports, "appear"
in "I/O space", rather than at a PCI bar (base address register).
The Compatible mode uses INT14 and INT15. The older OSes
know exactly where to look for things like that.
It's up to the hardware (Southbridge or PCH) to have
those modes, if there is an intention to run older OSes.
I've done what you're trying to do, but on older equipment.
The ICH5R on my P4C800-E Deluxe had both SATA and IDE cabling,
and it did have the necessary option for Compatible IDE,
where the control and data register were in the I/O space,
and accessible by I/O instructions.
This is an example in a Virtual Machine, showing
the mode an older OS might use.
https://i.postimg.cc/RC1mzYKj/compatible-ide.gif
It's not a trivial matter to get all these details right,
and the more modern the equipment, the harder it is to do.
Paul