RTEMS
6.3
Toggle main menu visibility
Loading...
Searching...
No Matches
bsps
sparc
include
bsp
gr_leon4_n2x.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: BSD-2-Clause */
2
11
12
/*
13
* COPYRIGHT (c) 2013.
14
* Cobham Gaisler AB.
15
*
16
* Redistribution and use in source and binary forms, with or without
17
* modification, are permitted provided that the following conditions
18
* are met:
19
* 1. Redistributions of source code must retain the above copyright
20
* notice, this list of conditions and the following disclaimer.
21
* 2. Redistributions in binary form must reproduce the above copyright
22
* notice, this list of conditions and the following disclaimer in the
23
* documentation and/or other materials provided with the distribution.
24
*
25
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
29
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
35
* POSSIBILITY OF SUCH DAMAGE.
36
*
37
* Configures the GR-CPIC-LEON4-N2X interface PCI board in peripheral
38
* mode. This driver provides a AMBA PnP bus by using the general part
39
* of the AMBA PnP bus driver (ambapp_bus.c).
40
*
41
*
42
* Driver resource options:
43
* NAME DEFAULT VALUE
44
* ahbmst2pci _RAM_START AMBA->PCI translation PCI base address
45
* ambaFreq 200000000 (200MHz) AMBA system frequency of LEON4-N2X
46
* cgEnMask 0x1f (all) Clock gating enable mask
47
*
48
* TODO/UNTESTED
49
* Interrupt testing
50
* bar0 RESOURCE 0x00000000 L2-Cache SDRAM memory
51
* bar1 RESOURCE 0xf0000000 L2-Cache registers
52
*/
53
54
#ifndef __GR_CPCI_LEON4_N2X_H__
55
#define __GR_CPCI_LEON4_N2X_H__
56
57
#include <
drvmgr/drvmgr.h
>
58
59
#ifdef __cplusplus
60
extern
"C"
{
61
#endif
62
63
/* An array of pointers to GR-CPCI-LEON4-N2X resources. The resources will be
64
* used by the drivers controlling the cores on the GR-CPCI-LEON4-N2X target
65
* AMBA bus.
66
*
67
* The gr_leon4_n2x_resources is declared weak so that the user can override the
68
* default configuration. The array must be terminated with a NULL resource.
69
*/
70
extern
struct
drvmgr_bus_res
*gr_leon4_n2x_resources[];
71
72
/* Options to gr_cpci_leon4_n2x_print function */
73
#define GR_LEON4_N2X_OPTIONS_AMBA 0x01
/* Print AMBA bus devices */
74
75
/* Print information about all GR-CPCI-LEON4-N2X PCI boards */
76
void
gr_leon4_n2x_print(
int
options);
77
78
/* Print information about one GR-CPCI-LEON4-N2X PCI board */
79
void
gr_cpci_leon4_n2x_print_dev(
struct
drvmgr_dev
*dev,
int
options);
80
81
/* Register GR-CPCI-LEON4-N2X driver */
82
void
gr_cpci_leon4_n2x_register_drv(
void
);
83
84
#ifdef __cplusplus
85
}
86
#endif
87
88
#endif
drvmgr.h
Driver Manager Interface.
drvmgr_bus_res
Definition
drvmgr.h:238
drvmgr_dev
Definition
drvmgr.h:299
Generated by
1.18.0