mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-21 14:56:18 +00:00
intel_watermark: switch to INREG
Use INREG instead of using mmio directly. Signed-off-by: Jani Nikula <jani.nikula@intel.com>
This commit is contained in:
parent
12d785bcd4
commit
fb1515c170
@ -38,7 +38,7 @@ static uint32_t devid;
|
|||||||
|
|
||||||
static uint32_t read_reg(uint32_t addr)
|
static uint32_t read_reg(uint32_t addr)
|
||||||
{
|
{
|
||||||
return *(volatile uint32_t *)((volatile char*)mmio + display_base + addr);
|
return INREG(display_base + addr);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct gmch_wm {
|
struct gmch_wm {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user