source: rtems/c/src/lib/libbsp/sparc/leon3/include/amba.h @ 226d48d8

4.11
Last change on this file since 226d48d8 was 226d48d8, checked in by Daniel Hellstrom <daniel@…>, on May 16, 2012 at 3:20:35 PM

LEON: moved register definitions into grlib header file

Some register layout definitions for LEON3 reside in ambapp.h which
does not really has anything to do with device registers. The
register structures has been incorrectly named LEON3_*, the cores
are not only used on LEON3 but on LEON4 and perhaps on LEON5 when
that day comes. Some structures has been renamed according to the
GRLIB core name instead, which CPU that actually use it is not
relevant. Drivers has been updated with the new names.

Signed-off-by: Daniel Hellstrom <daniel@…>

  • Property mode set to 100644
File size: 842 bytes
Line 
1/*
2 *  AMBA Plag & Play Bus Driver Macros
3 *
4 *  Macros used for AMBA Plug & Play bus scanning
5 *
6 *  COPYRIGHT (c) 2004.
7 *  Gaisler Research
8 *
9 *  The license and distribution terms for this file may be
10 *  found in the file LICENSE in this distribution or at
11 *  http://www.rtems.com/license/LICENSE.
12 */
13
14#ifndef __AMBA_H__
15#define __AMBA_H__
16
17#define LEON3_IO_AREA 0xfff00000
18#define LEON3_CONF_AREA 0xff000
19#define LEON3_AHB_SLAVE_CONF_AREA (1 << 11)
20
21#define LEON3_AHB_CONF_WORDS 8
22#define LEON3_APB_CONF_WORDS 2
23#define LEON3_AHB_MASTERS 64
24#define LEON3_AHB_SLAVES 64
25#define LEON3_APB_SLAVES 16
26
27#include <ambapp.h>
28#include <grlib.h>
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
34/* The AMBA Plug&Play info of the bus that the LEON3 sits on */
35extern struct ambapp_bus ambapp_plb;
36
37#ifdef __cplusplus
38}
39#endif
40
41#endif /* __AMBA_H__ */
Note: See TracBrowser for help on using the repository browser.