Skip to main content
← PSoXide SDK guides and examples · SDK 80d1c329e977 · All Cargo features enabled; check feature gates before use.

Block

Struct Block 

Source
#[repr(C)]
pub struct Block {
Show 40 fields pub magic: u32, pub gp1_writes: u32, pub dma_kicks: [u32; 7], pub dma_wait_fail: u32, pub dma_wait_ch: u32, pub gpu_wait_fail: u32, pub wait_cur: u32, pub wait_last: u32, pub wait_last_spins: u32, pub wait_timeouts: u32, pub cd_cmd: u32, pub cd_cmds: u32, pub cd_irq_seen: u32, pub cd_irq_acked: u32, pub cd_int5: u32, pub cd_int5_status: u32, pub cd_int5_code: u32, pub cd_timeouts: u32, pub cd_timeout_info: u32, pub cd_sectors: u32, pub cd_lba: u32, pub cd_starts: u32, pub cd_read_fail: u32, pub cd_fail_word: u32, pub ll_scans: u32, pub ll_nodes: u32, pub ll_bad: u32, pub ll_max: u32, pub ll_bad_addr: u32, pub flushes: u32, pub flush_waits: u32, pub flush_retries: u32, pub flush_timeouts: u32, pub flush_max_spins: u32, pub flush_chcr: [u32; 7], pub flush_gpustat: u32, pub flush_sr: u32, pub flush_cc: u32, pub step_id: u32, pub step_text: [u8; 24],
}
Expand description

The diagnostics block. Every field is a plain word; the panel reads them with volatile loads.

Fields§

§magic: u32

MAGIC once any hook has run.

§gp1_writes: u32

GP1 writes seen (one per presented frame in most programs).

§dma_kicks: [u32; 7]

DMA kicks per channel, dma::start.

§dma_wait_fail: u32

dma::wait_done budgets that ran out.

§dma_wait_ch: u32

Channel of the last such failure.

§gpu_wait_fail: u32

GPUSTAT ready-waits that timed out (and reset the GPU’s command buffer).

§wait_cur: u32

Wait in progress now: site in the low byte, aux in the next, 0 for none.

§wait_last: u32

The last wait that spun out: site, aux like wait_cur.

§wait_last_spins: u32

Spin budget of that wait.

§wait_timeouts: u32

Waits that spun out.

§cd_cmd: u32

Last CD command byte written.

§cd_cmds: u32

CD commands written.

§cd_irq_seen: u32

Last non-zero CD IRQ flag read.

§cd_irq_acked: u32

Last CD IRQ bits acknowledged.

§cd_int5: u32

INT5 (drive error) responses.

§cd_int5_status: u32

Status byte of the last INT5.

§cd_int5_code: u32

Error byte of the last INT5.

§cd_timeouts: u32

CD waits that spun out.

§cd_timeout_info: u32

cause<<24 | status<<16 | command<<8 | flag of the last timeout.

§cd_sectors: u32

Sectors popped from the data FIFO.

§cd_lba: u32

Last absolute LBA a read was started at (after the disc-base shift).

§cd_starts: u32

Reads started (start_read): more than the chunks asked for means retries.

§cd_read_fail: u32

read_sector calls that failed.

§cd_fail_word: u32

The reader’s own failure snapshot at the last failure.

§ll_scans: u32

Linked lists scanned at kick time.

§ll_nodes: u32

Nodes seen in the last scan.

§ll_bad: u32

Nodes over 16 payload words, all scans (silicon loses words from longer nodes).

§ll_max: u32

Largest payload word count seen.

§ll_bad_addr: u32

Address of the first oversized node seen.

§flushes: u32

Instruction-cache flushes (psx_rt::cache), each behind the DMA gate.

§flush_waits: u32

Flushes that found a DMA channel busy on entry and waited.

§flush_retries: u32

Times a flush backed out because a walk was kicked between its idle check and its mask.

§flush_timeouts: u32

Flushes whose wait for an idle bus ran out (the flush went ahead).

§flush_max_spins: u32

Most busy polls one flush made.

§flush_chcr: [u32; 7]

DMA CHCR 0 to 6 as the last flush found them on entry.

§flush_gpustat: u32

GPUSTAT on entry to the last flush.

§flush_sr: u32

COP0 Status on entry to the last flush.

§flush_cc: u32

The cache control register on entry to the last flush.

§step_id: u32

Free-form step id set by the program (step).

§step_text: [u8; 24]

Free-form step text, NUL padded.

Auto Trait Implementations§

§

impl Freeze for Block

§

impl RefUnwindSafe for Block

§

impl Send for Block

§

impl Sync for Block

§

impl Unpin for Block

§

impl UnsafeUnpin for Block

§

impl UnwindSafe for Block

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

fn into(self) -> U

Calls U::from(self).

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

§

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

§

type Error = Infallible

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

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

Performs the conversion.
§

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

§

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

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

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

Performs the conversion.