Convergence with 2.6.15
PATCH 1/1 Convergence with 2.6.15
The attached patch converges the TPM drivers in the Xen repository with those coming from the 2.6.15 kernel. Some files can now be taken from 2.6.15 directly and can therefore be removed.
Signed-off-by Stefan Berger <[email protected]>
xen-unstable.hg/linux-2.6-xen-sparse/drivers/char/tpm/tpm.h +7 -4
@@ -50,9 +50,12 @@ struct tpm_vendor_specific {u8 req_complete_mask;u8 req_complete_val;u8 req_canceled; -u16 base;/* TPM base address */ -int drv_type;u32 buffersize; +void __iomem *iobase;/* ioremapped address */ +unsigned long base;/* TPM base address */ + +int region_size; +int have_region;int (*recv) (struct tpm_chip *,u8 *,size_t );int (*send) (struct tpm_chip *,u8 *,size_t );
@@ -104,5 +107,5 @@ extern ssize_t tpm_write(struct file *, loff_t *);extern ssize_t tpm_read (struct file *,char __user *,size_t ,loff_t *);extern void tpm_remove_hardware (struct device *); -extern int tpm_pm_suspend (struct pci_dev *,pm_message_t ); -extern int tpm_pm_resume (struct pci_dev *); +extern int tpm_pm_suspend (struct device *,pm_message_t ); +extern int tpm_pm_resume (struct device *);
xen-unstable.hg/linux-2.6-xen-sparse/drivers/char/tpm/tpm_atmel.c deleted +0 -262
262 lines not on this page · raw message
xen-unstable.hg/linux-2.6-xen-sparse/drivers/char/tpm/tpm_nsc.c deleted +0 -386
386 lines not on this page · raw message
xen-unstable.hg/linux-2.6-xen-sparse/drivers/char/tpm/tpm.c +0 -3
@@ -28,9 +28,6 @@#include <linux/spinlock.h> #include "tpm.h" -#define TPM_CHIP_NUM_MASK 0x0000ffff -#define TPM_CHIP_TYPE_SHIFT 16 -enum tpm_const {TPM_MINOR =224 ,/* officially assigned */ TPM_MIN_BUFSIZE =2048 ,
xen-unstable.hg/linux-2.6-xen-sparse/drivers/char/tpm/tpm_xen.c +1 -5
@@ -86,11 +86,7 @@ static void __exit cleanup_xen(void);static inline struct transmission *transmission_alloc (void ) { -struct transmission *t =kmalloc (sizeof (*t),GFP_KERNEL ); -if (t) { -memset (t,0x0 ,sizeof (*t)); - } -return t; +return kzalloc (sizeof (struct transmission ),GFP_KERNEL ); } static inline unsigned char *
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel