fn wait(&self) -> Result<(), fs::DiskError> {
        let mut r: u8;
        while {
            r = unsafe { io::inb(0x1f7) };
            (r & (IDE_BSY | IDE_DRDY)) != IDE_DRDY
        } {}

        if r & (IDE_DF | IDE_ERR) == 0 {
            Ok(())
        } else {
            Err(fs::DiskError::IoError)
        }
    }
// poll the IDE device until it's ready
poll the IDE device until it's ready
poll the IDE device until it ' s ready
fn wait(&self) -> Result<(), fs::DiskError> {
        let mut r: u8;
        while {
            r = unsafe { io::inb(0x1f7) };
            (r & (IDE_BSY | IDE_DRDY)) != IDE_DRDY
        } {}
        if r & (IDE_DF | IDE_ERR) == 0 {
            Ok(())
        } else {
            Err(fs::DiskError::IoError)
        }
    }
fn wait ( & self ) -> Result < ( ) , fs :: DiskError > { let mut r : u8 ; while { r = unsafe { io :: inb ( 0x1f7 ) } ; ( r & ( IDE_BSY | IDE_DRDY ) ) != IDE_DRDY } { } if r & ( IDE_DF | IDE_ERR ) == 0 { Ok ( ( ) ) } else { Err ( fs :: DiskError :: IoError ) } }
poll the IDE device until it's ready
poll the IDE device until it ' s ready
&self
&self