aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py
diff options
context:
space:
mode:
authorHou Zhiqiang <[email protected]>2019-07-05 17:56:29 +0800
committerLorenzo Pieralisi <[email protected]>2019-07-08 11:23:13 +0100
commitbcbe0d9a8d931597202859d13506611dd9736da9 (patch)
tree30f21641286f4b6eea93c442a7ba0f802e9dcfe9 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py
parenta188339ca5a396acc588e5851ed7e19f66b0ebd9 (diff)
PCI: mobiveil: Unify register accessors
It is confusing to have two sets of functions to read/write registers, some with csr_readl()/csr_writel(), while others with read_paged_register()/write_paged_register(). In the register space the lower 3KB of 4KB PCIe configure space can be accessed directly and higher 1KB through a simple paging mechanism. Unify the register accessors in csr_readl() and csr_writel() by comparing the register offset with page access boundary 3KB in the accessor internal so that the paging mechanism is hidden behind the csr_read()/write() common function calls. Signed-off-by: Hou Zhiqiang <[email protected]> Signed-off-by: Lorenzo Pieralisi <[email protected]> Reviewed-by: Minghuan Lian <[email protected]> Reviewed-by: Subrahmanya Lingappa <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py')
0 files changed, 0 insertions, 0 deletions