source: rtems/c/src/lib/libbsp/powerpc/psim/include/bsp.h @ c499856

4.115
Last change on this file since c499856 was c499856, checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47

Change all references of rtems.com to rtems.org.

  • Property mode set to 100644
File size: 2.1 KB
Line 
1/*  bsp.h
2 *
3 *  This include file contains all Papyrus board IO definitions.
4 *
5 *  Author:     Andrew Bray <andy@i-cubed.co.uk>
6 *
7 *  COPYRIGHT (c) 1995 by i-cubed ltd.
8 *
9 *  To anyone who acknowledges that this file is provided "AS IS"
10 *  without any express or implied warranty:
11 *      permission to use, copy, modify, and distribute this file
12 *      for any purpose is hereby granted without fee, provided that
13 *      the above copyright notice and this notice appears in all
14 *      copies, and that the name of i-cubed limited not be used in
15 *      advertising or publicity pertaining to distribution of the
16 *      software without specific, written prior permission.
17 *      i-cubed limited makes no representations about the suitability
18 *      of this software for any purpose.
19 *
20 *  Derived from c/src/lib/libbsp/no_cpu/no_bsp/include/bsp.h
21 *
22 *  COPYRIGHT (c) 1989-1999.
23 *  On-Line Applications Research Corporation (OAR).
24 *
25 *  The license and distribution terms for this file may be
26 *  found in the file LICENSE in this distribution or at
27 *  http://www.rtems.org/license/LICENSE.
28 */
29
30#ifndef _BSP_H
31#define _BSP_H
32
33#ifdef __cplusplus
34extern "C" {
35#endif
36
37#include <bspopts.h>
38
39#ifdef ASM
40/* Definition of where to store registers in alignment handler */
41#define ALIGN_REGS 0x0140
42
43#else
44#include <rtems.h>
45#include <rtems/console.h>
46#include <libcpu/io.h>
47#include <rtems/clockdrv.h>
48#include <rtems/iosupp.h>
49#include <bsp/vectors.h>
50#include <bsp/default-initial-extension.h>
51
52/* Constants */
53
54/*
55 *  Information placed in the linkcmds file.
56 */
57
58extern int   end;        /* last address in the program */
59extern int   RAM_END;
60
61extern uint32_t   BSP_mem_size;
62
63#define BSP_Convert_decrementer( _value ) ( (unsigned long long) _value )
64
65/* macros */
66#define Processor_Synchronize() \
67  __asm__ (" eieio ")
68
69struct rtems_bsdnet_ifconfig;
70
71int
72rtems_ifsim_attach(struct rtems_bsdnet_ifconfig *ifcfg, int attaching);
73
74#define RTEMS_BSP_NETWORK_DRIVER_NAME   "ifsim1"
75#define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_ifsim_attach
76
77#endif /* ASM */
78
79#define BSP_HAS_NO_VME
80
81#ifdef __cplusplus
82}
83#endif
84
85#endif
Note: See TracBrowser for help on using the repository browser.