Atomix.Kernel_H.Drivers.buses.ATA.IDE.SelectDrive()

Here are the examples of the csharp api class Atomix.Kernel_H.Drivers.buses.ATA.IDE.SelectDrive() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

1. Example

Project: AtomOS
Source File: IDE.cs
private void Discover()
        {
            mDevice = Device.IDE_None;
            mBufferSize = 0/n ..... /n //View Source file for more details /n }

2. Example

Project: AtomOS
Source File: IDE.cs
internal override bool Eject()
        {
            if (mDevice == Device.IDE_ATAPI)
            {
                // SCSI Packet Command
                mATAPI_Packet[0] = (byte)Cmd.ATAPI_CMD_EJECT;
                mATAPI_Packet[1] = 0x00;
                mATAPI_Packet[2] = 0x00;
                mATAPI_Packet[3] = 0x00;
                mATAPI_Packet[4] = 0x02;
                mATAPI_Packet[5] = 0x00;
                mATAPI_Packet[6] = 0x00;
                mATAPI_Packet[7] = 0x00;
                mATAPI_Packet[8] = 0x00;
                mATAPI_Packet[9] = 0x00;
                mATAPI_Packet[10] = 0x00;
                mATAPI_Packet[11] = 0x00;

                // Enable IRQ; Currently IRQ is not working...so we ignore it but very important
                IRQInvoked = false;
                PortIO.Out8(ControlReg, 0x0);

                SelectDrive();

                Send_SCSI_Package();
                return true;
            }

            return false;
        }