1 /* SPDX-License-Identifier: GPL-2.0 */
10 /* Data passed to and from the tpm via the read/write calls */
12 struct mutex buffer_mutex
;
14 struct timer_list user_read_timer
; /* user needs to claim result */
15 struct work_struct work
;
17 u8 data_buffer
[TPM_BUFSIZE
];
20 void tpm_common_open(struct file
*file
, struct tpm_chip
*chip
,
21 struct file_priv
*priv
);
22 ssize_t
tpm_common_read(struct file
*file
, char __user
*buf
,
23 size_t size
, loff_t
*off
);
24 ssize_t
tpm_common_write(struct file
*file
, const char __user
*buf
,
25 size_t size
, loff_t
*off
, struct tpm_space
*space
);
26 void tpm_common_release(struct file
*file
, struct file_priv
*priv
);