mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 20:39:01 +00:00
This commit is contained in:
parent
5ce8e4aa39
commit
cf0a36ff30
1 changed files with 6 additions and 2 deletions
|
|
@ -110,8 +110,7 @@ namespace Cosmos.Hardware {
|
|||
|
||||
public void Test() {
|
||||
// Disable IRQs:
|
||||
Global.Dbg.Send(IO.Control.Port.ToString());
|
||||
IO.Control.DWord = 0x02;
|
||||
IO.Control.Byte = 0x02;
|
||||
|
||||
int xCount = 0;
|
||||
for (int xDrive = 0; xDrive <= 1; xDrive++) {
|
||||
|
|
@ -171,6 +170,11 @@ namespace Cosmos.Hardware {
|
|||
Global.Dbg.Send("--------------------------");
|
||||
Global.Dbg.Send("Drive Found");
|
||||
Global.Dbg.Send("Type: " + xType);
|
||||
if (xType == SpecLevel.ATA) {
|
||||
Global.Dbg.Send("Type: ATA");
|
||||
} else {
|
||||
Global.Dbg.Send("Type: ATAPI");
|
||||
}
|
||||
Global.Dbg.Send("Drive #: " + xDrive);
|
||||
// ide_devices[count].Signature = ((unsigned short *)(ide_buf + ATA_IDENT_DEVICETYPE));
|
||||
// ide_devices[count].Capabilities = ((unsigned short *)(ide_buf + ATA_IDENT_CAPABILITIES));
|
||||
|
|
|
|||
Loading…
Reference in a new issue