Loading drivers/char/tpm/tpm.h +0 −11 Original line number Diff line number Diff line Loading @@ -195,17 +195,6 @@ struct tpm_chip { #define to_tpm_chip(d) container_of(d, struct tpm_chip, dev) static inline int tpm_read_index(int base, int index) { outb(index, base); return inb(base+1) & 0xFF; } static inline void tpm_write_index(int base, int index, int value) { outb(index, base); outb(value & 0xFF, base+1); } struct tpm_input_header { __be16 tag; __be32 length; Loading drivers/char/tpm/tpm_atmel.h +6 −0 Original line number Diff line number Diff line Loading @@ -96,6 +96,12 @@ enum tpm_atmel_addr { TPM_ATMEL_BASE_ADDR_HI = 0x09 }; static inline int tpm_read_index(int base, int index) { outb(index, base); return inb(base+1) & 0xFF; } /* Verify this is a 1.1 Atmel TPM */ static int atmel_verify_tpm11(void) { Loading drivers/char/tpm/tpm_nsc.c +12 −0 Original line number Diff line number Diff line Loading @@ -278,6 +278,18 @@ static struct platform_driver nsc_drv = { }, }; static inline int tpm_read_index(int base, int index) { outb(index, base); return inb(base+1) & 0xFF; } static inline void tpm_write_index(int base, int index, int value) { outb(index, base); outb(value & 0xFF, base+1); } static int __init init_nsc(void) { int rc = 0; Loading Loading
drivers/char/tpm/tpm.h +0 −11 Original line number Diff line number Diff line Loading @@ -195,17 +195,6 @@ struct tpm_chip { #define to_tpm_chip(d) container_of(d, struct tpm_chip, dev) static inline int tpm_read_index(int base, int index) { outb(index, base); return inb(base+1) & 0xFF; } static inline void tpm_write_index(int base, int index, int value) { outb(index, base); outb(value & 0xFF, base+1); } struct tpm_input_header { __be16 tag; __be32 length; Loading
drivers/char/tpm/tpm_atmel.h +6 −0 Original line number Diff line number Diff line Loading @@ -96,6 +96,12 @@ enum tpm_atmel_addr { TPM_ATMEL_BASE_ADDR_HI = 0x09 }; static inline int tpm_read_index(int base, int index) { outb(index, base); return inb(base+1) & 0xFF; } /* Verify this is a 1.1 Atmel TPM */ static int atmel_verify_tpm11(void) { Loading
drivers/char/tpm/tpm_nsc.c +12 −0 Original line number Diff line number Diff line Loading @@ -278,6 +278,18 @@ static struct platform_driver nsc_drv = { }, }; static inline int tpm_read_index(int base, int index) { outb(index, base); return inb(base+1) & 0xFF; } static inline void tpm_write_index(int base, int index, int value) { outb(index, base); outb(value & 0xFF, base+1); } static int __init init_nsc(void) { int rc = 0; Loading