RTEMS: bsps/powerpc/mpc8260ads/include/bsp.h Source File

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
bsp.h
Go to the documentation of this file.
1
9/*
10 * This include file contains all board IO definitions.
11 */
12
23/*
24 * COPYRIGHT (c) 1989-2014.
25 * On-Line Applications Research Corporation (OAR).
26 *
27 * The license and distribution terms for this file may be
28 * found in the file LICENSE in this distribution or at
29 * http://www.rtems.org/license/LICENSE.
30 */
31
32#ifndef LIBBSP_POWERPC_MPC8260ADS_BSP_H
33#define LIBBSP_POWERPC_MPC8260ADS_BSP_H
34
35#include <bspopts.h>
36#include <bsp/default-initial-extension.h>
37
38#include <rtems.h>
39#include <mpc8260.h>
40#include <mpc8260/cpm.h>
41#include <mpc8260/mmu.h>
42#include <mpc8260/console.h>
43#include <bsp/irq.h>
44#include <bsp/vectors.h>
45
46#ifdef __cplusplus
47extern "C" {
48#endif
49
50/*
51 * Board configuration registers
52 */
53
54 typedef struct bcsr
55
56{
57 uint32_t bcsr0; /* Board Control and Status Register */
58 uint32_t bcsr1;
59 uint32_t bcsr2;
60 uint32_t bcsr3;
61
62} BCSR;
63
64/*
65 * Network driver configuration
66 */
67struct rtems_bsdnet_ifconfig;
68extern int rtems_enet_driver_attach (struct rtems_bsdnet_ifconfig *config, int attaching);
69#define RTEMS_BSP_NETWORK_DRIVER_NAME "eth1"
70#define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_enet_driver_attach
71
72/* miscellaneous stuff assumed to exist */
73
74/*
75 * We need to decide how much memory will be non-cacheable. This
76 * will mainly be memory that will be used in DMA (network and serial
77 * buffers).
78 */
79/*
80#define NOCACHE_MEM_SIZE 512*1024
81*/
82
83/* functions */
84
85#if 0
86void M8260ExecuteRISC( uint32_t command );
87void *M8260AllocateBufferDescriptors( int count );
88void *M8260AllocateRiscTimers( int count );
89extern char M8260DefaultWatchdogFeeder;
90#endif
91
92/*
93 * Prototypes for items shared across file boundaries in the BSP
94 */
95extern uint32_t bsp_serial_per_sec;
96void *bsp_idle_thread( uintptr_t ignored );
97void cpu_init(void);
98int mbx8xx_console_get_configuration(void);
99
100#ifdef __cplusplus
101}
102#endif
103
106#endif
vectors.h
PowerPC Exceptions API.
default-initial-extension.h
DEFAULT_INITIAL_EXTENSION Support.
bsp_idle_thread
void * bsp_idle_thread(uintptr_t ignored)
Optimized idle task.
Definition: bspidle.c:26
rtems.h
bcsr
Definition: bsp.h:56
config_s
Definition: deflate.c:115