11492c8c0SAdrian Chadd /*- 2*4d846d26SWarner Losh * SPDX-License-Identifier: BSD-2-Clause 31492c8c0SAdrian Chadd * 41492c8c0SAdrian Chadd * Copyright (c) 2021, Adrian Chadd <adrian@FreeBSD.org> 51492c8c0SAdrian Chadd * 61492c8c0SAdrian Chadd * Redistribution and use in source and binary forms, with or without 71492c8c0SAdrian Chadd * modification, are permitted provided that the following conditions 81492c8c0SAdrian Chadd * are met: 91492c8c0SAdrian Chadd * 1. Redistributions of source code must retain the above copyright 101492c8c0SAdrian Chadd * notice unmodified, this list of conditions, and the following 111492c8c0SAdrian Chadd * disclaimer. 121492c8c0SAdrian Chadd * 2. Redistributions in binary form must reproduce the above copyright 131492c8c0SAdrian Chadd * notice, this list of conditions and the following disclaimer in the 141492c8c0SAdrian Chadd * documentation and/or other materials provided with the distribution. 151492c8c0SAdrian Chadd * 161492c8c0SAdrian Chadd * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 171492c8c0SAdrian Chadd * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 181492c8c0SAdrian Chadd * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 191492c8c0SAdrian Chadd * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 201492c8c0SAdrian Chadd * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 211492c8c0SAdrian Chadd * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 221492c8c0SAdrian Chadd * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 231492c8c0SAdrian Chadd * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 241492c8c0SAdrian Chadd * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 251492c8c0SAdrian Chadd * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 261492c8c0SAdrian Chadd */ 271492c8c0SAdrian Chadd 281492c8c0SAdrian Chadd #ifndef __QCOM_RND_REG_H__ 291492c8c0SAdrian Chadd #define __QCOM_RND_REG_H__ 301492c8c0SAdrian Chadd 311492c8c0SAdrian Chadd #define QCOM_RND_PRNG_DATA_OUT 0x0000 321492c8c0SAdrian Chadd 331492c8c0SAdrian Chadd #define QCOM_RND_PRNG_STATUS 0x0004 341492c8c0SAdrian Chadd #define QCOM_RND_PRNG_STATUS_DATA_AVAIL (1 << 0) 351492c8c0SAdrian Chadd 361492c8c0SAdrian Chadd #define QCOM_RND_PRNG_LFSR_CFG 0x0100 371492c8c0SAdrian Chadd #define QCOM_RND_PRNG_LFSR_CFG_MASK 0x0000ffff 381492c8c0SAdrian Chadd #define QCOM_RND_PRNG_LFSR_CFG_CLOCKS 0x0000dddd 391492c8c0SAdrian Chadd 401492c8c0SAdrian Chadd #define QCOM_RND_PRNG_CONFIG 0x0104 411492c8c0SAdrian Chadd #define QCOM_RND_PRNG_CONFIG_HW_ENABLE (1 << 1) 421492c8c0SAdrian Chadd 431492c8c0SAdrian Chadd #endif /* __QCOM_RND_REG_H__ */ 44