RTEMS 6.1-rc7
Loading...
Searching...
No Matches
bsp.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-2-Clause */
2
11/*
12 * This include file contains all board IO definitions.
13 */
14
25/*
26 * COPYRIGHT (c) 1989-2014.
27 * On-Line Applications Research Corporation (OAR).
28 *
29 * Redistribution and use in source and binary forms, with or without
30 * modification, are permitted provided that the following conditions
31 * are met:
32 * 1. Redistributions of source code must retain the above copyright
33 * notice, this list of conditions and the following disclaimer.
34 * 2. Redistributions in binary form must reproduce the above copyright
35 * notice, this list of conditions and the following disclaimer in the
36 * documentation and/or other materials provided with the distribution.
37 *
38 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
39 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
40 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
41 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
42 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
43 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
44 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
45 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
46 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
47 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
48 * POSSIBILITY OF SUCH DAMAGE.
49 */
50
51#ifndef LIBBSP_POWERPC_MPC8260ADS_BSP_H
52#define LIBBSP_POWERPC_MPC8260ADS_BSP_H
53
54#include <bspopts.h>
56
57#include <rtems.h>
58#include <mpc8260.h>
59#include <mpc8260/cpm.h>
60#include <mpc8260/mmu.h>
61#include <mpc8260/console.h>
62#include <bsp/irq.h>
63#include <bsp/vectors.h>
64
65#ifdef __cplusplus
66extern "C" {
67#endif
68
69/*
70 * Board configuration registers
71 */
72
73typedef struct bcsr
74
75{
76 uint32_t bcsr0; /* Board Control and Status Register */
77 uint32_t bcsr1;
78 uint32_t bcsr2;
79 uint32_t bcsr3;
80
81} BCSR;
82
83/*
84 * Network driver configuration
85 */
86struct rtems_bsdnet_ifconfig;
87extern int rtems_enet_driver_attach (struct rtems_bsdnet_ifconfig *config, int attaching);
88#define RTEMS_BSP_NETWORK_DRIVER_NAME "eth1"
89#define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_enet_driver_attach
90
91/* miscellaneous stuff assumed to exist */
92
93/*
94 * We need to decide how much memory will be non-cacheable. This
95 * will mainly be memory that will be used in DMA (network and serial
96 * buffers).
97 */
98/*
99#define NOCACHE_MEM_SIZE 512*1024
100*/
101
102/* functions */
103
104#if 0
105void M8260ExecuteRISC( uint32_t command );
106void *M8260AllocateBufferDescriptors( int count );
107void *M8260AllocateRiscTimers( int count );
108extern char M8260DefaultWatchdogFeeder;
109#endif
110
111/*
112 * Prototypes for items shared across file boundaries in the BSP
113 */
114extern uint32_t bsp_serial_per_sec;
115void *bsp_idle_thread( uintptr_t ignored );
116void cpu_init(void);
117int mbx8xx_console_get_configuration(void);
118
119#ifdef __cplusplus
120}
121#endif
122
125#endif
PowerPC Exceptions API.
This header file provides the default definition of BSP_INITIAL_EXTENSION.
void * bsp_idle_thread(uintptr_t ignored)
Optimized idle task.
Definition: bspidle.c:39
This header file defines the RTEMS Classic API.
Definition: bsp.h:75
Definition: deflate.c:114