source: rtems/c/src/lib/libbsp/powerpc/ep1a/vme/VMEConfig.h @ a771462e

4.104.114.84.95
Last change on this file since a771462e was a771462e, checked in by Till Straumann <strauman@…>, on 01/31/07 at 03:40:58

2007-01-30 Till Straumann <strauman@…>

  • Makefile.am, preinstall.am, include/bsp.h,
  • vme/vmeconfig.c (removed), vme/VMEConfig.h (added): cleaned up vme support - use files from libbsp/powerpc/shared/vme and define BSP specifica in VMEConfig.h. Use VME DMA support implemented by vmeUniverse and libbsp/powerpc/shared/vme/vme_universe_dma.c
  • Property mode set to 100644
File size: 3.4 KB
Line 
1#ifndef RTEMS_BSP_VME_CONFIG_H
2#define RTEMS_BSP_VME_CONFIG_H
3/* $Id$ */
4
5/* BSP specific address space configuration parameters */
6
7/*
8 * Authorship
9 * ----------
10 * This software was created by
11 *     Till Straumann <strauman@slac.stanford.edu>, 2002,
12 *         Stanford Linear Accelerator Center, Stanford University.
13 *
14 * Acknowledgement of sponsorship
15 * ------------------------------
16 * This software was produced by
17 *     the Stanford Linear Accelerator Center, Stanford University,
18 *         under Contract DE-AC03-76SFO0515 with the Department of Energy.
19 *
20 * Government disclaimer of liability
21 * ----------------------------------
22 * Neither the United States nor the United States Department of Energy,
23 * nor any of their employees, makes any warranty, express or implied, or
24 * assumes any legal liability or responsibility for the accuracy,
25 * completeness, or usefulness of any data, apparatus, product, or process
26 * disclosed, or represents that its use would not infringe privately owned
27 * rights.
28 *
29 * Stanford disclaimer of liability
30 * --------------------------------
31 * Stanford University makes no representations or warranties, express or
32 * implied, nor assumes any liability for the use of this software.
33 *
34 * Stanford disclaimer of copyright
35 * --------------------------------
36 * Stanford University, owner of the copyright, hereby disclaims its
37 * copyright and all other rights in this software.  Hence, anyone may
38 * freely use it for any purpose without restriction. 
39 *
40 * Maintenance of notices
41 * ----------------------
42 * In the interest of clarity regarding the origin and status of this
43 * SLAC software, this and all the preceding Stanford University notices
44 * are to remain affixed to any copy or derivative of this software made
45 * or distributed by the recipient and are to be affixed to any copy of
46 * software made or distributed by the recipient that contains a copy or
47 * derivative of this software.
48 *
49 * ------------------ SLAC Software Notices, Set 4 OTT.002a, 2004 FEB 03
50 */
51/*
52 * The BSP maps VME address ranges into
53 * one BAT.
54 * NOTE: the BSP (startup/bspstart.c) uses
55 * hardcoded window lengths that match this
56 * layout:
57 *
58 * BSP_VME_BAT_IDX defines
59 * which BAT to use for mapping the VME bus.
60 * If this is undefined, no extra BAT will be
61 * configured and VME has to share the available
62 * PCI address space with PCI devices.
63 */
64#undef   BSP_VME_BAT_IDX
65
66#define _VME_A32_WIN0_ON_PCI    0x10000000
67#define _VME_A24_ON_PCI                 0x1f000000
68#define _VME_A16_ON_PCI                 0x1fff0000
69
70/* start of the A32 window on the VME bus
71 * TODO: this should perhaps be a configuration option
72 */
73#define _VME_A32_WIN0_ON_VME    0x20000000
74
75/* if _VME_DRAM_OFFSET is defined, the BSP
76 * will map our RAM onto the VME bus, starting
77 * at _VME_DRAM_OFFSET
78 */
79#undef  _VME_DRAM_OFFSET
80
81#undef _VME_CSR_ON_PCI
82
83/* Tell the interrupt manager that the universe driver
84 * already called openpic_eoi() and that this step hence
85 * must be omitted.
86 */
87
88#define BSP_PCI_VME_DRIVER_DOES_EOI
89
90/* don't reference vmeUniverse0PciIrqLine directly here - leave it up to
91 * bspstart() to set BSP_vme_bridge_irq. That way, we can generate variants
92 * of the BSP with / without the universe driver...
93 */
94extern int _BSP_vme_bridge_irq;
95
96extern int BSP_VMEInit();
97extern int BSP_VMEIrqMgrInstall();
98
99#define BSP_VME_UNIVERSE_INSTALL_IRQ_MGR                                                \
100        do {                                                                                                            \
101                vmeUniverseInstallIrqMgr(0,5,1,6);                                              \
102        } while (0)
103
104#endif
Note: See TracBrowser for help on using the repository browser.