1*58bf70bcSmaxv /* $NetBSD: cpu_rng.h,v 1.4 2020/05/10 06:30:57 maxv Exp $ */ 21b1730d0Stls 31b1730d0Stls #ifndef _X86_CPU_RNG_H_ 41b1730d0Stls #define _X86_CPU_RNG_H_ 51b1730d0Stls 61b1730d0Stls /*- 71b1730d0Stls * Copyright (c) 2015 The NetBSD Foundation, Inc. 81b1730d0Stls * All rights reserved. 91b1730d0Stls * 101b1730d0Stls * This code is derived from software contributed to The NetBSD Foundation 111b1730d0Stls * by Thor Lancelot Simon. 121b1730d0Stls * 131b1730d0Stls * Redistribution and use in source and binary forms, with or without 141b1730d0Stls * modification, are permitted provided that the following conditions 151b1730d0Stls * are met: 161b1730d0Stls * 1. Redistributions of source code must retain the above copyright 171b1730d0Stls * notice, this list of conditions and the following disclaimer. 181b1730d0Stls * 2. Redistributions in binary form must reproduce the above copyright 191b1730d0Stls * notice, this list of conditions and the following disclaimer in the 201b1730d0Stls * documentation and/or other materials provided with the distribution. 211b1730d0Stls * 221b1730d0Stls * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 231b1730d0Stls * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 241b1730d0Stls * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 251b1730d0Stls * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 261b1730d0Stls * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 271b1730d0Stls * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 281b1730d0Stls * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 291b1730d0Stls * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 301b1730d0Stls * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 311b1730d0Stls * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 321b1730d0Stls * POSSIBILITY OF SUCH DAMAGE. 331b1730d0Stls */ 341b1730d0Stls 35c9d3d505Sriastradh void cpu_rng_init(void); 36*58bf70bcSmaxv void cpu_rng_early_sample(uint64_t *); 371b1730d0Stls 381b1730d0Stls #endif /* _X86_CPU_RNG_H_ */ 39