Пример #1
0
        /// <summary>
        /// Initializes the Device Driver System.
        /// </summary>
        public static void Initialize()
        {
            // Create the Device Driver Manager
            deviceDriverRegistry = new DeviceDriverRegistry(PlatformArchitecture.X86);

            // Create Resource Manager
            resourceManager = new ResourceManager();

            // Create Device Manager
            deviceManager = new DeviceManager();
        }
Пример #2
0
        /// <summary>
        /// Initializes the Device Driver System.
        /// </summary>
        static public void Initialize()
        {
            // Create the Device Driver Manager
            deviceDriverRegistry = new DeviceDriverRegistry(PlatformArchitecture.X86);

            // Create Resource Manager
            resourceManager = new ResourceManager();

            // Create Device Manager
            deviceManager = new DeviceManager();
        }
Пример #3
0
        public static void StartISADevices()
        {
            // Start ISA Drivers
            var drivers = DeviceDriverRegistry.GetDeviceDrivers(DeviceBusType.ISA);

            foreach (var driver in drivers)
            {
                if (driver is ISADeviceDriverRegistryEntry)
                {
                    StartISADevice(driver as ISADeviceDriverRegistryEntry);
                }
            }
        }
Пример #4
0
        public static void Initialize(BaseHardwareAbstraction hardware)
        {
            // Create Device Manager
            DeviceManager = new DeviceManager();

            // Create Interrupt Manager
            InterruptManager = new InterruptManager();

            // Create the Device Driver Manager
            DeviceDriverRegistry = new DeviceDriverRegistry(PlatformArchitecture.X86);

            // Create the PCI Controller Manager
            PCIControllerManager = new PCIControllerManager(DeviceManager);

            // Set device driver system to the hardware HAL
            HAL.SetHardwareAbstraction(hardware);

            // Set the interrupt handler
            HAL.SetInterruptHandler(InterruptManager.ProcessInterrupt);
        }
Пример #5
0
        /// <summary>
        /// Initializes the Device Driver System.
        /// </summary>
        public static void Initialize()
        {
            // Create Resource Manager
            resourceManager = new ResourceManager();

            // Create Device Manager
            deviceManager = new DeviceManager();

            // Create the Device Driver Manager
            deviceDriverRegistry = new DeviceDriverRegistry(PlatformArchitecture.X86);

            // Setup hardware abstraction interface
            IHardwareAbstraction hardwareAbstraction = new Mosa.CoolWorld.x86.HAL.HardwareAbstraction();

            // Set device driver system to the hardware HAL
            Mosa.DeviceSystem.HAL.SetHardwareAbstraction(hardwareAbstraction);

            // Set the interrupt handler
            Mosa.DeviceSystem.HAL.SetInterruptHandler(ResourceManager.InterruptManager.ProcessInterrupt);
        }