forked from CosmosOS/Cosmos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
152 changed files
with
9,349 additions
and
9,349 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
58 changes: 29 additions & 29 deletions
58
source/Cosmos.HAL/BlockDevice/ATA.html → source/Cosmos.HAL2/BlockDevice/ATA.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | ||
<html> | ||
<head> | ||
<title></title> | ||
</head> | ||
<body> | ||
|
||
<p> | ||
Intro - | ||
<a href="http://wiki.osdev.org/ATA">http://wiki.osdev.org/ATA</a><br /> | ||
How to use PIO mode - | ||
<a href="http://wiki.osdev.org/ATA_PIO_Mode">http://wiki.osdev.org/ATA_PIO_Mode</a></p> | ||
<p> | ||
Deep docs - | ||
<a href="http://www.t13.org/Documents/UploadedDocuments/project/d1410r3b-ATA-ATAPI-6.pdf"> | ||
http://www.t13.org/Documents/UploadedDocuments/project/d1410r3b-ATA-ATAPI-6.pdf</a><br /> | ||
<a href="http://suif.stanford.edu/~csapuntz/ide.html"> | ||
http://suif.stanford.edu/~csapuntz/ide.html</a><br /> | ||
<a href="http://www.t13.org/">http://www.t13.org/</a><br /> | ||
<a href="http://www.ata-atapi.com/">http://www.ata-atapi.com/</a><br /> | ||
<a href="http://www.repairfaq.org/filipg/LINK/F_IDE-tech.html"> | ||
http://www.repairfaq.org/filipg/LINK/F_IDE-tech.html</a><br /> | ||
<a href="http://www.seagate.com/support/disc/manuals/ata/1621pma.pdf"> | ||
http://www.seagate.com/support/disc/manuals/ata/1621pma.pdf</a><br /> | ||
<a href="http://www.scsita.org/aboutscsi/sas/tutorials/SAS_ATA_upper_layers_public.pdf"> | ||
http://www.scsita.org/aboutscsi/sas/tutorials/SAS_ATA_upper_layers_public.pdf</a><br /> | ||
</p> | ||
|
||
</body> | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | ||
<html> | ||
<head> | ||
<title></title> | ||
</head> | ||
<body> | ||
|
||
<p> | ||
Intro - | ||
<a href="http://wiki.osdev.org/ATA">http://wiki.osdev.org/ATA</a><br /> | ||
How to use PIO mode - | ||
<a href="http://wiki.osdev.org/ATA_PIO_Mode">http://wiki.osdev.org/ATA_PIO_Mode</a></p> | ||
<p> | ||
Deep docs - | ||
<a href="http://www.t13.org/Documents/UploadedDocuments/project/d1410r3b-ATA-ATAPI-6.pdf"> | ||
http://www.t13.org/Documents/UploadedDocuments/project/d1410r3b-ATA-ATAPI-6.pdf</a><br /> | ||
<a href="http://suif.stanford.edu/~csapuntz/ide.html"> | ||
http://suif.stanford.edu/~csapuntz/ide.html</a><br /> | ||
<a href="http://www.t13.org/">http://www.t13.org/</a><br /> | ||
<a href="http://www.ata-atapi.com/">http://www.ata-atapi.com/</a><br /> | ||
<a href="http://www.repairfaq.org/filipg/LINK/F_IDE-tech.html"> | ||
http://www.repairfaq.org/filipg/LINK/F_IDE-tech.html</a><br /> | ||
<a href="http://www.seagate.com/support/disc/manuals/ata/1621pma.pdf"> | ||
http://www.seagate.com/support/disc/manuals/ata/1621pma.pdf</a><br /> | ||
<a href="http://www.scsita.org/aboutscsi/sas/tutorials/SAS_ATA_upper_layers_public.pdf"> | ||
http://www.scsita.org/aboutscsi/sas/tutorials/SAS_ATA_upper_layers_public.pdf</a><br /> | ||
</p> | ||
|
||
</body> | ||
</html> |
72 changes: 36 additions & 36 deletions
72
source/Cosmos.HAL/BlockDevice/Ata.cs → source/Cosmos.HAL2/BlockDevice/Ata.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,36 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using Cosmos.Debug.Kernel; | ||
|
||
namespace Cosmos.HAL.BlockDevice { | ||
public abstract class Ata : BlockDevice | ||
{ | ||
|
||
internal static Debugger AtaDebugger = new Debugger("HAL", "Ata"); | ||
|
||
protected Ata() { | ||
mBlockSize = 512; | ||
} | ||
|
||
// In future may need to add a None for PCI ATA controllers. | ||
// Or maybe they all have Primary and Secondary on them as well. | ||
public enum ControllerIdEnum { Primary, Secondary } | ||
protected ControllerIdEnum mControllerID; | ||
public ControllerIdEnum ControllerID { | ||
get { return mControllerID; } | ||
} | ||
|
||
public enum BusPositionEnum { Master, Slave } | ||
protected BusPositionEnum mBusPosition; | ||
public BusPositionEnum BusPosition { | ||
get { return mBusPosition; } | ||
} | ||
|
||
public override string ToString() | ||
{ | ||
return "Ata (Abstract)"; | ||
} | ||
} | ||
} | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using Cosmos.Debug.Kernel; | ||
|
||
namespace Cosmos.HAL.BlockDevice { | ||
public abstract class Ata : BlockDevice | ||
{ | ||
|
||
internal static Debugger AtaDebugger = new Debugger("HAL", "Ata"); | ||
|
||
protected Ata() { | ||
mBlockSize = 512; | ||
} | ||
|
||
// In future may need to add a None for PCI ATA controllers. | ||
// Or maybe they all have Primary and Secondary on them as well. | ||
public enum ControllerIdEnum { Primary, Secondary } | ||
protected ControllerIdEnum mControllerID; | ||
public ControllerIdEnum ControllerID { | ||
get { return mControllerID; } | ||
} | ||
|
||
public enum BusPositionEnum { Master, Slave } | ||
protected BusPositionEnum mBusPosition; | ||
public BusPositionEnum BusPosition { | ||
get { return mBusPosition; } | ||
} | ||
|
||
public override string ToString() | ||
{ | ||
return "Ata (Abstract)"; | ||
} | ||
} | ||
} |
Oops, something went wrong.