14 Commits

Author SHA1 Message Date
176864f623
kernel/ATA: Pass extra information to DeviceRegistry
Some checks failed
continuous-integration/drone/pr Build is failing
This is needed since merging e7d482e from main.
2023-05-26 20:28:21 +02:00
1e586ee982
kernel+init: Create a device node in /dev to access the CDROM from userspace!
Still using PIO, though.
2023-05-26 20:28:21 +02:00
35c96024d4
kernel/ATA: Read the CDROM's first sector using ATAPI PIO!!
Sadly, for some reason, DMA is not working right now.
This is a problem, as PIO is inconvenient. But hey, it works for now!
2023-05-26 20:28:21 +02:00
d55edf77cd
kernel/ATA: Calculate block sizes for ATA devices as well 2023-05-26 20:28:20 +02:00
e60b8cfdf0
kernel/ATA: Send a READ CAPACITY packet to an ATA drive on initialization 2023-05-26 20:28:20 +02:00
0483f38038
kernel/ATA: Read the PCI Busmaster registers and start preparing for DMA 2023-05-26 20:28:20 +02:00
1722b995c9
kernel/ATA: Read the Busmaster base port and verify it 2023-05-26 20:28:20 +02:00
5afe1ec3a6
kernel: Handle device BARs properly 2023-05-26 20:28:20 +02:00
2c239f7d19
kernel/ATA: Read ATA strings properly instead of backwards
Now we can see the model string. What does it say...

"QEMU DVD-ROM". Let's go!
2023-05-26 20:28:20 +02:00
6fb25e2499
kernel/ATA: Implement enough to send an IDENTIFY command and read the model number :) 2023-05-26 20:28:20 +02:00
2ab3860d04
kernel/ATA: Handle drive IRQs in compatibility mode 2023-05-26 20:28:20 +02:00
9422b8c878
kernel/ATA: Start reading/writing registers and detecting drives 2023-05-26 20:28:20 +02:00
1c4a26a381
kernel: Warn if no ATA controller is found 2023-05-26 20:28:19 +02:00
5eaacd7b29
kernel/x86_64: Add basic ATA controller and channel identification 2023-05-26 20:28:19 +02:00