remove stale constants; add an irq handler storage class

constants made obsolete in the latest utra update are removed,
and a storage class for multi-purpose interrupt handlers is added.
This commit is contained in:
bunnie 2025-11-25 19:08:53 +08:00
parent 1ebf9b8d94
commit 1ca144f47f
2 changed files with 15 additions and 3 deletions

View file

@ -108,3 +108,18 @@ impl StaticsInRom {
unsafe { core::slice::from_raw_parts(self as *const Self as *const u8, core::mem::size_of::<Self>()) }
}
}
/// Structure for recording message formats to be passed from interrupt handlers back to userspace.
/// A specific handler may or may not use any or all of the arguments: this simply provides storage
/// for all the possible arguments.
#[derive(Copy, Clone)]
pub struct IrqNotification {
/// Specifies the bit position of the event in the irq bank
pub bit: arbitrary_int::u4,
/// Connection to send notifications to
pub conn: xous::CID,
/// Opcode argument for the notification
pub opcode: usize,
/// Up to four arguments to be passed on
pub args: [usize; 4],
}

View file

@ -21,9 +21,6 @@ pub const IFR_LEN: usize = 0x400;
/// It contains the lot ID, wafer ID, and wafer x/y position of the die.
pub const IFR_CP_ID_BASE: usize = 0x6040_00A0;
pub const AO_BU_MEM: usize = 0x5030_0000;
pub const AO_BU_MEM_LEN: usize = 0x4000;
#[bitfield(u32)]
#[derive(PartialEq, Eq, Debug)]
pub struct DataSlotAccess {