fn state(&self, gicr_typers: &[u64]) -> Result<Gicv3State> {
            let gicd_ctlr =
                read_ctlr(self.device()).map_err(Error::SaveDistributorCtrlRegisters)?;

            let dist_state =
                get_dist_regs(self.device()).map_err(Error::SaveDistributorRegisters)?;

            let rdist_state = get_redist_regs(self.device(), gicr_typers)
                .map_err(Error::SaveRedistributorRegisters)?;

            let icc_state =
                get_icc_regs(self.device(), gicr_typers).map_err(Error::SaveIccRegisters)?;

            Ok(Gicv3State {
                dist: dist_state,
                rdist: rdist_state,
                icc: icc_state,
                gicd_ctlr,
            })
        }
/// Save the state of GIC.
Save the state of GIC.
Save the state of GIC .
fn state(&self, gicr_typers: &[u64]) -> Result<Gicv3State> {
            let gicd_ctlr =
                read_ctlr(self.device()).map_err(Error::SaveDistributorCtrlRegisters)?;
            let dist_state =
                get_dist_regs(self.device()).map_err(Error::SaveDistributorRegisters)?;
            let rdist_state = get_redist_regs(self.device(), gicr_typers)
                .map_err(Error::SaveRedistributorRegisters)?;
            let icc_state =
                get_icc_regs(self.device(), gicr_typers).map_err(Error::SaveIccRegisters)?;
            Ok(Gicv3State {
                dist: dist_state,
                rdist: rdist_state,
                icc: icc_state,
                gicd_ctlr,
            })
        }
fn state ( & self , gicr_typers : & [ u64 ] ) -> Result < Gicv3State > { let gicd_ctlr = read_ctlr ( self . device ( ) ) . map_err ( Error :: SaveDistributorCtrlRegisters ) ? ; let dist_state = get_dist_regs ( self . device ( ) ) . map_err ( Error :: SaveDistributorRegisters ) ? ; let rdist_state = get_redist_regs ( self . device ( ) , gicr_typers ) . map_err ( Error :: SaveRedistributorRegisters ) ? ; let icc_state = get_icc_regs ( self . device ( ) , gicr_typers ) . map_err ( Error :: SaveIccRegisters ) ? ; Ok ( Gicv3State { dist : dist_state , rdist : rdist_state , icc : icc_state , gicd_ctlr , } ) }
Save the state of GIC.
Save the state of GIC .
&self
gicr_typers
&[u64]
&self
gicr_typers
&[u64]