1 /*---------------------------------------------------------------------------* 2 Project: TwlSDK - OS - include 3 File: entropy.h 4 5 Copyright 2003-2008 Nintendo. All rights reserved. 6 7 These coded instructions, statements, and computer programs contain 8 proprietary information of Nintendo of America Inc. and/or Nintendo 9 Company Ltd., and are protected by Federal copyright law. They may 10 not be disclosed to third parties or copied or duplicated in any form, 11 in whole or in part, without the prior written consent of Nintendo. 12 13 $Date:: 2008-09-18#$ 14 $Rev: 8573 $ 15 $Author: okubata_ryoma $ 16 *---------------------------------------------------------------------------*/ 17 18 #ifndef NITRO_OS_ENTROPY_H_ 19 #define NITRO_OS_ENTROPY_H_ 20 21 #ifdef __cplusplus 22 extern "C" { 23 #endif 24 25 #include <nitro/misc.h> 26 #include <nitro/types.h> 27 #ifdef SDK_NITRO 28 #include <nitro/ioreg.h> 29 #else 30 #include <twl/ioreg.h> 31 #endif 32 33 #define OS_LOW_ENTROPY_DATA_SIZE 32 34 35 /*---------------------------------------------------------------------------* 36 Name: OS_GetLowEntropyData 37 38 Description: Gets low entropy data array that changes according to the system status. 39 40 Arguments: buffer - Pointer to the array that holds the data string. 41 42 Returns: None. 43 *---------------------------------------------------------------------------*/ 44 void OS_GetLowEntropyData(u32 buffer[OS_LOW_ENTROPY_DATA_SIZE / sizeof(u32)]); 45 46 47 48 #ifdef __cplusplus 49 } /* extern "C" */ 50 #endif 51 52 /* NITRO_OS_ENTROPY_H_ */ 53 #endif 54