]> xenbits.xensource.com Git - people/andrewcoop/seabios.git/commit
tpm: Don't use 16bit BIOS return codes in build_and_send_cmd()
authorKevin O'Connor <kevin@koconnor.net>
Tue, 29 Dec 2015 22:54:37 +0000 (17:54 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Tue, 5 Jan 2016 20:05:14 +0000 (15:05 -0500)
commitcac29f2504450a97e05a95fa6e76cdb9199eb879
tree2627e44f7331d9fd96a1d3d22dd43e5c5478bb02
parent5ffcb2c32b3decc463890c5a2355c410b3fca80a
tpm: Don't use 16bit BIOS return codes in build_and_send_cmd()

Don't use the return codes from the 16bit BIOS spec in the internal
function build_and_send_cmd().  Instead, return the TIS command status
code of the command or -1 if there was a command transmission failure.
This eliminates the need for a returnCode pointer parameter.

Also, implement debugging dprintf() in build_and_send_cmd() instead of
in every caller.  This replaces the command name with the integer
command id, but it does make the debugging more consistent.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
src/tcgbios.c