pub fn new(mmio_base: &mut u64, irq_interval: (u32, u32)) -> MMIODeviceManager {
        if cfg!(target_arch = "aarch64") {
            *mmio_base += MMIO_LEN;
        }
        MMIODeviceManager {
            mmio_base: *mmio_base,
            irq: irq_interval.0,
            last_irq: irq_interval.1,
            bus: devices::Bus::new(),
            id_to_dev_info: HashMap::new(),
        }
    }
/// Create a new DeviceManager handling mmio devices (virtio net, block).
Create a new DeviceManager handling mmio devices (virtio net, block).
Create a new DeviceManager handling mmio devices ( virtio net block ) .
pub fn new(mmio_base: &mut u64, irq_interval: (u32, u32)) -> MMIODeviceManager {
        if cfg!(target_arch = "aarch64") {
            *mmio_base += MMIO_LEN;
        }
        MMIODeviceManager {
            mmio_base: *mmio_base,
            irq: irq_interval.0,
            last_irq: irq_interval.1,
            bus: devices::Bus::new(),
            id_to_dev_info: HashMap::new(),
        }
    }
pub fn new ( mmio_base : & mut u64 , irq_interval : ( u32 , u32 ) ) -> MMIODeviceManager { if cfg ! ( target_arch " " ) { * mmio_base += MMIO_LEN ; } MMIODeviceManager { mmio_base : * mmio_base , irq : irq_interval . 0 , last_irq : irq_interval . 1 , bus : devices :: Bus :: new ( ) , id_to_dev_info : HashMap :: new ( ) , } }
Create a new DeviceManager handling mmio devices (virtio net, block).
Create a new DeviceManager handling mmio devices ( virtio net block ) .
mmio_base
&mut u64
irq_interval
(u32, u32)