2 * These files are taken from the MCF523X source code example package
\r
3 * which is available on the Freescale website. Freescale explicitly
\r
4 * grants the redistribution and modification of these source files.
\r
5 * The complete licensing information is available in the file
\r
6 * LICENSE_FREESCALE.TXT.
\r
8 * File: mcf523x_rng.h
\r
9 * Purpose: Register and bit definitions for the MCF523X
\r
15 #ifndef __MCF523X_RNG_H__
\r
16 #define __MCF523X_RNG_H__
\r
18 /*********************************************************************
\r
20 * Random Number Generator (RNG)
\r
22 *********************************************************************/
\r
24 /* Register read/write macros */
\r
25 #define MCF_RNG_RNGCR (*(vuint32*)(void*)(&__IPSBAR[0x1A0000]))
\r
26 #define MCF_RNG_RNGSR (*(vuint32*)(void*)(&__IPSBAR[0x1A0004]))
\r
27 #define MCF_RNG_RNGER (*(vuint32*)(void*)(&__IPSBAR[0x1A0008]))
\r
28 #define MCF_RNG_RNGOUT (*(vuint32*)(void*)(&__IPSBAR[0x1A000C]))
\r
30 /* Bit definitions and macros for MCF_RNG_RNGCR */
\r
31 #define MCF_RNG_RNGCR_GO (0x00000001)
\r
32 #define MCF_RNG_RNGCR_HA (0x00000002)
\r
33 #define MCF_RNG_RNGCR_IM (0x00000004)
\r
34 #define MCF_RNG_RNGCR_CI (0x00000008)
\r
36 /* Bit definitions and macros for MCF_RNG_RNGSR */
\r
37 #define MCF_RNG_RNGSR_SV (0x00000001)
\r
38 #define MCF_RNG_RNGSR_LRS (0x00000002)
\r
39 #define MCF_RNG_RNGSR_FUF (0x00000004)
\r
40 #define MCF_RNG_RNGSR_EI (0x00000008)
\r
41 #define MCF_RNG_RNGSR_OFL(x) (((x)&0x000000FF)<<8)
\r
42 #define MCF_RNG_RNGSR_OFS(x) (((x)&0x000000FF)<<16)
\r
44 /********************************************************************/
\r
46 #endif /* __MCF523X_RNG_H__ */
\r