tpm_tis.c (1e3b73a95793555860512008035f6822406a2a79) | tpm_tis.c (01ad1fa75dd243909d62dba25a93254b20d5fe81) |
---|---|
1/* 2 * Copyright (C) 2005, 2006 IBM Corporation 3 * 4 * Authors: 5 * Leendert van Doorn <leendert@watson.ibm.com> 6 * Kylene Hall <kjhall@us.ibm.com> 7 * 8 * Maintained by: <tpmdd-devel@lists.sourceforge.net> --- 418 unchanged lines hidden (view full) --- 427 (status == (TPM_STS_VALID | TPM_STS_COMMAND_READY))); 428 case TPM_VID_STM: 429 return (status == (TPM_STS_VALID | TPM_STS_COMMAND_READY)); 430 default: 431 return (status == TPM_STS_COMMAND_READY); 432 } 433} 434 | 1/* 2 * Copyright (C) 2005, 2006 IBM Corporation 3 * 4 * Authors: 5 * Leendert van Doorn <leendert@watson.ibm.com> 6 * Kylene Hall <kjhall@us.ibm.com> 7 * 8 * Maintained by: <tpmdd-devel@lists.sourceforge.net> --- 418 unchanged lines hidden (view full) --- 427 (status == (TPM_STS_VALID | TPM_STS_COMMAND_READY))); 428 case TPM_VID_STM: 429 return (status == (TPM_STS_VALID | TPM_STS_COMMAND_READY)); 430 default: 431 return (status == TPM_STS_COMMAND_READY); 432 } 433} 434 |
435static struct tpm_vendor_specific tpm_tis = { | 435static const struct tpm_class_ops tpm_tis = { |
436 .status = tpm_tis_status, 437 .recv = tpm_tis_recv, 438 .send = tpm_tis_send, 439 .cancel = tpm_tis_ready, 440 .req_complete_mask = TPM_STS_DATA_AVAIL | TPM_STS_VALID, 441 .req_complete_val = TPM_STS_DATA_AVAIL | TPM_STS_VALID, 442 .req_canceled = tpm_tis_req_canceled, 443}; --- 443 unchanged lines hidden --- | 436 .status = tpm_tis_status, 437 .recv = tpm_tis_recv, 438 .send = tpm_tis_send, 439 .cancel = tpm_tis_ready, 440 .req_complete_mask = TPM_STS_DATA_AVAIL | TPM_STS_VALID, 441 .req_complete_val = TPM_STS_DATA_AVAIL | TPM_STS_VALID, 442 .req_canceled = tpm_tis_req_canceled, 443}; --- 443 unchanged lines hidden --- |