source: rtems/c/src/lib/libbsp/sparc/leon3/include/bsp.h @ 5d3d6d1a

4.104.114.84.95
Last change on this file since 5d3d6d1a was 5d3d6d1a, checked in by Joel Sherrill <joel.sherrill@…>, on 03/10/07 at 15:53:53

2007-03-10 Joel Sherrill <joel@…>

PR 1227/bsps

  • include/bsp.h: Remove MAX_LONG_TEST_DURATION and MAX_SHORT_TEST_DURATION. They are obsolete and unused.
  • Property mode set to 100644
File size: 3.4 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/* add a entry to the device driver table so that I can call rtems_io_register_driver */
46#define CONFIGURE_NUMBER_OF_DRIVERS_LEON3 \
47  (((sizeof(Device_drivers) / sizeof(rtems_driver_address_table))) + 1)
48#define CONFIGURE_MAXIMUM_DRIVERS CONFIGURE_NUMBER_OF_DRIVERS_LEON3
49 
50/*
51 * Network driver configuration
52 */
53
54struct rtems_bsdnet_ifconfig;
55extern int rtems_leon_open_eth_driver_attach(
56  struct rtems_bsdnet_ifconfig *config,
57  int attach
58);
59extern int rtems_smc91111_driver_attach_leon3(
60  struct rtems_bsdnet_ifconfig *config,
61  int attach
62);
63extern int rtems_leon_greth_driver_attach(
64  struct rtems_bsdnet_ifconfig *config,
65  int attach
66);
67
68#define RTEMS_BSP_NETWORK_DRIVER_NAME_OPENETH   "open_eth1"
69#define RTEMS_BSP_NETWORK_DRIVER_ATTACH_OPENETH  rtems_leon_open_eth_driver_attach
70#define RTEMS_BSP_NETWORK_DRIVER_NAME_SMC91111  "smc_eth1"
71#define RTEMS_BSP_NETWORK_DRIVER_ATTACH_SMC91111 rtems_smc91111_driver_attach_leon3
72#define RTEMS_BSP_NETWORK_DRIVER_NAME_GRETH      "gr_eth1"
73#define RTEMS_BSP_NETWORK_DRIVER_ATTACH_GRETH    rtems_leon_greth_driver_attach
74
75#ifndef RTEMS_BSP_NETWORK_DRIVER_NAME
76#define RTEMS_BSP_NETWORK_DRIVER_NAME   RTEMS_BSP_NETWORK_DRIVER_NAME_GRETH
77#define RTEMS_BSP_NETWORK_DRIVER_ATTACH RTEMS_BSP_NETWORK_DRIVER_ATTACH_GRETH
78#endif
79
80/*
81 *  Simple spin delay in microsecond units for device drivers.
82 *  This is very dependent on the clock speed of the target.
83 */
84
85extern void Clock_delay(uint32_t microseconds);
86
87#define delay( microseconds ) Clock_delay(microseconds)
88
89/* Constants */
90
91/*
92 *  Information placed in the linkcmds file.
93 */
94
95extern int   RAM_START;
96extern int   RAM_END;
97extern int   RAM_SIZE;
98 
99extern int   PROM_START;
100extern int   PROM_END;
101extern int   PROM_SIZE;
102
103extern int   CLOCK_SPEED;
104 
105extern int   end;        /* last address in the program */
106
107/* miscellaneous stuff assumed to exist */
108
109void bsp_cleanup( void );
110
111void bsp_start( void );
112
113rtems_isr_entry set_vector(                     /* returns old vector */
114    rtems_isr_entry     handler,                /* isr routine        */
115    rtems_vector_number vector,                 /* vector number      */
116    int                 type                    /* RTEMS or RAW intr  */
117);
118
119void DEBUG_puts( char *string );
120
121void BSP_fatal_return( void );
122
123void bsp_spurious_initialize( void );
124
125extern rtems_configuration_table BSP_Configuration;     /* owned by BSP */
126
127extern rtems_cpu_table           Cpu_table;             /* owned by BSP */
128
129#ifdef __cplusplus
130}
131#endif
132
133#endif
134
135
Note: See TracBrowser for help on using the repository browser.