#[derive(Debug, Copy, Clone, Ord, PartialOrd, Eq, PartialEq, Hash)]
#[derive(Deserialize, Serialize)]
#[serde(deny_unknown_fields)]
#[repr(u8)]
pub enum SemiTransparentPciToPciBridgeProgrammingInterface
{
PrimaryPciBusFacesSystemHostProcessor = 0x40,
SecondaryPciBusFacesSystemHostProcessor = 0x80,
}
impl SemiTransparentPciToPciBridgeProgrammingInterface
{
#[inline(always)]
pub(crate) fn parse(programming_interface: u8) -> Option<Self>
{
use self::SemiTransparentPciToPciBridgeProgrammingInterface::*;
match programming_interface
{
0x40 => Some(PrimaryPciBusFacesSystemHostProcessor),
0x80 => Some(SecondaryPciBusFacesSystemHostProcessor),
_ => None,
}
}
}