RTEMS 7.0-rc1
Loading...
Searching...
No Matches
bsp.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: GPL-2.0+-with-RTEMS-exception */
2
11/* bsp.h
12 *
13 * This include file contains all Papyrus board IO definitions.
14 *
15 * Author: Andrew Bray <andy@i-cubed.co.uk>
16 *
17 * COPYRIGHT (c) 1995 by i-cubed ltd.
18 *
19 * To anyone who acknowledges that this file is provided "AS IS"
20 * without any express or implied warranty:
21 * permission to use, copy, modify, and distribute this file
22 * for any purpose is hereby granted without fee, provided that
23 * the above copyright notice and this notice appears in all
24 * copies, and that the name of i-cubed limited not be used in
25 * advertising or publicity pertaining to distribution of the
26 * software without specific, written prior permission.
27 * i-cubed limited makes no representations about the suitability
28 * of this software for any purpose.
29 *
30 * Derived from bsps/no_cpu/no_bsp/include/bsp.h
31 *
32 * COPYRIGHT (c) 1989-1999.
33 * On-Line Applications Research Corporation (OAR).
34 *
35 * The license and distribution terms for this file may be
36 * found in the file LICENSE in this distribution or at
37 * http://www.rtems.org/license/LICENSE.
38 */
39
40#ifndef LIBBSP_POWERPC_PSIM_BSP_H
41#define LIBBSP_POWERPC_PSIM_BSP_H
42
53#include <bspopts.h>
54
55#ifdef ASM
56/* Definition of where to store registers in alignment handler */
57#define ALIGN_REGS 0x0140
58
59#else
60#include <rtems.h>
61#include <libcpu/io.h>
62#include <bsp/vectors.h>
64
65#ifdef __cplusplus
66extern "C" {
67#endif
68
69/* Constants */
70
71/*
72 * Information placed in the linkcmds file.
73 */
74
75extern int end; /* last address in the program */
76extern int RAM_END;
77
78extern uint32_t BSP_mem_size;
79
80#define BSP_Convert_decrementer( _value ) ( (unsigned long long) _value )
81
82/* macros */
83#define Processor_Synchronize() \
84 __asm__ (" eieio ")
85
86/*
87 * Network configuration
88 */
89struct rtems_bsdnet_ifconfig;
90
91int rtems_ifsim_attach(struct rtems_bsdnet_ifconfig *ifcfg, int attaching);
92
93#define RTEMS_BSP_NETWORK_DRIVER_NAME "ifsim1"
94#define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_ifsim_attach
95
96/*
97 * Interfaces to required Clock Driver support methods
98 */
99int BSP_disconnect_clock_handler(void);
100int BSP_connect_clock_handler(void);
101
102#ifdef __cplusplus
103}
104#endif
105
106#endif /* ASM */
107
108#define BSP_HAS_NO_VME
109
112#endif
PowerPC Exceptions API.
This header file provides the default definition of BSP_INITIAL_EXTENSION.
This header file defines the RTEMS Classic API.