mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-20 12:52:55 +00:00
tools: Add intel_iosf_sb_{read,write} tools
Add generic tools to poke at IOSF sideband. The user needs to manually specify SB port as well as the register. TODO: Maybe add symbolic names for the units? Would avoid having to trawl the docs for the magic hex value. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
This commit is contained in:
@@ -173,3 +173,17 @@ void intel_flisdsi_reg_write(uint32_t reg, uint32_t val)
|
||||
{
|
||||
vlv_sideband_rw(IOSF_PORT_FLISDSI, SB_CRWRDA_NP, reg, &val);
|
||||
}
|
||||
|
||||
uint32_t intel_iosf_sb_read(uint32_t port, uint32_t reg)
|
||||
{
|
||||
uint32_t val;
|
||||
|
||||
vlv_sideband_rw(port, SB_CRRDDA_NP, reg, &val);
|
||||
|
||||
return val;
|
||||
}
|
||||
|
||||
void intel_iosf_sb_write(uint32_t port, uint32_t reg, uint32_t val)
|
||||
{
|
||||
vlv_sideband_rw(port, SB_CRWRDA_NP, reg, &val);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user