1bf38b871SChristophe Ricard /*
2bf38b871SChristophe Ricard  * STMicroelectronics TPM Linux driver for TPM ST33ZP24
3bf38b871SChristophe Ricard  * Copyright (C) 2009 - 2015  STMicroelectronics
4bf38b871SChristophe Ricard  *
5bf38b871SChristophe Ricard  * This program is free software; you can redistribute it and/or modify it
6bf38b871SChristophe Ricard  * under the terms and conditions of the GNU General Public License,
7bf38b871SChristophe Ricard  * version 2, as published by the Free Software Foundation.
8bf38b871SChristophe Ricard  *
9bf38b871SChristophe Ricard  * This program is distributed in the hope that it will be useful,
10bf38b871SChristophe Ricard  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11bf38b871SChristophe Ricard  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12bf38b871SChristophe Ricard  * GNU General Public License for more details.
13bf38b871SChristophe Ricard  *
14bf38b871SChristophe Ricard  * You should have received a copy of the GNU General Public License
15bf38b871SChristophe Ricard  * along with this program; if not, see <http://www.gnu.org/licenses/>.
16bf38b871SChristophe Ricard  */
17bf38b871SChristophe Ricard 
18bf38b871SChristophe Ricard #ifndef __LOCAL_ST33ZP24_H__
19bf38b871SChristophe Ricard #define __LOCAL_ST33ZP24_H__
20bf38b871SChristophe Ricard 
21bf38b871SChristophe Ricard struct st33zp24_phy_ops {
22bf38b871SChristophe Ricard 	int (*send)(void *phy_id, u8 tpm_register, u8 *tpm_data, int tpm_size);
23bf38b871SChristophe Ricard 	int (*recv)(void *phy_id, u8 tpm_register, u8 *tpm_data, int tpm_size);
24bf38b871SChristophe Ricard };
25bf38b871SChristophe Ricard 
26bf38b871SChristophe Ricard #ifdef CONFIG_PM_SLEEP
27bf38b871SChristophe Ricard int st33zp24_pm_suspend(struct device *dev);
28bf38b871SChristophe Ricard int st33zp24_pm_resume(struct device *dev);
29bf38b871SChristophe Ricard #endif
30bf38b871SChristophe Ricard 
31bf38b871SChristophe Ricard int st33zp24_probe(void *phy_id, const struct st33zp24_phy_ops *ops,
32bf38b871SChristophe Ricard 		   struct device *dev, int irq, int io_lpcpd);
33bf38b871SChristophe Ricard int st33zp24_remove(struct tpm_chip *chip);
34bf38b871SChristophe Ricard #endif /* __LOCAL_ST33ZP24_H__ */
35