diff options
author | Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> | 2017-01-25 16:47:39 +0200 |
---|---|---|
committer | Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> | 2017-02-03 22:03:14 +0200 |
commit | 1d1915532b3fb0d08aed8b2d8af1c6ea40846782 (patch) | |
tree | ffdf901d840c313bfa37909775c2fbdf7d1d6f5f /drivers/char/tpm/tpm_nsc.c | |
parent | 20f482ab9e0f800d1e01ce748ebd382d085abe56 (diff) | |
download | linux-1d1915532b3fb0d08aed8b2d8af1c6ea40846782.tar.gz linux-1d1915532b3fb0d08aed8b2d8af1c6ea40846782.tar.bz2 linux-1d1915532b3fb0d08aed8b2d8af1c6ea40846782.zip |
tpm: remove tpm_read_index and tpm_write_index from tpm.h
These are non-generic functions and do not belong to tpm.h.
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Reviewed-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Diffstat (limited to 'drivers/char/tpm/tpm_nsc.c')
-rw-r--r-- | drivers/char/tpm/tpm_nsc.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/char/tpm/tpm_nsc.c b/drivers/char/tpm/tpm_nsc.c index 9ff0e072c476..5d6cce74cd3f 100644 --- a/drivers/char/tpm/tpm_nsc.c +++ b/drivers/char/tpm/tpm_nsc.c @@ -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; |