OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [lwIP_MCF5235_GCC/] [include/] [arch/] [mcf523x/] [mcf523x_rng.h] - Blame information for rev 609

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.