tpm.h (f26e8817b235d8764363bffcc9cbfc61867371f2) tpm.h (877c57d0d0cac2c8fc661f708d8ee3fa7aa8d28b)
1/*
2 * Copyright (C) 2004,2007,2008 IBM Corporation
3 *
4 * Authors:
5 * Leendert van Doorn <leendert@watson.ibm.com>
6 * Dave Safford <safford@watson.ibm.com>
7 * Reiner Sailer <sailer@watson.ibm.com>
8 * Kylene Hall <kjhall@us.ibm.com>

--- 34 unchanged lines hidden (view full) ---

43 const u8 req_complete_val;
44 bool (*req_canceled)(struct tpm_chip *chip, u8 status);
45 int (*recv) (struct tpm_chip *chip, u8 *buf, size_t len);
46 int (*send) (struct tpm_chip *chip, u8 *buf, size_t len);
47 void (*cancel) (struct tpm_chip *chip);
48 u8 (*status) (struct tpm_chip *chip);
49 bool (*update_timeouts)(struct tpm_chip *chip,
50 unsigned long *timeout_cap);
1/*
2 * Copyright (C) 2004,2007,2008 IBM Corporation
3 *
4 * Authors:
5 * Leendert van Doorn <leendert@watson.ibm.com>
6 * Dave Safford <safford@watson.ibm.com>
7 * Reiner Sailer <sailer@watson.ibm.com>
8 * Kylene Hall <kjhall@us.ibm.com>

--- 34 unchanged lines hidden (view full) ---

43 const u8 req_complete_val;
44 bool (*req_canceled)(struct tpm_chip *chip, u8 status);
45 int (*recv) (struct tpm_chip *chip, u8 *buf, size_t len);
46 int (*send) (struct tpm_chip *chip, u8 *buf, size_t len);
47 void (*cancel) (struct tpm_chip *chip);
48 u8 (*status) (struct tpm_chip *chip);
49 bool (*update_timeouts)(struct tpm_chip *chip,
50 unsigned long *timeout_cap);
51
51 int (*request_locality)(struct tpm_chip *chip, int loc);
52 void (*relinquish_locality)(struct tpm_chip *chip, int loc);
52};
53
54#if defined(CONFIG_TCG_TPM) || defined(CONFIG_TCG_TPM_MODULE)
55
56extern int tpm_is_tpm2(u32 chip_num);
57extern int tpm_pcr_read(u32 chip_num, int pcr_idx, u8 *res_buf);
58extern int tpm_pcr_extend(u32 chip_num, int pcr_idx, const u8 *hash);
59extern int tpm_send(u32 chip_num, void *cmd, size_t buflen);

--- 39 unchanged lines hidden ---
53};
54
55#if defined(CONFIG_TCG_TPM) || defined(CONFIG_TCG_TPM_MODULE)
56
57extern int tpm_is_tpm2(u32 chip_num);
58extern int tpm_pcr_read(u32 chip_num, int pcr_idx, u8 *res_buf);
59extern int tpm_pcr_extend(u32 chip_num, int pcr_idx, const u8 *hash);
60extern int tpm_send(u32 chip_num, void *cmd, size_t buflen);

--- 39 unchanged lines hidden ---