printk("REQ LOCALITY FAILURE\n");
return -1;
}
+EXPORT_SYMBOL(tpm_tis_request_locality);
static uint8_t tpm_tis_status(struct tpm_chip* tpm) {
return ioread8(TPM_STS(tpm, tpm->locality));
}
return NULL;
}
+EXPORT_SYMBOL(init_tpm_tis);
int tpm_tis_cmd(struct tpm_chip* tpm, uint8_t* req, size_t reqlen, uint8_t** resp, size_t* resplen)
{
memcpy(*resp, tpm->data_buffer, *resplen);
return 0;
}
+EXPORT_SYMBOL(tpm_tis_cmd);
#ifdef HAVE_LIBC
#include <sys/stat.h>
return tpm->fd;
}
+EXPORT_SYMBOL(tpm_tis_open);
/* TPM 2.0 */
}
return NULL;
}
+EXPORT_SYMBOL(init_tpm2_tis);
#endif