tpm_atmel.h (f26e8817b235d8764363bffcc9cbfc61867371f2) tpm_atmel.h (1d1915532b3fb0d08aed8b2d8af1c6ea40846782)
1/*
2 * Copyright (C) 2005 IBM Corporation
3 *
4 * Authors:
5 * Kylene Hall <kjhall@us.ibm.com>
6 *
7 * Maintained by: <tpmdd-devel@lists.sourceforge.net>
8 *

--- 82 unchanged lines hidden (view full) ---

91#define atmel_request_region request_region
92#define atmel_release_region release_region
93/* Atmel definitions */
94enum tpm_atmel_addr {
95 TPM_ATMEL_BASE_ADDR_LO = 0x08,
96 TPM_ATMEL_BASE_ADDR_HI = 0x09
97};
98
1/*
2 * Copyright (C) 2005 IBM Corporation
3 *
4 * Authors:
5 * Kylene Hall <kjhall@us.ibm.com>
6 *
7 * Maintained by: <tpmdd-devel@lists.sourceforge.net>
8 *

--- 82 unchanged lines hidden (view full) ---

91#define atmel_request_region request_region
92#define atmel_release_region release_region
93/* Atmel definitions */
94enum tpm_atmel_addr {
95 TPM_ATMEL_BASE_ADDR_LO = 0x08,
96 TPM_ATMEL_BASE_ADDR_HI = 0x09
97};
98
99static inline int tpm_read_index(int base, int index)
100{
101 outb(index, base);
102 return inb(base+1) & 0xFF;
103}
104
99/* Verify this is a 1.1 Atmel TPM */
100static int atmel_verify_tpm11(void)
101{
102
103 /* verify that it is an Atmel part */
104 if (tpm_read_index(TPM_ADDR, 4) != 'A' ||
105 tpm_read_index(TPM_ADDR, 5) != 'T' ||
106 tpm_read_index(TPM_ADDR, 6) != 'M' ||

--- 33 unchanged lines hidden ---
105/* Verify this is a 1.1 Atmel TPM */
106static int atmel_verify_tpm11(void)
107{
108
109 /* verify that it is an Atmel part */
110 if (tpm_read_index(TPM_ADDR, 4) != 'A' ||
111 tpm_read_index(TPM_ADDR, 5) != 'T' ||
112 tpm_read_index(TPM_ADDR, 6) != 'M' ||

--- 33 unchanged lines hidden ---