// SPDX-License-Identifier: GPL-2.012use crate::{3driver::Bar0,4falcon::{Falcon, FalconEngine},5regs,6};78/// Type specifying the `Gsp` falcon engine. Cannot be instantiated.9pub(crate) struct Gsp(());1011impl FalconEngine for Gsp {12const BASE: usize = 0x00110000;13}1415impl Falcon<Gsp> {16/// Clears the SWGEN0 bit in the Falcon's IRQ status clear register to17/// allow GSP to signal CPU for processing new messages in message queue.18pub(crate) fn clear_swgen0_intr(&self, bar: &Bar0) {19regs::NV_PFALCON_FALCON_IRQSCLR::default()20.set_swgen0(true)21.write(bar, Gsp::BASE);22}23}242526