#[repr(C)]pub struct PciProbeCriteria {
pub match_flags: u32,
pub vendor_id: u16,
pub device_id: u16,
pub class_code: u8,
pub subclass: u8,
pub prog_if: u8,
pub _reserved: u8,
}Expand description
PCI device search criteria for SYS_PCI_ENUM.
Set match_flags to indicate which fields to match. Fields not
flagged are ignored.
Fields§
§match_flags: u32Bitmask of fields to match (see PCI_MATCH_* constants).
vendor_id: u16Vendor ID to match (if PCI_MATCH_VENDOR_ID is set).
device_id: u16Device ID to match (if PCI_MATCH_DEVICE_ID is set).
class_code: u8Class code to match (if PCI_MATCH_CLASS_CODE is set).
subclass: u8Subclass to match (if PCI_MATCH_SUBCLASS is set).
prog_if: u8Programming interface to match (if PCI_MATCH_PROG_IF is set).
_reserved: u8Trait Implementations§
Source§impl Clone for PciProbeCriteria
impl Clone for PciProbeCriteria
Source§fn clone(&self) -> PciProbeCriteria
fn clone(&self) -> PciProbeCriteria
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PciProbeCriteria
Source§impl Debug for PciProbeCriteria
impl Debug for PciProbeCriteria
Source§impl FromBytes for PciProbeCriteria
impl FromBytes for PciProbeCriteria
Source§impl FromZeros for PciProbeCriteria
impl FromZeros for PciProbeCriteria
Source§impl IntoBytes for PciProbeCriteria
impl IntoBytes for PciProbeCriteria
§fn as_mut_bytes(&mut self) -> &mut [u8]where
Self: FromBytes,
fn as_mut_bytes(&mut self) -> &mut [u8]where
Self: FromBytes,
Gets the bytes of this value mutably. Read more
Source§impl TryFromBytes for PciProbeCriteria
impl TryFromBytes for PciProbeCriteria
§fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
§fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
§fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
Auto Trait Implementations§
impl Freeze for PciProbeCriteria
impl RefUnwindSafe for PciProbeCriteria
impl Send for PciProbeCriteria
impl Sync for PciProbeCriteria
impl Unpin for PciProbeCriteria
impl UnsafeUnpin for PciProbeCriteria
impl UnwindSafe for PciProbeCriteria
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more