source: rtems/bsps/powerpc/psim/include/bsp.h

Last change on this file was c991eeec, checked in by Sebastian Huber <sebastian.huber@…>, on Mar 4, 2019 at 2:32:15 PM

bsps: Adjust bsp.h Doxygen groups

Update #3706.

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