diff options
author | Yazen Ghannam <yazen.ghannam@amd.com> | 2024-12-06 16:12:06 +0000 |
---|---|---|
committer | Borislav Petkov (AMD) <bp@alien8.de> | 2025-01-08 11:02:28 +0100 |
commit | 79821b907f8d7fbc991554fc940075dc1b29a0f4 (patch) | |
tree | 902a79f5043e9a43672894d94f1c0d14a5a12b6c /scripts/generate_rust_analyzer.py | |
parent | 77466b798d59d6761501ff36094cf430d3876549 (diff) |
x86/amd_node: Use defines for SMN register offsets
There are more than one SMN index/data pair available for software use.
The register offsets are different, but the protocol is the same.
Use defines for the SMN offset values and allow the index/data offsets
to be passed to the read/write helper function.
This eases code reuse with other SMN users in the kernel.
Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20241206161210.163701-14-yazen.ghannam@amd.com
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions