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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [newlib-1.17.0/] [libgloss/] [bfin/] [include/] [sysreg.h] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 148 jeremybenn
/*
2
 * The authors hereby grant permission to use, copy, modify, distribute,
3
 * and license this software and its documentation for any purpose, provided
4
 * that existing copyright notices are retained in all copies and that this
5
 * notice is included verbatim in any distributions. No written agreement,
6
 * license, or royalty fee is required for any of the authorized uses.
7
 * Modifications to this software may be copyrighted by their authors
8
 * and need not follow the licensing terms described here, provided that
9
 * the new terms are clearly indicated on the first page of each file where
10
 * they apply.
11
 */
12
 
13
/* This file must be used with compiler version 8.0.1.5 */
14
 
15
#ifdef __VERSIONNUM__
16
#if __VERSIONNUM__ != 0x08000105
17
#error The compiler version does not match the version of the sysreg.h include
18
#endif
19
#endif
20
 
21
/************************************************************************
22
 *
23
 * sysreg.h
24
 *
25
 * Copyright (C) 2008 Analog Devices, Inc.
26
 *
27
 ***********************************************************************/
28
 
29
#pragma once
30
#ifndef __NO_BUILTIN
31
#pragma system_header /* sysreg.h */
32
#endif
33
 
34
/* sysreg definitions for use in sysreg_read and sysreg_write calls. */
35
 
36
#ifndef _SYSREG_H
37
#define _SYSREG_H
38
 
39
#ifdef _MISRA_RULES
40
#pragma diag(push)
41
#pragma diag(suppress:misra_rule_2_4)
42
#pragma diag(suppress:misra_rule_6_3)
43
#pragma diag(suppress:misra_rule_19_10)
44
#endif /* _MISRA_RULES */
45
 
46
enum {
47
  /* the following can be used in word-sized sysreg reads and writes */
48
  reg_I0,
49
  reg_I1,
50
  reg_I2,
51
  reg_I3,
52
  reg_M0,
53
  reg_M1,
54
  reg_M2,
55
  reg_M3,
56
  reg_B0,
57
  reg_B1,
58
  reg_B2,
59
  reg_B3,
60
  reg_L0,
61
  reg_L1,
62
  reg_L2,
63
  reg_L3,
64
  reg_LC0,
65
  reg_LC1,
66
  reg_LT0,
67
  reg_LT1,
68
  reg_LB0,
69
  reg_LB1,
70
  reg_RETS,
71
  reg_RETI,
72
  reg_RETX,
73
  reg_RETN,
74
  reg_RETE,
75
  reg_SEQSTAT,
76
  reg_SYSCFG,
77
  reg_CYCLES,
78
  reg_CYCLES2,
79
  reg_A0W,
80
  reg_A0X,
81
  reg_A1W,
82
  reg_A1X,
83
  reg_FP,
84
  reg_SP,
85
  reg_ASTAT,
86
 
87
  /* the following can be used in double-word sysreg reads and writes */
88
  reg_A0,
89
  reg_A1,
90
  __num_SysRegs
91
};
92
 
93
#define STACKPOINTER reg_SP
94
#define FRAMEPOINTER reg_FP
95
 
96
#ifdef _MISRA_RULES
97
#pragma diag(pop)
98
#endif /* _MISRA_RULES */
99
 
100
#endif /* _SYSREG_H */

powered by: WebSVN 2.1.0

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