// SPDX-License-Identifier: GPL-2.0 /* * sl3516-ce-rng.c - hardware cryptographic offloader for SL3516 SoC. * * Copyright (C) 2021 Corentin Labbe <[email protected]> * * This file handle the RNG found in the SL3516 crypto engine */ #include "sl3516-ce.h" #include <linux/pm_runtime.h> #include <linux/hw_random.h> static int sl3516_ce_rng_read(struct hwrng *rng, void *buf, size_t max, bool wait) { … } int sl3516_ce_rng_register(struct sl3516_ce_dev *ce) { … } void sl3516_ce_rng_unregister(struct sl3516_ce_dev *ce) { … }