pub fn register_mmio_rtc(
        &mut self,
        rtc: Arc<Mutex<RTCDevice>>,
        dev_info_opt: Option<MMIODeviceInfo>,
    ) -> Result<()> {
        // Create and attach a new RTC device.
        // We allocate an IRQ even though we do not need it so that
        // we do not break snapshot compatibility.
        let slot = dev_info_opt.unwrap_or(self.allocate_new_slot(1)?);

        let identifier = (DeviceType::Rtc, DeviceType::Rtc.to_string());
        self.register_mmio_device(identifier, slot, rtc)
    }
/// Create and register a MMIO RTC device at the specified MMIO address if given as parameter,
/// otherwise allocate a new MMIO slot for it.
Create and register a MMIO RTC device at the specified MMIO address if given as parameter,
otherwise allocate a new MMIO slot for it.
Create and register a MMIO RTC device at the specified MMIO address if given as parameter otherwise allocate a new MMIO slot for it .
pub fn register_mmio_rtc(
        &mut self,
        rtc: Arc<Mutex<RTCDevice>>,
        dev_info_opt: Option<MMIODeviceInfo>,
    ) -> Result<()> {
        // Create and attach a new RTC device.
        // We allocate an IRQ even though we do not need it so that
        // we do not break snapshot compatibility.
        let slot = dev_info_opt.unwrap_or(self.allocate_new_slot(1)?);
        let identifier = (DeviceType::Rtc, DeviceType::Rtc.to_string());
        self.register_mmio_device(identifier, slot, rtc)
    }
pub fn register_mmio_rtc ( & mut self , rtc : Arc < Mutex < RTCDevice > > , dev_info_opt : Option < MMIODeviceInfo > , ) -> Result < ( ) > { // Create and attach a new RTC device. // We allocate an IRQ even though we do not need it so that // we do not break snapshot compatibility. let slot = dev_info_opt . unwrap_or ( self . allocate_new_slot ( 1 ) ? ) ; let identifier = ( DeviceType :: Rtc , DeviceType :: Rtc . to_string ( ) ) ; self . register_mmio_device ( identifier , slot , rtc ) }
Create and register a MMIO RTC device at the specified MMIO address if given as parameter,
otherwise allocate a new MMIO slot for it.
Create and register a MMIO RTC device at the specified MMIO address if given as parameter otherwise allocate a new MMIO slot for it .
&mut self
rtc
Arc<Mutex<RTCDevice>>
dev_info_opt
Option<MMIODeviceInfo>
&mut self
rtc
Arc<Mutex<RTCDevice>>
dev_info_opt
Option<MMIODeviceInfo>