source: rtems/c/src/lib/libbsp/powerpc/mpc8260ads/include/bsp.h @ 2a832d8

4.104.114.84.95
Last change on this file since 2a832d8 was 2a832d8, checked in by Ralf Corsepius <ralf.corsepius@…>, on Mar 31, 2004 at 3:47:26 AM

2004-03-31 Ralf Corsepius <ralf_corsepius@…>

  • console/console.c, include/bsp.h, irq/irq.c, network/network.c, startup/bspstart.c: Convert to using c99 fixed size types.
  • 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.rtems.com/license/LICENSE.
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 <bspopts.h>
25
26#include <rtems.h>
27#include <console.h>
28#include <clockdrv.h>
29#include <mpc8260.h>
30#include <mpc8260/cpm.h>
31#include <mpc8260/mmu.h>
32#include <mpc8260/console.h>
33#include <bsp/irq.h>
34
35/*
36 * Board configuration registers
37 */
38
39typedef struct bcsr
40
41{
42    uint32_t          bcsr0; /* Board Control and Status Register */
43    uint32_t          bcsr1;
44    uint32_t          bcsr2;
45    uint32_t          bcsr3;
46
47} BCSR;
48
49#define UART1_E 0x02000002              /* bit 6 of BCSR1 */
50#define UART2_E 0x01000001              /* bit 7 of BCSR1 */
51
52#define GP0_LED 0x02000002    /*  bit 6 of BCSR0 */
53#define GP1_LED 0x01000001    /*  bit 7 of BCSR0 */
54
55/*
56 * Network driver configuration
57 */
58struct rtems_bsdnet_ifconfig;
59extern int rtems_enet_driver_attach (struct rtems_bsdnet_ifconfig *config, int attaching);
60#define RTEMS_BSP_NETWORK_DRIVER_NAME   "eth1"
61#define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_enet_driver_attach
62
63
64
65/* miscellaneous stuff assumed to exist */
66
67extern rtems_configuration_table BSP_Configuration;
68/*
69 * We need to decide how much memory will be non-cacheable. This
70 * will mainly be memory that will be used in DMA (network and serial
71 * buffers).
72 */
73/*
74#define NOCACHE_MEM_SIZE 512*1024
75*/
76
77/*
78 *  Define the time limits for RTEMS Test Suite test durations.
79 *  Long test and short test duration limits are provided.  These
80 *  values are in seconds and need to be converted to ticks for the
81 *  application.
82 *
83 */
84
85#define MAX_LONG_TEST_DURATION       300 /* 5 minutes = 300 seconds */
86#define MAX_SHORT_TEST_DURATION      3   /* 3 seconds */
87
88/*
89 *  Stuff for Time Test 27
90 */
91
92#define MUST_WAIT_FOR_INTERRUPT 0
93
94#define Install_tm27_vector( handler ) \
95   do { \
96        static rtems_irq_connect_data scIrqData = { \
97          PPC_IRQ_SCALL, \
98          (rtems_irq_hdl) handler, \
99          NULL, \
100          NULL, \
101          NULL  \
102        }; \
103        BSP_install_rtems_irq_handler (&scIrqData); \
104   } while(0)
105
106#define Cause_tm27_intr() asm volatile ("sc")
107
108#define Clear_tm27_intr()
109
110#define Lower_tm27_intr()
111
112/* Constants */
113/*
114#define RAM_START 0
115#define RAM_END   0x1000000
116*/
117
118
119/*
120 *  Device Driver Table Entries
121 */
122
123/*
124 * NOTE: Use the standard Console driver entry
125 */
126 
127/*
128 * NOTE: Use the standard Clock driver entry
129 */
130
131/*
132 * How many libio files we want
133 */
134
135#define BSP_LIBIO_MAX_FDS       20
136
137/* functions */
138
139void bsp_cleanup( void );
140
141#if 0
142void M8260ExecuteRISC( uint32_t         command );
143void *M8260AllocateBufferDescriptors( int count );
144void *M8260AllocateRiscTimers( int count );
145extern char M8260DefaultWatchdogFeeder;
146#endif
147
148rtems_isr_entry set_vector(                    /* returns old vector */
149  rtems_isr_entry     handler,                  /* isr routine        */
150  rtems_vector_number vector,                   /* vector number      */
151  int                 type                      /* RTEMS or RAW intr  */
152);
153
154#ifdef __cplusplus
155}
156#endif
157
158#endif
159/* end of include file */
Note: See TracBrowser for help on using the repository browser.