source: rtems/c/src/lib/libbsp/powerpc/mvme5500/include/bsp.h @ 7be6ad9

4.104.114.84.95
Last change on this file since 7be6ad9 was 7be6ad9, checked in by Eric Norum <WENorum@…>, on 10/20/04 at 15:21:05

Add MVME550 BSP

  • Property mode set to 100644
File size: 3.0 KB
Line 
1/*
2 *  bsp.h  -- contain BSP API definition.
3 *
4 *  Copyright (C) 1999 Eric Valette. valette@crf.canon.fr
5 *
6 *  The license and distribution terms for this file may be
7 *  found in found in the file LICENSE in this distribution or at
8 *  http://www.OARcorp.com/rtems/license.html.
9 *
10 *  S. Kate Feng 12/03 : Modified it to support the MVME5500 board.
11 *
12 */
13
14#ifndef LIBBSP_POWERPC_MVME5500_BSP_H
15#define LIBBSP_POWERPC_MVME5500_BSP_H
16
17#include <bspopts.h>
18
19#include <rtems.h>
20#include <console.h>
21#include <clockdrv.h>
22#include <libcpu/io.h>
23#include <bsp/vectors.h>
24
25#include <bsp/bspMvme5500.h>
26
27/* fundamental addresses for this BSP (PREPxxx are from libcpu/io.h) */
28#define _IO_BASE GT64260_REG_BASE
29
30/* PCI0 Domain I/O space */
31#define PCI0_IO_BASE            0xf0000000
32#define PCI1_IO_BASE            0xf0800000
33
34/* PCI 0 memory space as seen from the CPU */
35#define PCI0_MEM_BASE           0x80000000
36#define PCI_MEM_BASE            0  /* glue for vmeUniverse */
37
38/* address of our ram on the PCI bus */
39#define PCI_DRAM_OFFSET         0
40
41/* PCI 1 memory space as seen from the CPU */
42#define PCI1_MEM_BASE           0xe0000000
43#define PCI1_MEM_SIZE           0x10000000
44
45/* The glues to Till's vmeUniverse, although the name does not
46 * actually reflect the relevant architect of the MVME5500.
47 * Till TODO ? :  BSP_PCI_DO_EOI instead ?
48 * BSP_EXT_IRQ0 instead of BSP_PCI_IRQ0 ?
49 *
50 */
51#define BSP_PIC_DO_EOI  inl(0xc34)  /* PCI IACK */
52#define BSP_PCI_IRQ0 BSP_GPP_IRQ_LOWEST_OFFSET
53
54/*
55 *  confdefs.h overrides for this BSP:
56 *   - termios serial ports (defaults to 1)
57 *   - Interrupt stack space is not minimum if defined.
58 */
59
60#define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2
61#define CONFIGURE_INTERRUPT_STACK_MEMORY  (16 * 1024)
62
63/* uart.c uses out_8 instead of outb  */
64#define BSP_UART_IOBASE_COM1    GT64260_DEV1_BASE + 0x20000
65#define BSP_UART_IOBASE_COM2    GT64260_DEV1_BASE + 0x21000
66
67#define BSP_CONSOLE_PORT                BSP_UART_COM1  /* console */
68#define BSP_UART_BAUD_BASE              115200
69
70/*
71 * Vital Board data Start using DATA RESIDUAL
72 */
73/*
74 * Total memory using RESIDUAL DATA
75 */
76extern unsigned int BSP_mem_size;
77/*
78 * PCI Bus Frequency
79 */
80extern unsigned int BSP_bus_frequency;
81/*
82 * processor clock frequency
83 */
84extern unsigned int BSP_processor_frequency;
85/*
86 * Time base divisior (how many tick for 1 second).
87 */
88extern unsigned int BSP_time_base_divisor;
89
90#define BSP_Convert_decrementer( _value ) \
91  ((unsigned long long) ((((unsigned long long)BSP_time_base_divisor) * 1000000ULL) /((unsigned long long) BSP_bus_frequency)) * ((unsigned long long) (_value)))
92
93extern rtems_configuration_table  BSP_Configuration;
94extern void BSP_panic(char *s);
95extern void rtemsReboot(void);
96/* extern int printk(const char *, ...) __attribute__((format(printf, 1, 2))); */
97extern int BSP_disconnect_clock_handler (void);
98extern int BSP_connect_clock_handler (void);
99
100extern unsigned long _BSP_clear_hostbridge_errors();
101
102#define RTEMS_BSP_NETWORK_DRIVER_NAME   "gt1"
103#define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_GT64260eth_driver_attach
104
105extern int
106RTEMS_BSP_NETWORK_DRIVER_ATTACH(/* struct rtems_bsdnet_ifconfig * */);
107
108
109#endif
Note: See TracBrowser for help on using the repository browser.