Skip to main content

RcpRegs

Struct RcpRegs 

Source
pub struct RcpRegs {
    pub mi_intr: MiInterrupt,
    pub mi_mask: MiInterrupt,
    pub mi_mode: u32,
    pub ri: [u32; 8],
}
Expand description

The RCP interface register state.

The SP / DP / VI / AI / PI / SI / RI / MI register blocks the CPU memory-maps in $0400_0000..$04FF_FFFF. Skeleton: each is a placeholder for its real register set (a roadmap phase).

Fields§

§mi_intr: MiInterrupt

MI — MIPS interface (interrupt lines + mask + RCP version).

§mi_mask: MiInterrupt

MI interrupt mask (a line drives IP2 only when masked-in).

§mi_mode: u32

MI_MODE’s storage bits (the repeat count and flags).

§ri: [u32; 8]

The RI (RDRAM controller) register file, 0x0470_0000..0x0470_0020: RI_MODE, RI_CONFIG, RI_CURRENT_LOAD, RI_SELECT, RI_REFRESH, RI_LATENCY, RI_ERROR, RI_BANK_STATUS (N64brew RDRAM Interface §Registers).

Plain storage — writes stick and reads return them. That is enough for the one thing that actually depends on it today: the cartridge’s IPL3 reads RI_SELECT and branches on whether RDRAM has already been brought up (ledger R-18). The documented read oddities are deliberately NOT modeled (see R-22): RI_CURRENT_LOAD is write-only on hardware and its read returns a collection of bits from other registers, and RI_ERROR / RI_BANK_STATUS reflect controller state rather than the last write. Nothing exercises those yet and there is no oracle for them — the suite has no RI group — so they stay honest storage rather than invented behavior.

Trait Implementations§

Source§

impl Clone for RcpRegs

Source§

fn clone(&self) -> RcpRegs

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RcpRegs

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for RcpRegs

Source§

fn default() -> RcpRegs

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for RcpRegs

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for RcpRegs

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for RcpRegs

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,