diff --git a/libs/bao1x-api/src/lib.rs b/libs/bao1x-api/src/lib.rs index fde92b34c..5cd6df024 100644 --- a/libs/bao1x-api/src/lib.rs +++ b/libs/bao1x-api/src/lib.rs @@ -108,3 +108,18 @@ impl StaticsInRom { unsafe { core::slice::from_raw_parts(self as *const Self as *const u8, core::mem::size_of::()) } } } + +/// 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], +} diff --git a/libs/bao1x-api/src/offsets.rs b/libs/bao1x-api/src/offsets.rs index 431bb186d..1e7fd3e0e 100644 --- a/libs/bao1x-api/src/offsets.rs +++ b/libs/bao1x-api/src/offsets.rs @@ -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 {