source: rtems/c/src/lib/libbsp/sparc/leon3/include/bsp.h @ 6dacdf9d

4.104.114.84.95
Last change on this file since 6dacdf9d was 6dacdf9d, checked in by Joel Sherrill <joel.sherrill@…>, on 05/11/07 at 21:19:23

2007-05-11 Joel Sherrill <joel.sherrill@…>

  • include/bsp.h, startup/bspstart.c, startup/spurious.c: hello and ticker now run using runtest.
  • Property mode set to 100644
File size: 3.1 KB
Line 
1/*  bsp.h
2 *
3 *  This include file contains all SPARC simulator definitions.
4 *
5 *  COPYRIGHT (c) 1989-1998.
6 *  On-Line Applications Research Corporation (OAR).
7 *
8 *  The license and distribution terms for this file may be
9 *  found in the file LICENSE in this distribution or at
10 *  http://www.rtems.com/license/LICENSE.
11 *
12 *  Ported to ERC32 implementation of the SPARC by On-Line Applications
13 *  Research Corporation (OAR) under contract to the European Space
14 *  Agency (ESA).
15 *
16 *  ERC32 modifications of respective RTEMS file: COPYRIGHT (c) 1995.
17 *  European Space Agency.
18 *
19 *  $Id$
20 */
21
22#ifndef _BSP_H
23#define _BSP_H
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29#include <bspopts.h>
30
31#include <rtems.h>
32#include <leon.h>
33#include <rtems/clockdrv.h>
34#include <rtems/console.h>
35
36/*
37 *  confdefs.h overrides for this BSP:
38 *   - two termios serial ports
39 *   - Interrupt stack space is not minimum if defined.
40 */
41
42#define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2
43#define CONFIGURE_INTERRUPT_STACK_MEMORY  (16 * 1024)
44
45/*
46 * Network driver configuration
47 */
48
49struct rtems_bsdnet_ifconfig;
50extern int rtems_leon_open_eth_driver_attach(
51  struct rtems_bsdnet_ifconfig *config,
52  int attach
53);
54extern int rtems_smc91111_driver_attach_leon3(
55  struct rtems_bsdnet_ifconfig *config,
56  int attach
57);
58extern int rtems_leon_greth_driver_attach(
59  struct rtems_bsdnet_ifconfig *config,
60  int attach
61);
62
63#define RTEMS_BSP_NETWORK_DRIVER_NAME_OPENETH   "open_eth1"
64#define RTEMS_BSP_NETWORK_DRIVER_ATTACH_OPENETH  rtems_leon_open_eth_driver_attach
65#define RTEMS_BSP_NETWORK_DRIVER_NAME_SMC91111  "smc_eth1"
66#define RTEMS_BSP_NETWORK_DRIVER_ATTACH_SMC91111 rtems_smc91111_driver_attach_leon3
67#define RTEMS_BSP_NETWORK_DRIVER_NAME_GRETH      "gr_eth1"
68#define RTEMS_BSP_NETWORK_DRIVER_ATTACH_GRETH    rtems_leon_greth_driver_attach
69
70#ifndef RTEMS_BSP_NETWORK_DRIVER_NAME
71#define RTEMS_BSP_NETWORK_DRIVER_NAME   RTEMS_BSP_NETWORK_DRIVER_NAME_GRETH
72#define RTEMS_BSP_NETWORK_DRIVER_ATTACH RTEMS_BSP_NETWORK_DRIVER_ATTACH_GRETH
73#endif
74
75/*
76 *  Simple spin delay in microsecond units for device drivers.
77 *  This is very dependent on the clock speed of the target.
78 */
79
80extern void Clock_delay(uint32_t microseconds);
81
82#define delay( microseconds ) Clock_delay(microseconds)
83
84/* Constants */
85
86/*
87 *  Information placed in the linkcmds file.
88 */
89
90extern int   RAM_START;
91extern int   RAM_END;
92extern int   RAM_SIZE;
93 
94extern int   PROM_START;
95extern int   PROM_END;
96extern int   PROM_SIZE;
97
98extern int   CLOCK_SPEED;
99 
100extern int   end;        /* last address in the program */
101
102/* miscellaneous stuff assumed to exist */
103
104void bsp_cleanup( void );
105
106void bsp_start( void );
107
108rtems_isr_entry set_vector(                     /* returns old vector */
109    rtems_isr_entry     handler,                /* isr routine        */
110    rtems_vector_number vector,                 /* vector number      */
111    int                 type                    /* RTEMS or RAW intr  */
112);
113
114void BSP_fatal_return( void );
115
116void bsp_spurious_initialize( void );
117
118extern rtems_configuration_table BSP_Configuration;     /* owned by BSP */
119
120extern rtems_cpu_table           Cpu_table;             /* owned by BSP */
121
122#ifdef __cplusplus
123}
124#endif
125
126#endif
127
128
Note: See TracBrowser for help on using the repository browser.