source: rtems/c/src/lib/libbsp/sparc/erc32/include/bsp.h @ 4909a30

4.104.115
Last change on this file since 4909a30 was 4909a30, checked in by Joel Sherrill <joel.sherrill@…>, on 09/10/08 at 21:35:37

2008-09-10 Joel Sherrill <joel.sherrill@…>

  • include/bsp.h: Review of all bsp_cleanup() implementations. In this phase, all prototypes were removed from bsp.h and empty implementations were removed and made to use the shared stub.
  • Property mode set to 100644
File size: 2.4 KB
Line 
1/*  bsp.h
2 *
3 *  This include file contains all SPARC simulator definitions.
4 *
5 *  COPYRIGHT (c) 1989-2007.
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 <rtems/iosupp.h>
33#include <erc32.h>
34#include <rtems/clockdrv.h>
35
36#include <rtems/console.h>
37
38/*
39 *  confdefs.h overrides for this BSP:
40 *   - two termios serial ports
41 *   - Interrupt stack space is not minimum if defined.
42 */
43
44#define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2
45
46/*
47 * Network driver configuration
48 */
49
50struct rtems_bsdnet_ifconfig;
51extern int rtems_erc32_sonic_driver_attach (struct rtems_bsdnet_ifconfig *config);
52#define RTEMS_BSP_NETWORK_DRIVER_NAME   "sonic1"
53#define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_erc32_sonic_driver_attach
54
55/*
56 *  Simple spin delay in microsecond units for device drivers.
57 *  This is very dependent on the clock speed of the target.
58 */
59
60extern void Clock_delay(uint32_t         microseconds);
61
62#define delay( microseconds ) Clock_delay(microseconds)
63
64/* Constants */
65
66/*
67 *  Information placed in the linkcmds file.
68 */
69
70extern int   RAM_START;
71extern int   RAM_END;
72extern int   RAM_SIZE;
73
74extern int   PROM_START;
75extern int   PROM_END;
76extern int   PROM_SIZE;
77
78extern int   CLOCK_SPEED;
79
80extern int   end;        /* last address in the program */
81
82/*
83 *  Device Driver Table Entries
84 */
85
86/*
87 * NOTE: Use the standard Console driver entry
88 */
89
90/*
91 * NOTE: Use the standard Clock driver entry
92 */
93
94/* miscellaneous stuff assumed to exist */
95
96rtems_isr_entry set_vector(                     /* returns old vector */
97    rtems_isr_entry     handler,                /* isr routine        */
98    rtems_vector_number vector,                 /* vector number      */
99    int                 type                    /* RTEMS or RAW intr  */
100);
101
102void BSP_fatal_return( void );
103
104void bsp_spurious_initialize( void );
105
106#ifdef __cplusplus
107}
108#endif
109
110#endif
Note: See TracBrowser for help on using the repository browser.