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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [ColdFire_MCF52259_CodeWarrior/] [Freescale_Headers/] [MCF52259_RNGA.h] - Blame information for rev 595

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

Line No. Rev Author Line
1 578 jeremybenn
/* Coldfire C Header File
2
 * Copyright Freescale Semiconductor Inc
3
 * All rights reserved.
4
 *
5
 * 2008/04/17 Revision: 0.2
6
 *
7
 * (c) Copyright UNIS, spol. s r.o. 1997-2008
8
 * UNIS, spol. s r.o.
9
 * Jundrovska 33
10
 * 624 00 Brno
11
 * Czech Republic
12
 * http      : www.processorexpert.com
13
 * mail      : info@processorexpert.com
14
 */
15
 
16
#ifndef __MCF52259_RNGA_H__
17
#define __MCF52259_RNGA_H__
18
 
19
 
20
/*********************************************************************
21
*
22
* Random Number Generator (RNG)
23
*
24
*********************************************************************/
25
 
26
/* Register read/write macros */
27
#define MCF_RNGA_RNGCR                       (*(vuint32*)(0x401F0000))
28
#define MCF_RNGA_RNGSR                       (*(vuint32*)(0x401F0004))
29
#define MCF_RNGA_RNGER                       (*(vuint32*)(0x401F0008))
30
#define MCF_RNGA_RNGOUT                      (*(vuint32*)(0x401F000C))
31
 
32
 
33
/* Bit definitions and macros for MCF_RNGA_RNGCR */
34
#define MCF_RNGA_RNGCR_GO                    (0x1)
35
#define MCF_RNGA_RNGCR_HA                    (0x2)
36
#define MCF_RNGA_RNGCR_IM                    (0x4)
37
#define MCF_RNGA_RNGCR_CI                    (0x8)
38
#define MCF_RNGA_RNGCR_SLM                   (0x10)
39
 
40
/* Bit definitions and macros for MCF_RNGA_RNGSR */
41
#define MCF_RNGA_RNGSR_SV                    (0x1)
42
#define MCF_RNGA_RNGSR_LRS                   (0x2)
43
#define MCF_RNGA_RNGSR_FUF                   (0x4)
44
#define MCF_RNGA_RNGSR_EI                    (0x8)
45
#define MCF_RNGA_RNGSR_SLP                   (0x10)
46
#define MCF_RNGA_RNGSR_OFL(x)                (((x)&0xFF)<<0x8)
47
#define MCF_RNGA_RNGSR_OFS(x)                (((x)&0xFF)<<0x10)
48
 
49
/* Bit definitions and macros for MCF_RNGA_RNGER */
50
#define MCF_RNGA_RNGER_ENT(x)                (((x)&0xFFFFFFFF)<<0)
51
 
52
/* Bit definitions and macros for MCF_RNGA_RNGOUT */
53
#define MCF_RNGA_RNGOUT_RANDOM_OUTPUT(x)     (((x)&0xFFFFFFFF)<<0)
54
 
55
 
56
#endif /* __MCF52259_RNGA_H__ */

powered by: WebSVN 2.1.0

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