source: rtems/c/src/lib/libbsp/powerpc/mpc8260ads/include/bsp.h @ 9cff822a

4.115
Last change on this file since 9cff822a was 9cff822a, checked in by Joel Sherrill <joel.sherrill@…>, on 07/16/15 at 15:40:05

Most bsp.h: Switch to LIBBSP_@CPU@_@BSP_FAMILY@_H for guard

This was done by the following script run from libbsp:

find * -name bsp.h | xargs -e grep -l "#ifndef.*_BSP_H" | while read b
do

echo $b
cpu=echo $b | cut -d'/' -f1 | tr '[:lower:]' '[:upper:]'
bsp=echo $b | cut -d'/' -f2 | tr '[:lower:]' '[:upper:]'
g="LIBBSP_${cpu}_${bsp}_BSP_H"
# echo $g
sed -e "s/ifndef _BSP_H/ifndef ${g}/" \

-e "s/define _BSP_H/define ${g}/" \

-i $b

done

  • Property mode set to 100644
File size: 1.9 KB
Line 
1/*
2 *  This include file contains all board IO definitions.
3 */
4
5/*
6 *  COPYRIGHT (c) 1989-2014.
7 *  On-Line Applications Research Corporation (OAR).
8 *
9 *  The license and distribution terms for this file may be
10 *  found in the file LICENSE in this distribution or at
11 *  http://www.rtems.org/license/LICENSE.
12 */
13
14#ifndef LIBBSP_POWERPC_MPC8260ADS_BSP_H
15#define LIBBSP_POWERPC_MPC8260ADS_BSP_H
16
17#include <bspopts.h>
18#include <bsp/default-initial-extension.h>
19
20#include <rtems.h>
21#include <rtems/console.h>
22#include <rtems/clockdrv.h>
23#include <mpc8260.h>
24#include <mpc8260/cpm.h>
25#include <mpc8260/mmu.h>
26#include <mpc8260/console.h>
27#include <bsp/irq.h>
28#include <bsp/vectors.h>
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
34/*
35 * Board configuration registers
36 */
37
38typedef struct bcsr
39
40{
41    uint32_t          bcsr0; /* Board Control and Status Register */
42    uint32_t          bcsr1;
43    uint32_t          bcsr2;
44    uint32_t          bcsr3;
45
46} BCSR;
47
48/*
49 * Network driver configuration
50 */
51struct rtems_bsdnet_ifconfig;
52extern int rtems_enet_driver_attach (struct rtems_bsdnet_ifconfig *config, int attaching);
53#define RTEMS_BSP_NETWORK_DRIVER_NAME   "eth1"
54#define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_enet_driver_attach
55
56/* miscellaneous stuff assumed to exist */
57
58/*
59 * We need to decide how much memory will be non-cacheable. This
60 * will mainly be memory that will be used in DMA (network and serial
61 * buffers).
62 */
63/*
64#define NOCACHE_MEM_SIZE 512*1024
65*/
66
67/* functions */
68
69#if 0
70void M8260ExecuteRISC( uint32_t         command );
71void *M8260AllocateBufferDescriptors( int count );
72void *M8260AllocateRiscTimers( int count );
73extern char M8260DefaultWatchdogFeeder;
74#endif
75
76/*
77 * Prototypes for items shared across file boundaries in the BSP
78 */
79extern uint32_t bsp_serial_per_sec;
80void *bsp_idle_thread( uintptr_t ignored );
81void  cpu_init(void);
82int mbx8xx_console_get_configuration(void);
83
84#ifdef __cplusplus
85}
86#endif
87
88#endif
Note: See TracBrowser for help on using the repository browser.