Bring TPM driver files to 2.6.18 and clean up
PATCH 1/1 Bring TPM driver files to 2.6.18 and clean up
Bring TPM driver files to 2.6.18 level. Remove the tpm.c so that the one from the kernel can be used and reduce changes to a minimum required to compile the xen-specific driver.
Signed-off-by Stefan Berger <[email protected]>
xen-unstable.hg/linux-2.6-xen-sparse/drivers/char/tpm/Kconfig +1 -1
@@ -22,7 +22,7 @@ config TCG_TPM config TCG_TIS tristate "TPM Interface Specification 1.2 Interface" - depends on TCG_TPM + depends on TCG_TPM && PNPACPI ---help--- If you have a TPM security chip that is compliant with the TCG TIS 1.2 TPM specification say Yes and it will be accessible
xen-unstable.hg/linux-2.6-xen-sparse/drivers/char/tpm/tpm.h +0 -24
@@ -26,13 +26,6 @@#include <linux/platform_device.h> #include <linux/io.h> -#ifdef CONFIG_XEN -enum tpm_bufsize { -TPM_MIN_BUFFERSIZE =2048 , -TPM_MAX_BUFFERSIZE =64 *1024 , -}; -#endif -enum tpm_timeout {TPM_TIMEOUT =5 ,/* msecs */ };
@@ -68,9 +61,6 @@ struct tpm_vendor_specific {const u8 req_complete_mask;const u8 req_complete_val;const u8 req_canceled; -#ifdef CONFIG_XEN -u32 buffersize; -#endif void __iomem *iobase;/* ioremapped address */ unsigned long base;/* TPM base address */
@@ -104,9 +94,6 @@ struct tpm_chip {/* Data passed to and from the tpm via the read/write calls */ u8 *data_buffer;atomic_t data_pending; -#ifdef CONFIG_XEN -atomic_t data_position; -#endif struct semaphore buffer_mutex;struct timer_list user_read_timer;/* user needs to claim result */
@@ -138,17 +125,6 @@ static inline void tpm_write_index(int b }#ifdef CONFIG_XEN -static inline u32 get_chip_buffersize (struct tpm_chip *chip) -{ -u32 size = chip->vendor.buffersize; -if (size >TPM_MAX_BUFFERSIZE ) { -return TPM_MAX_BUFFERSIZE ; - }else if (size <TPM_MIN_BUFFERSIZE ) { -return TPM_MIN_BUFFERSIZE ; - } -return size; -} -static inline void *chip_get_private (const struct tpm_chip *chip) {return chip->priv;
xen-unstable.hg/linux-2.6-xen-sparse/drivers/char/tpm/tpm_vtpm.c +0 -3
@@ -519,9 +519,6 @@ struct tpm_chip *init_vtpm(struct device vtpms->tpmvd = tvd; vtpms->tpm_private = tp; -if (tvd) - tpm_vtpm.buffersize = tvd->max_tx_size; - chip =tpm_register_hardware (dev, &tpm_vtpm);if (!chip) { rc = -ENODEV ;
xen-unstable.hg/linux-2.6-xen-sparse/drivers/char/tpm/tpm.c deleted +0 -1222
1,222 lines not on this page · raw message
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel