162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 262306a36Sopenharmony_ci/* Copyright Altera Corporation (C) 2014. All rights reserved. 362306a36Sopenharmony_ci */ 462306a36Sopenharmony_ci 562306a36Sopenharmony_ci#ifndef _ASM_NIOS2_TIMEX_H 662306a36Sopenharmony_ci#define _ASM_NIOS2_TIMEX_H 762306a36Sopenharmony_ci 862306a36Sopenharmony_citypedef unsigned long cycles_t; 962306a36Sopenharmony_ci 1062306a36Sopenharmony_ciextern cycles_t get_cycles(void); 1162306a36Sopenharmony_ci#define get_cycles get_cycles 1262306a36Sopenharmony_ci 1362306a36Sopenharmony_ci#define random_get_entropy() (((unsigned long)get_cycles()) ?: random_get_entropy_fallback()) 1462306a36Sopenharmony_ci 1562306a36Sopenharmony_ci#endif 16