pub fn type_of_device(&self) -> TypeOfDevice {
        let result = self.raw & 0x7F;
        match result {
            0x01 => TypeOfDevice::Other,
            0x02 => TypeOfDevice::Unknown,
            0x03 => TypeOfDevice::Video,
            0x04 => TypeOfDevice::ScsiController,
            0x05 => TypeOfDevice::Ethernet,
            0x06 => TypeOfDevice::TokenRing,
            0x07 => TypeOfDevice::Sound,
            0x08 => TypeOfDevice::PataController,
            0x09 => TypeOfDevice::SataController,
            0x0A => TypeOfDevice::SasController,
            _ => TypeOfDevice::None,
        }
    }
/// One of the onboard device types
One of the onboard device types
One of the onboard device types
pub fn type_of_device(&self) -> TypeOfDevice {
        let result = self.raw & 0x7F;
        match result {
            0x01 => TypeOfDevice::Other,
            0x02 => TypeOfDevice::Unknown,
            0x03 => TypeOfDevice::Video,
            0x04 => TypeOfDevice::ScsiController,
            0x05 => TypeOfDevice::Ethernet,
            0x06 => TypeOfDevice::TokenRing,
            0x07 => TypeOfDevice::Sound,
            0x08 => TypeOfDevice::PataController,
            0x09 => TypeOfDevice::SataController,
            0x0A => TypeOfDevice::SasController,
            _ => TypeOfDevice::None,
        }
    }
pub fn type_of_device ( & self ) -> TypeOfDevice { let result = self . raw & 0x7F ; match result { 0x01 => TypeOfDevice :: Other , 0x02 => TypeOfDevice :: Unknown , 0x03 => TypeOfDevice :: Video , 0x04 => TypeOfDevice :: ScsiController , 0x05 => TypeOfDevice :: Ethernet , 0x06 => TypeOfDevice :: TokenRing , 0x07 => TypeOfDevice :: Sound , 0x08 => TypeOfDevice :: PataController , 0x09 => TypeOfDevice :: SataController , 0x0A => TypeOfDevice :: SasController , _ => TypeOfDevice :: None , } }
One of the onboard device types
One of the onboard device types
&self
&self