source: rtems/c/src/lib/libbsp/powerpc/mpc8260ads/include/bsp.h @ 5edbffe

4.104.114.84.95
Last change on this file since 5edbffe was 5edbffe, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 22, 2001 at 2:46:02 PM

01-10-22 Andy Dachs <a.dachs@…>

  • mpc8260ads added as new BSP. tm27 reported not to run at this time.
  • ChangeLog?, Makefile.am, README, aclocal.m4, bsp_specs, clock/.cvsignore, clock/Makefile.am, clock/p_clock.c, configure.in, console/Makefile.am, console/console.c, include/Makefile.am, include/bsp.h, include/coverhd.h, irq/.cvsignore, irq/Makefile.am, irq/irq.c, irq/irq.h, irq/irq_asm.S, irq/irq_init.c, network/Makefile.am, network/README, network/if_hdlcsubr.c, network/if_hdlcsubr.h, network/network.c, start/Makefile.am, start/start.S, startup/Makefile.am, startup/bspstart.c, startup/cpuinit.c, startup/linkcmds, startup/setvec.c, times, vectors/.cvsignore, vectors/Makefile.am, vectors/vectors.S, vectors/vectors.h, vectors/vectors_init.c, wrapup/Makefile.am: New files.
  • Property mode set to 100644
File size: 3.2 KB
Line 
1/*  bsp.h
2 *
3 *  This include file contains all board IO definitions.
4 *
5 *  XXX : put yours in here
6 *
7 *  COPYRIGHT (c) 1989-1999.
8 *  On-Line Applications Research Corporation (OAR).
9 *
10 *  The license and distribution terms for this file may be
11 *  found in the file LICENSE in this distribution or at
12 *  http://www.OARcorp.com/rtems/license.html.
13 *
14 *  $Id$
15 */
16
17#ifndef __NO_BSP_h
18#define __NO_BSP_h
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24#include <rtems.h>
25#include <console.h>
26#include <clockdrv.h>
27#include <mpc8260.h>
28#include <mpc8260/cpm.h>
29#include <mpc8260/mmu.h>
30#include <mpc8260/console.h>
31#include <bsp/irq.h>
32
33/*
34 * Board configuration registers
35 */
36
37typedef struct bcsr
38
39{
40    rtems_unsigned32  bcsr0; /* Board Control and Status Register */
41    rtems_unsigned32  bcsr1;
42    rtems_unsigned32  bcsr2;
43    rtems_unsigned32  bcsr3;
44
45} BCSR;
46
47#define UART1_E 0x02000002              /* bit 6 of BCSR1 */
48#define UART2_E 0x01000001              /* bit 7 of BCSR1 */
49
50#define GP0_LED 0x02000002    /*  bit 6 of BCSR0 */
51#define GP1_LED 0x01000001    /*  bit 7 of BCSR0 */
52
53/*
54 * Network driver configuration
55 */
56struct rtems_bsdnet_ifconfig;
57extern int rtems_enet_driver_attach (struct rtems_bsdnet_ifconfig *config, int attaching);
58#define RTEMS_BSP_NETWORK_DRIVER_NAME   "eth1"
59#define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_enet_driver_attach
60
61
62
63/* miscellaneous stuff assumed to exist */
64
65extern rtems_configuration_table BSP_Configuration;
66/*
67 * We need to decide how much memory will be non-cacheable. This
68 * will mainly be memory that will be used in DMA (network and serial
69 * buffers).
70 */
71/*
72#define NOCACHE_MEM_SIZE 512*1024
73*/
74
75/*
76 *  Define the time limits for RTEMS Test Suite test durations.
77 *  Long test and short test duration limits are provided.  These
78 *  values are in seconds and need to be converted to ticks for the
79 *  application.
80 *
81 */
82
83#define MAX_LONG_TEST_DURATION       300 /* 5 minutes = 300 seconds */
84#define MAX_SHORT_TEST_DURATION      3   /* 3 seconds */
85
86/*
87 *  Stuff for Time Test 27
88 */
89
90#define MUST_WAIT_FOR_INTERRUPT 0
91
92#define Install_tm27_vector( handler ) \
93   do { \
94        static rtems_irq_connect_data scIrqData = { \
95          PPC_IRQ_SCALL, \
96          (rtems_irq_hdl) handler, \
97          NULL, \
98          NULL, \
99          NULL  \
100        }; \
101        BSP_install_rtems_irq_handler (&scIrqData); \
102   } while(0)
103
104#define Cause_tm27_intr() asm volatile ("sc")
105
106#define Clear_tm27_intr()
107
108#define Lower_tm27_intr()
109
110/* Constants */
111/*
112#define RAM_START 0
113#define RAM_END   0x1000000
114*/
115
116
117/*
118 *  Device Driver Table Entries
119 */
120
121/*
122 * NOTE: Use the standard Console driver entry
123 */
124 
125/*
126 * NOTE: Use the standard Clock driver entry
127 */
128
129/*
130 * How many libio files we want
131 */
132
133#define BSP_LIBIO_MAX_FDS       20
134
135/* functions */
136
137void bsp_cleanup( void );
138
139#if 0
140void M8260ExecuteRISC( rtems_unsigned32 command );
141void *M8260AllocateBufferDescriptors( int count );
142void *M8260AllocateRiscTimers( int count );
143extern char M8260DefaultWatchdogFeeder;
144#endif
145
146rtems_isr_entry set_vector(                    /* returns old vector */
147  rtems_isr_entry     handler,                  /* isr routine        */
148  rtems_vector_number vector,                   /* vector number      */
149  int                 type                      /* RTEMS or RAW intr  */
150);
151
152#ifdef __cplusplus
153}
154#endif
155
156#endif
157/* end of include file */
Note: See TracBrowser for help on using the repository browser.