/* SPDX-License-Identifier: GPL-2.0 */ #pragma once #include #include #include #define MODULE_NAME "eip123" struct eip123 { struct eip123_hw *hw; struct device *dev; struct cdev cdev; struct hwrng rng; u8 *rng_buffer; u8 *rng_ptr; u8 asecdbkey[32]; bool has_asecdbkey; }; int eip123_rng_init(struct eip123 *eip); int eip123_char_init(struct eip123 *eip, struct class *class); void eip123_char_exit(struct eip123 *eip, struct class *class);