Go to the documentation of this file.
21 #include <linux/module.h>
25 #include <linux/sched.h>
47 #define TPM_WARN_DOING_SELFTEST 0x802
48 #define TPM_ERR_DEACTIVATED 0x6
49 #define TPM_ERR_DISABLED 0x7
51 #define TPM_HEADER_SIZE 10
61 const char *,
size_t);
109 #define TPM_VID_INTEL 0x8086
135 #define to_tpm_chip(n) container_of(n, struct tpm_chip, vendor)
139 module_put(chip->
dev->driver->owner);
142 static inline int tpm_read_index(
int base,
int index)
145 return inb(base+1) & 0xFF;
148 static inline void tpm_write_index(
int base,
int index,
int value)
151 outb(value & 0xFF, base+1);
265 #define TPM_DIGEST_SIZE 20
283 #define TPM_MAX_RNG_DATA 128