diff --git a/source/Cosmos/Cosmos.Drivers/Cosmos.Drivers/Cosmos.Drivers.csproj b/source/Cosmos/Cosmos.Drivers/Cosmos.Drivers/Cosmos.Drivers.csproj new file mode 100644 index 000000000..d58c95ba9 --- /dev/null +++ b/source/Cosmos/Cosmos.Drivers/Cosmos.Drivers/Cosmos.Drivers.csproj @@ -0,0 +1,87 @@ + + + + Debug + AnyCPU + 9.0.21022 + 2.0 + {E7863305-209C-46ED-9C58-7D0F67DB3B48} + WinExe + Properties + Cosmos.Drivers + Cosmos.Drivers + v3.5 + 512 + SAK + SAK + SAK + SAK + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + 3.5 + + + 3.5 + + + 3.5 + + + + + + + + + + + + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + \ No newline at end of file diff --git a/source/Cosmos/Cosmos.Drivers/Cosmos.Drivers/Cosmos.Drivers.csproj.vspscc b/source/Cosmos/Cosmos.Drivers/Cosmos.Drivers/Cosmos.Drivers.csproj.vspscc new file mode 100644 index 000000000..feffdecaa --- /dev/null +++ b/source/Cosmos/Cosmos.Drivers/Cosmos.Drivers/Cosmos.Drivers.csproj.vspscc @@ -0,0 +1,10 @@ +"" +{ +"FILE_VERSION" = "9237" +"ENLISTMENT_CHOICE" = "NEVER" +"PROJECT_FILE_RELATIVE_PATH" = "" +"NUMBER_OF_EXCLUDED_FILES" = "0" +"ORIGINAL_PROJECT_FILE_PATH" = "" +"NUMBER_OF_NESTED_PROJECTS" = "0" +"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" +} diff --git a/source/Cosmos/Cosmos.Drivers/Cosmos.Drivers/Driver.cs b/source/Cosmos/Cosmos.Drivers/Cosmos.Drivers/Driver.cs new file mode 100644 index 000000000..8ee241ff3 --- /dev/null +++ b/source/Cosmos/Cosmos.Drivers/Cosmos.Drivers/Driver.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace Cosmos.Drivers +{ + /// + /// Represents a generic device driver. + /// + public abstract class Driver + { + public abstract void Initialise(HardwareManager manager); + + } +} diff --git a/source/Cosmos/Cosmos.Drivers/Cosmos.Drivers/HardwareManager.cs b/source/Cosmos/Cosmos.Drivers/Cosmos.Drivers/HardwareManager.cs new file mode 100644 index 000000000..6e3002dee --- /dev/null +++ b/source/Cosmos/Cosmos.Drivers/Cosmos.Drivers/HardwareManager.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace Cosmos.Drivers +{ + public abstract class HardwareManager + { + public abstract void GetDMAChannel(); + // Todo... + } +} diff --git a/source/Cosmos/Cosmos.Drivers/Cosmos.Drivers/PCI/PCIDriver.cs b/source/Cosmos/Cosmos.Drivers/Cosmos.Drivers/PCI/PCIDriver.cs new file mode 100644 index 000000000..a759e4d30 --- /dev/null +++ b/source/Cosmos/Cosmos.Drivers/Cosmos.Drivers/PCI/PCIDriver.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace Cosmos.Drivers.PCI +{ + /// + /// Represents a generic PCI driver. + /// + public abstract class PCIDriver : Driver + { + } +} diff --git a/source/Cosmos/Cosmos.Drivers/Cosmos.Drivers/Properties/AssemblyInfo.cs b/source/Cosmos/Cosmos.Drivers/Cosmos.Drivers/Properties/AssemblyInfo.cs new file mode 100644 index 000000000..08f6d21b5 --- /dev/null +++ b/source/Cosmos/Cosmos.Drivers/Cosmos.Drivers/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Cosmos.Drivers")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Cosmos.Drivers")] +[assembly: AssemblyCopyright("Copyright © 2008")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("870296b1-493d-4599-a10d-d85ade6a1f9c")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/source/Cosmos/Cosmos.Drivers/Cosmos.Drivers/Properties/Resources.Designer.cs b/source/Cosmos/Cosmos.Drivers/Cosmos.Drivers/Properties/Resources.Designer.cs new file mode 100644 index 000000000..50b029a02 --- /dev/null +++ b/source/Cosmos/Cosmos.Drivers/Cosmos.Drivers/Properties/Resources.Designer.cs @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:2.0.50727.1433 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Cosmos.Drivers.Properties +{ + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources + { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() + { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager + { + get + { + if ((resourceMan == null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Cosmos.Drivers.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + } +} diff --git a/source/Cosmos/Cosmos.Drivers/Cosmos.Drivers/Properties/Resources.resx b/source/Cosmos/Cosmos.Drivers/Cosmos.Drivers/Properties/Resources.resx new file mode 100644 index 000000000..ffecec851 --- /dev/null +++ b/source/Cosmos/Cosmos.Drivers/Cosmos.Drivers/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/source/Cosmos/Cosmos.Drivers/Cosmos.Drivers/Properties/Settings.Designer.cs b/source/Cosmos/Cosmos.Drivers/Cosmos.Drivers/Properties/Settings.Designer.cs new file mode 100644 index 000000000..e200d299d --- /dev/null +++ b/source/Cosmos/Cosmos.Drivers/Cosmos.Drivers/Properties/Settings.Designer.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:2.0.50727.1433 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Cosmos.Drivers.Properties +{ + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase + { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default + { + get + { + return defaultInstance; + } + } + } +} diff --git a/source/Cosmos/Cosmos.Drivers/Cosmos.Drivers/Properties/Settings.settings b/source/Cosmos/Cosmos.Drivers/Cosmos.Drivers/Properties/Settings.settings new file mode 100644 index 000000000..abf36c5d3 --- /dev/null +++ b/source/Cosmos/Cosmos.Drivers/Cosmos.Drivers/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/source/Cosmos/Cosmos.Drivers/Cosmos.Drivers/Storage/Storage.cs b/source/Cosmos/Cosmos.Drivers/Cosmos.Drivers/Storage/Storage.cs new file mode 100644 index 000000000..80bdce0a1 --- /dev/null +++ b/source/Cosmos/Cosmos.Drivers/Cosmos.Drivers/Storage/Storage.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace Cosmos.Drivers.Storage +{ + /// + /// Represents a file system. + /// + public abstract class Storage : Driver + { + } +}