pub struct PciInterface<'a> {
pub pci_interface: &'a ExtendedPciDeviceWrapper,
}
Fields§
§pci_interface: &'a ExtendedPciDeviceWrapper
Implementations§
Source§impl PciInterface<'_>
impl PciInterface<'_>
pub fn from_wh<'a>(wh: &'a PciWormhole) -> Option<PciInterface<'a>>
pub fn from_gs<'a>(gs: &'a PciGrayskull) -> Option<PciInterface<'a>>
pub fn setup_tlb( &self, index: u32, addr: u64, x_start: u8, y_start: u8, x_end: u8, y_end: u8, noc_sel: u8, mcast: bool, ordering: Ordering, linked: bool, ) -> (u64, u64)
pub fn noc_read(&self, tlb_index: u32, addr: u64, data: &mut [u8])
pub fn noc_write(&self, tlb_index: u32, addr: u64, data: &[u8])
pub fn allocate_dma_buffer(&self, size: u32) -> Result<DmaBuffer, String>
pub fn config_dma( &self, dma_64_bit_addr: Option<u32>, csm_pcie_ctrl_dma_request_offset: u32, arc_misc_cntl_addr: u32, msi: bool, read_threshold: u32, write_threshold: u32, ) -> Result<(), String>
pub fn dma_transfer_turbo( &self, addr: u32, physical_address: u64, size: u32, write: bool, ) -> Result<(), String>
pub fn axi_write32(&self, addr: u32, value: u32) -> Result<(), String>
pub fn axi_read32(&self, addr: u32) -> Result<u32, String>
Auto Trait Implementations§
impl<'a> Freeze for PciInterface<'a>
impl<'a> RefUnwindSafe for PciInterface<'a>
impl<'a> Send for PciInterface<'a>
impl<'a> Sync for PciInterface<'a>
impl<'a> Unpin for PciInterface<'a>
impl<'a> UnwindSafe for PciInterface<'a>
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