OSDN Git Service

qtest: Move tpm_util_tis_transmit() into tpm-tis-utils.c and rename it
authorStefan Berger <stefanb@linux.ibm.com>
Fri, 31 Mar 2023 17:30:50 +0000 (13:30 -0400)
committerThomas Huth <thuth@redhat.com>
Thu, 20 Apr 2023 09:25:32 +0000 (11:25 +0200)
commitf8d64616932805c5a5efea1a6a5bfee630d0096b
treebcb3cfd9d46e8ba282e9164d8fc44f6a1b92a240
parenta3ebb580a21c89d22ac5f52bd70814c997f28893
qtest: Move tpm_util_tis_transmit() into tpm-tis-utils.c and rename it

To be able to remove tpm_tis_base_addr from test cases that do not really
need it move the tpm_util_tis_transmit() function into tpm-tis-utils.c and
rename it to tpm_tis_transmit().

Fix a locality parameter in a test case on the way.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Ninad Palsule <ninad@linux.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20230331173051.3857801-3-stefanb@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/qtest/tpm-crb-swtpm-test.c
tests/qtest/tpm-crb-test.c
tests/qtest/tpm-tis-device-swtpm-test.c
tests/qtest/tpm-tis-swtpm-test.c
tests/qtest/tpm-tis-util.c
tests/qtest/tpm-tis-util.h
tests/qtest/tpm-util.c
tests/qtest/tpm-util.h