pub fn add_mmio_serial_to_cmdline(&self, cmdline: &mut kernel_cmdline::Cmdline) -> Result<()> {
        let mmio_slot = self
            .id_to_dev_info
            .get(&(DeviceType::Serial, DeviceType::Serial.to_string()))
            .ok_or(Error::DeviceNotFound)?;
        cmdline
            .insert("earlycon", &format!("uart,mmio,0x{:08x}", mmio_slot.addr))
            .map_err(Error::Cmdline)
    }
/// Append the registered early console to the kernel cmdline.
Append the registered early console to the kernel cmdline.
Append the registered early console to the kernel cmdline .
pub fn add_mmio_serial_to_cmdline(&self, cmdline: &mut kernel_cmdline::Cmdline) -> Result<()> {
        let mmio_slot = self
            .id_to_dev_info
            .get(&(DeviceType::Serial, DeviceType::Serial.to_string()))
            .ok_or(Error::DeviceNotFound)?;
        cmdline
            .insert("earlycon", &format!("uart,mmio,0x{:08x}", mmio_slot.addr))
            .map_err(Error::Cmdline)
    }
pub fn add_mmio_serial_to_cmdline ( & self , cmdline : & mut kernel_cmdline :: Cmdline ) -> Result < ( ) > { let mmio_slot = self . id_to_dev_info . get ( & ( DeviceType :: Serial , DeviceType :: Serial . to_string ( ) ) ) . ok_or ( Error :: DeviceNotFound ) ? ; cmdline . insert ( " " , & format ! ( " " mmio_slot addr ) ) . map_err ( Error :: Cmdline ) }
Append the registered early console to the kernel cmdline.
Append the registered early console to the kernel cmdline .
&self
cmdline
&mut kernel_cmdline::Cmdline
&self
cmdline
&mut kernel_cmdline::Cmdline