tpm.h (433d390f005d3a89dba5a03a87b5a6c242748de3) tpm.h (d4a317563207163ddcf677e5965ffc56ef073514)
1/*
2 * Copyright (C) 2004 IBM Corporation
3 * Copyright (C) 2015 Intel Corporation
4 *
5 * Authors:
6 * Leendert van Doorn <leendert@watson.ibm.com>
7 * Dave Safford <safford@watson.ibm.com>
8 * Reiner Sailer <sailer@watson.ibm.com>

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

538 u8 *buf, size_t bufsiz, unsigned int flags);
539ssize_t tpm_transmit_cmd(struct tpm_chip *chip, struct tpm_space *space,
540 void *buf, size_t bufsiz,
541 size_t min_rsp_body_length, unsigned int flags,
542 const char *desc);
543int tpm_startup(struct tpm_chip *chip);
544int tpm_get_timeouts(struct tpm_chip *);
545int tpm1_auto_startup(struct tpm_chip *chip);
1/*
2 * Copyright (C) 2004 IBM Corporation
3 * Copyright (C) 2015 Intel Corporation
4 *
5 * Authors:
6 * Leendert van Doorn <leendert@watson.ibm.com>
7 * Dave Safford <safford@watson.ibm.com>
8 * Reiner Sailer <sailer@watson.ibm.com>

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

538 u8 *buf, size_t bufsiz, unsigned int flags);
539ssize_t tpm_transmit_cmd(struct tpm_chip *chip, struct tpm_space *space,
540 void *buf, size_t bufsiz,
541 size_t min_rsp_body_length, unsigned int flags,
542 const char *desc);
543int tpm_startup(struct tpm_chip *chip);
544int tpm_get_timeouts(struct tpm_chip *);
545int tpm1_auto_startup(struct tpm_chip *chip);
546int tpm_do_selftest(struct tpm_chip *chip);
547
546int tpm1_do_selftest(struct tpm_chip *chip);
548int tpm1_get_timeouts(struct tpm_chip *chip);
549unsigned long tpm1_calc_ordinal_duration(struct tpm_chip *chip, u32 ordinal);
550int tpm1_pcr_extend(struct tpm_chip *chip, int pcr_idx, const u8 *hash,
551 const char *log_msg);
547int tpm1_get_timeouts(struct tpm_chip *chip);
548unsigned long tpm1_calc_ordinal_duration(struct tpm_chip *chip, u32 ordinal);
549int tpm1_pcr_extend(struct tpm_chip *chip, int pcr_idx, const u8 *hash,
550 const char *log_msg);
551int tpm1_pcr_read_dev(struct tpm_chip *chip, int pcr_idx, u8 *res_buf);
552ssize_t tpm1_getcap(struct tpm_chip *chip, u32 subcap_id, cap_t *cap,
553 const char *desc, size_t min_cap_length);
554int tpm1_get_random(struct tpm_chip *chip, u8 *out, size_t max);
555unsigned long tpm_calc_ordinal_duration(struct tpm_chip *chip, u32 ordinal);
556int tpm_pm_suspend(struct device *dev);
557int tpm_pm_resume(struct device *dev);
558
559static inline void tpm_msleep(unsigned int delay_msec)

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

570 const struct tpm_class_ops *ops);
571struct tpm_chip *tpmm_chip_alloc(struct device *pdev,
572 const struct tpm_class_ops *ops);
573int tpm_chip_register(struct tpm_chip *chip);
574void tpm_chip_unregister(struct tpm_chip *chip);
575
576void tpm_sysfs_add_device(struct tpm_chip *chip);
577
552ssize_t tpm1_getcap(struct tpm_chip *chip, u32 subcap_id, cap_t *cap,
553 const char *desc, size_t min_cap_length);
554int tpm1_get_random(struct tpm_chip *chip, u8 *out, size_t max);
555unsigned long tpm_calc_ordinal_duration(struct tpm_chip *chip, u32 ordinal);
556int tpm_pm_suspend(struct device *dev);
557int tpm_pm_resume(struct device *dev);
558
559static inline void tpm_msleep(unsigned int delay_msec)

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

570 const struct tpm_class_ops *ops);
571struct tpm_chip *tpmm_chip_alloc(struct device *pdev,
572 const struct tpm_class_ops *ops);
573int tpm_chip_register(struct tpm_chip *chip);
574void tpm_chip_unregister(struct tpm_chip *chip);
575
576void tpm_sysfs_add_device(struct tpm_chip *chip);
577
578int tpm_pcr_read_dev(struct tpm_chip *chip, int pcr_idx, u8 *res_buf);
579
580#ifdef CONFIG_ACPI
581extern void tpm_add_ppi(struct tpm_chip *chip);
582#else
583static inline void tpm_add_ppi(struct tpm_chip *chip)
584{
585}
586#endif

--- 39 unchanged lines hidden ---
578
579#ifdef CONFIG_ACPI
580extern void tpm_add_ppi(struct tpm_chip *chip);
581#else
582static inline void tpm_add_ppi(struct tpm_chip *chip)
583{
584}
585#endif

--- 39 unchanged lines hidden ---