From: James Mckenzie Date: Sun, 4 Oct 2009 00:49:41 +0000 (+0100) Subject: Add linux/tpm.h X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=04087d7838830880a5bc52207b13bf22d6a8bfa2;p=xenclient%2Flinux-2.6.27-pq.git Add linux/tpm.h --- diff --git a/master/itpm b/master/itpm index 864c17f..6f13d52 100644 --- a/master/itpm +++ b/master/itpm @@ -1733,3 +1733,44 @@ index ed1879c..22b2a69 100644 } module_init(init_tis); +diff --git a/include/linux/tpm.h b/include/linux/tpm.h +new file mode 100644 +index 0000000..3338b3f +--- /dev/null ++++ b/include/linux/tpm.h +@@ -0,0 +1,35 @@ ++/* ++ * Copyright (C) 2004,2007,2008 IBM Corporation ++ * ++ * Authors: ++ * Leendert van Doorn ++ * Dave Safford ++ * Reiner Sailer ++ * Kylene Hall ++ * Debora Velarde ++ * ++ * Maintained by: ++ * ++ * Device driver for TCG/TCPA TPM (trusted platform module). ++ * Specifications at www.trustedcomputinggroup.org ++ * ++ * This program is free software; you can redistribute it and/or ++ * modify it under the terms of the GNU General Public License as ++ * published by the Free Software Foundation, version 2 of the ++ * License. ++ * ++ */ ++#ifndef __LINUX_TPM_H__ ++#define __LINUX_TPM_H__ ++ ++/* ++ * Chip num is this value or a valid tpm idx ++ */ ++#define TPM_ANY_NUM 0xFFFF ++ ++#if defined(CONFIG_TCG_TPM) ++ ++extern int tpm_pcr_read(u32 chip_num, int pcr_idx, u8 *res_buf); ++extern int tpm_pcr_extend(u32 chip_num, int pcr_idx, const u8 *hash); ++#endif ++#endif