]> git.proxmox.com Git - mirror_qemu.git/commit
tpm_tis: merge r/w_offset into rw_offset
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Fri, 10 Nov 2017 12:45:33 +0000 (07:45 -0500)
committerStefan Berger <stefanb@linux.vnet.ibm.com>
Fri, 22 Dec 2017 14:01:09 +0000 (09:01 -0500)
commitf999d81bc7d9ff3dd2b699d0091824e6b9071d83
tree79b8b2cb060a683405110daa24741ee453643600
parente6b30c71f4b56784638eed475e7bdd6dc8c7764e
tpm_tis: merge r/w_offset into rw_offset

We can now merge the r_offset and w_offset into a single rw_offset.
This is possible since when the offset is used for writing in
RECEPTION state then reads are ignore. Conversely, when the offset
is used for reading when in COMPLETION state, then writes are
ignored.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
hw/tpm/tpm_tis.c