sh_eth: fix EESIPR values for SH77{34|63}
[linux/fpc-iii.git] / drivers / char / tpm / st33zp24 / st33zp24.h
blob6f4a4198af6aa2637fb2347dff6cdb9109054b24
1 /*
2 * STMicroelectronics TPM Linux driver for TPM ST33ZP24
3 * Copyright (C) 2009 - 2016 STMicroelectronics
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms and conditions of the GNU General Public License,
7 * version 2, as published by the Free Software Foundation.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, see <http://www.gnu.org/licenses/>.
18 #ifndef __LOCAL_ST33ZP24_H__
19 #define __LOCAL_ST33ZP24_H__
21 #define TPM_WRITE_DIRECTION 0x80
22 #define TPM_BUFSIZE 2048
24 struct st33zp24_dev {
25 struct tpm_chip *chip;
26 void *phy_id;
27 const struct st33zp24_phy_ops *ops;
28 int locality;
29 int irq;
30 u32 intrs;
31 int io_lpcpd;
32 wait_queue_head_t read_queue;
36 struct st33zp24_phy_ops {
37 int (*send)(void *phy_id, u8 tpm_register, u8 *tpm_data, int tpm_size);
38 int (*recv)(void *phy_id, u8 tpm_register, u8 *tpm_data, int tpm_size);
41 #ifdef CONFIG_PM_SLEEP
42 int st33zp24_pm_suspend(struct device *dev);
43 int st33zp24_pm_resume(struct device *dev);
44 #endif
46 int st33zp24_probe(void *phy_id, const struct st33zp24_phy_ops *ops,
47 struct device *dev, int irq, int io_lpcpd);
48 int st33zp24_remove(struct tpm_chip *chip);
49 #endif /* __LOCAL_ST33ZP24_H__ */