aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/tpm/tpm.h
diff options
context:
space:
mode:
authorKylene Jo Hall <kjhall@us.ibm.com>2006-04-22 05:37:26 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-04-22 12:19:53 -0400
commite0dd03caf20d040a0a86b6bd74028ec9bda545f5 (patch)
treefe65a043531f3b896f5dba08bbb8ae385332f7d1 /drivers/char/tpm/tpm.h
parent90dda520c1962d55a0e1d2571deed0d75fd6d6f1 (diff)
[PATCH] tpm: return chip from tpm_register_hardware
Changes in the 1.2 TPM Specification make it necessary to update some fields of the chip structure in the initialization function after it is registered with tpm.c thus tpm_register_hardware was modified to return a pointer to the structure. This patch makes that change and the associated changes in tpm_atmel and tpm_nsc. The changes to tpm_infineon will be coming in a patch from Marcel Selhorst. Signed-off-by: Kylene Hall <kjhall@us.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/char/tpm/tpm.h')
-rw-r--r--drivers/char/tpm/tpm.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/char/tpm/tpm.h b/drivers/char/tpm/tpm.h
index a203963efaab..4f005345bf37 100644
--- a/drivers/char/tpm/tpm.h
+++ b/drivers/char/tpm/tpm.h
@@ -48,9 +48,9 @@ extern ssize_t tpm_store_cancel(struct device *, struct device_attribute *attr,
48struct tpm_chip; 48struct tpm_chip;
49 49
50struct tpm_vendor_specific { 50struct tpm_vendor_specific {
51 u8 req_complete_mask; 51 const u8 req_complete_mask;
52 u8 req_complete_val; 52 const u8 req_complete_val;
53 u8 req_canceled; 53 const u8 req_canceled;
54 void __iomem *iobase; /* ioremapped address */ 54 void __iomem *iobase; /* ioremapped address */
55 unsigned long base; /* TPM base address */ 55 unsigned long base; /* TPM base address */
56 56
@@ -100,8 +100,8 @@ static inline void tpm_write_index(int base, int index, int value)
100 outb(value & 0xFF, base+1); 100 outb(value & 0xFF, base+1);
101} 101}
102 102
103extern int tpm_register_hardware(struct device *, 103extern struct tpm_chip* tpm_register_hardware(struct device *,
104 struct tpm_vendor_specific *); 104 const struct tpm_vendor_specific *);
105extern int tpm_open(struct inode *, struct file *); 105extern int tpm_open(struct inode *, struct file *);
106extern int tpm_release(struct inode *, struct file *); 106extern int tpm_release(struct inode *, struct file *);
107extern ssize_t tpm_write(struct file *, const char __user *, size_t, 107extern ssize_t tpm_write(struct file *, const char __user *, size_t,