mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-19 09:00:54 +00:00
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:
parent
1ebf9b8d94
commit
1ca144f47f
2 changed files with 15 additions and 3 deletions
|
|
@ -108,3 +108,18 @@ impl StaticsInRom {
|
||||||
unsafe { core::slice::from_raw_parts(self as *const Self as *const u8, core::mem::size_of::<Self>()) }
|
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],
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -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.
|
/// 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 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)]
|
#[bitfield(u32)]
|
||||||
#[derive(PartialEq, Eq, Debug)]
|
#[derive(PartialEq, Eq, Debug)]
|
||||||
pub struct DataSlotAccess {
|
pub struct DataSlotAccess {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue