pub struct ExtendedPciDevice {
pub device: PciDevice,
pub harvested_rows: u32,
pub grid_size_x: u8,
pub grid_size_y: u8,
pub eth_x: u8,
pub eth_y: u8,
pub command_q_addr: u32,
pub fake_block: bool,
pub default_tlb: u32,
pub ethernet_dma_buffer: HashMap<(u8, u8), DmaBuffer>,
}
Fields§
§device: PciDevice
§harvested_rows: u32
§grid_size_x: u8
§grid_size_y: u8
§eth_x: u8
§eth_y: u8
§command_q_addr: u32
§fake_block: bool
§default_tlb: u32
§ethernet_dma_buffer: HashMap<(u8, u8), DmaBuffer>
Implementations§
Source§impl ExtendedPciDevice
impl ExtendedPciDevice
pub fn setup_tlb( &mut self, index: u32, tlb: Tlb, ) -> Result<(u64, u64), PciError>
pub fn get_tlb(&self, index: u32) -> Result<Tlb, PciError>
pub fn noc_write( &mut self, tlb_index: u32, addr: u64, data: &[u8], ) -> Result<(), PciError>
pub fn noc_read( &mut self, tlb_index: u32, addr: u64, data: &mut [u8], ) -> Result<(), PciError>
pub fn noc_write32( &mut self, tlb_index: u32, noc_id: u8, x: u8, y: u8, addr: u64, data: u32, ) -> Result<(), PciError>
pub fn noc_read32( &mut self, tlb_index: u32, noc_id: u8, x: u8, y: u8, addr: u64, ) -> Result<u32, PciError>
Source§impl ExtendedPciDevice
impl ExtendedPciDevice
pub fn open( pci_interface: usize, ) -> Result<ExtendedPciDeviceWrapper, PciOpenError>
pub fn read_block(&mut self, addr: u32, data: &mut [u8]) -> Result<(), PciError>
pub fn write_block(&mut self, addr: u32, data: &[u8]) -> Result<(), PciError>
Auto Trait Implementations§
impl Freeze for ExtendedPciDevice
impl RefUnwindSafe for ExtendedPciDevice
impl Send for ExtendedPciDevice
impl Sync for ExtendedPciDevice
impl Unpin for ExtendedPciDevice
impl UnwindSafe for ExtendedPciDevice
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