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

4.10
Last change on this file since e115f4b was e115f4b, checked in by Joel Sherrill <joel.sherrill@…>, on 04/25/11 at 19:39:42

2011-04-25 Jennifer Averett <jennifer.averett@…>

PR 1783/bsps

  • include/bsp.h: Remove dead prototypes of Clock_delay() and delay(). Neither had bodies.
  • Property mode set to 100644
File size: 2.7 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/* SPARC CPU variant: LEON3 */
37#define LEON3 1
38
39/*
40 *  BSP provides its own Idle thread body
41 */
42void *bsp_idle_thread( uintptr_t ignored );
43#define BSP_IDLE_TASK_BODY bsp_idle_thread
44
45/*
46 * Network driver configuration
47 */
48struct rtems_bsdnet_ifconfig;
49extern int rtems_leon_open_eth_driver_attach(
50  struct rtems_bsdnet_ifconfig *config,
51  int attach
52);
53extern int rtems_smc91111_driver_attach_leon3(
54  struct rtems_bsdnet_ifconfig *config,
55  int attach
56);
57extern int rtems_leon_greth_driver_attach(
58  struct rtems_bsdnet_ifconfig *config,
59  int attach
60);
61
62#define RTEMS_BSP_NETWORK_DRIVER_NAME_OPENETH   "open_eth1"
63#define RTEMS_BSP_NETWORK_DRIVER_ATTACH_OPENETH  rtems_leon_open_eth_driver_attach
64#define RTEMS_BSP_NETWORK_DRIVER_NAME_SMC91111  "smc_eth1"
65#define RTEMS_BSP_NETWORK_DRIVER_ATTACH_SMC91111 rtems_smc91111_driver_attach_leon3
66#define RTEMS_BSP_NETWORK_DRIVER_NAME_GRETH      "gr_eth1"
67#define RTEMS_BSP_NETWORK_DRIVER_ATTACH_GRETH    rtems_leon_greth_driver_attach
68
69#ifndef RTEMS_BSP_NETWORK_DRIVER_NAME
70#define RTEMS_BSP_NETWORK_DRIVER_NAME   RTEMS_BSP_NETWORK_DRIVER_NAME_GRETH
71#define RTEMS_BSP_NETWORK_DRIVER_ATTACH RTEMS_BSP_NETWORK_DRIVER_ATTACH_GRETH
72#endif
73
74extern int   CPU_SPARC_HAS_SNOOPING;
75
76
77/* Constants */
78
79/*
80 *  Information placed in the linkcmds file.
81 */
82
83extern int   RAM_START;
84extern int   RAM_END;
85extern int   RAM_SIZE;
86
87extern int   PROM_START;
88extern int   PROM_END;
89extern int   PROM_SIZE;
90
91extern int   CLOCK_SPEED;
92
93extern int   end;        /* last address in the program */
94
95/* miscellaneous stuff assumed to exist */
96
97rtems_isr_entry set_vector(                     /* returns old vector */
98    rtems_isr_entry     handler,                /* isr routine        */
99    rtems_vector_number vector,                 /* vector number      */
100    int                 type                    /* RTEMS or RAW intr  */
101);
102
103void BSP_fatal_return( void );
104
105void bsp_spurious_initialize( void );
106
107#ifdef __cplusplus
108}
109#endif
110
111#endif
112
113
Note: See TracBrowser for help on using the repository browser.