diff options
Diffstat (limited to 'drivers/char/tpm/tpm.h')
-rw-r--r-- | drivers/char/tpm/tpm.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/char/tpm/tpm.h b/drivers/char/tpm/tpm.h index 75d105c4e65d..24541a556d02 100644 --- a/drivers/char/tpm/tpm.h +++ b/drivers/char/tpm/tpm.h | |||
@@ -64,6 +64,8 @@ struct tpm_vendor_specific { | |||
64 | void __iomem *iobase; /* ioremapped address */ | 64 | void __iomem *iobase; /* ioremapped address */ |
65 | unsigned long base; /* TPM base address */ | 65 | unsigned long base; /* TPM base address */ |
66 | 66 | ||
67 | int irq; | ||
68 | |||
67 | int region_size; | 69 | int region_size; |
68 | int have_region; | 70 | int have_region; |
69 | 71 | ||
@@ -73,8 +75,13 @@ struct tpm_vendor_specific { | |||
73 | u8 (*status) (struct tpm_chip *); | 75 | u8 (*status) (struct tpm_chip *); |
74 | struct miscdevice miscdev; | 76 | struct miscdevice miscdev; |
75 | struct attribute_group *attr_group; | 77 | struct attribute_group *attr_group; |
78 | struct list_head list; | ||
79 | int locality; | ||
76 | u32 timeout_a, timeout_b, timeout_c, timeout_d; | 80 | u32 timeout_a, timeout_b, timeout_c, timeout_d; |
77 | u32 duration[3]; | 81 | u32 duration[3]; |
82 | |||
83 | wait_queue_head_t read_queue; | ||
84 | wait_queue_head_t int_queue; | ||
78 | }; | 85 | }; |
79 | 86 | ||
80 | struct tpm_chip { | 87 | struct tpm_chip { |
@@ -100,6 +107,8 @@ struct tpm_chip { | |||
100 | struct list_head list; | 107 | struct list_head list; |
101 | }; | 108 | }; |
102 | 109 | ||
110 | #define to_tpm_chip(n) container_of(n, struct tpm_chip, vendor) | ||
111 | |||
103 | static inline int tpm_read_index(int base, int index) | 112 | static inline int tpm_read_index(int base, int index) |
104 | { | 113 | { |
105 | outb(index, base); | 114 | outb(index, base); |