Skip to content

Commit

Permalink
drm/asahi: initdata: Document more stuff
Browse files Browse the repository at this point in the history
Signed-off-by: Asahi Lina <lina@asahilina.net>
  • Loading branch information
asahilina authored and jannau committed Dec 21, 2024
1 parent 8fdb6ad commit 8eb140f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/gpu/drm/asahi/fw/initdata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@ pub(crate) mod raw {
pub(crate) pad_b10_0: Array<0x8, u8>,

pub(crate) unk_b10: u32,
pub(crate) pad_b14: Pad<0x8>,
pub(crate) timer_offset: U64,
pub(crate) unk_b1c: u32,
pub(crate) unk_b20: u32,
pub(crate) unk_b24: u32,
Expand Down Expand Up @@ -1130,6 +1130,8 @@ pub(crate) mod raw {
#[ver((G >= G14X && V < V13_3) || (G <= G14 && V >= V13_3))]
pub(crate) unk_x_pad: Array<0x4, u8>,

// bit 0: sets sgx_reg 0x17620
// bit 1: sets sgx_reg 0x17630
pub(crate) fault_control: u32,
pub(crate) do_init: u32,
pub(crate) unk_10e88: Array<0x188, u8>,
Expand Down Expand Up @@ -1183,7 +1185,7 @@ pub(crate) mod raw {
#[ver(V >= V13_0B4)]
pub(crate) unk_118e4_0: u32,

pub(crate) unk_118e4: u32,
pub(crate) cdm_context_store_latency_threshold: u32,
pub(crate) unk_118e8: u32,
pub(crate) unk_118ec: Array<0x400, u8>,
pub(crate) unk_11cec: Array<0x54, u8>,
Expand Down
1 change: 1 addition & 0 deletions drivers/gpu/drm/asahi/initdata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,7 @@ impl<'a> InitDataBuilder::ver<'a> {
#[ver(V < V13_0B4)]
unk_ae4: Array::new([0x0, 0xf, 0x3f, 0x3f]),
unk_b10: 0x1,
timer_offset: U64(0),
unk_b24: 0x1,
unk_b28: 0x1,
unk_b2c: 0x1,
Expand Down

0 comments on commit 8eb140f

Please sign in to comment.