Пример #1
0
 public override void Clear()
 {
     mText.Clear();
     mX = 0;
     mY = 0;
     UpdateCursor();
 }
Пример #2
0
        // Init devices that are "static"/mostly static. These are devices
        // that all PCs are expected to have. Keyboards, screens, ATA hard drives etc.
        // Despite them being static, some discovery is required. For example, to see if
        // a hard drive is connected or not and if so what type.
        static internal void InitStaticDevices()
        {
            //TextScreen = new TextScreen();
            Global.Dbg.Send("CLS");

            TextScreen.Clear();

            Global.Dbg.Send("Keyboard");
            Keyboard = new Keyboard();

            // Find hardcoded ATA controllers
            Global.Dbg.Send("ATA Master");
            InitAta(BlockDevice.Ata.ControllerIdEnum.Primary, BlockDevice.Ata.BusPositionEnum.Master);

            //Global.Dbg.Send("ATA Slave");
            //InitAta(BlockDevice.Ata.ControllerIdEnum.Primary, BlockDevice.Ata.BusPositionEnum.Slave);

            //TODO Need to change code to detect if ATA controllers are present or not. How to do this? via PCI enum?
            // They do show up in PCI space as well as the fixed space.
            // Or is it always here, and was our compiler stack corruption issue?
            //InitAta(BlockDevice.Ata.ControllerIdEnum.Secondary, BlockDevice.Ata.BusPositionEnum.Master);
            //InitAta(BlockDevice.Ata.ControllerIdEnum.Secondary, BlockDevice.Ata.BusPositionEnum.Slave);
        }