summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorAlex Elder <elder@linaro.org>2022-09-26 17:09:19 -0500
committerJakub Kicinski <kuba@kernel.org>2022-09-27 18:42:49 -0700
commit07f120bcf76b6f0969a1bc18ce5b7a16555fadad (patch)
treea001b0ef812c6f25b8bb4a5c13ae31c0c988b18c /scripts
parent6bfb753850d3bad78fc2eb6f4e0fa5675055ad97 (diff)
downloadlinux-07f120bcf76b6f0969a1bc18ce5b7a16555fadad.tar.gz
net: ipa: add per-version IPA register definition files
Create a new subdirectory "reg", which contains a register
definition file for each supported version of IPA.  Each register
definition contains the register's offset, and for parameterized
registers, the stride (distance between consecutive instances of the
register).  Finally, it includes an all-caps printable register name.

In these files, each IPA version defines an array of IPA register
definition pointers, with unsupported registers defined with a null
pointer.  The array is indexed by the ipa_reg_id enumerated type.

At initialization time, the appropriate register definition array to
use is selected based on the IPA version, and assigned to a new
"regs" field in the IPA structure.

Extend ipa_reg_valid() so it fails if a valid register is not
defined.

This patch simply puts this infrastructure in place; the next will
use it.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions