source: rtems/c/src/lib/libbsp/powerpc/ss555/include/bsp.h @ 9b4422a2

4.115
Last change on this file since 9b4422a2 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • Property mode set to 100644
File size: 2.1 KB
Line 
1/*  bsp.h
2 *
3 *  This include file contains all board IO definitions.
4 *
5 *  This file includes definitions for the Intec SS555.
6 *
7 *
8 *  SS555 port sponsored by Defence Research and Development Canada - Suffield
9 *  Copyright (C) 2004, Real-Time Systems Inc. (querbach@realtime.bc.ca)
10 *
11 *  Derived from c/src/lib/libbsp/powerpc/mbx8xx/include/bsp.h:
12 *
13 *  COPYRIGHT (c) 1989-1998.
14 *  On-Line Applications Research Corporation (OAR).
15 *
16 *  The license and distribution terms for this file may be
17 *  found in the file LICENSE in this distribution or at
18 *  http://www.rtems.com/license/LICENSE.
19 */
20
21#ifndef _BSP_H
22#define _BSP_H
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28#include <bspopts.h>
29
30#include <rtems.h>
31#include <rtems/console.h>
32#include <rtems/clockdrv.h>
33#include <mpc5xx.h>
34#include <mpc5xx/console.h>
35#include <libcpu/vectors.h>
36#include <bsp/irq.h>
37
38/*
39 * Clock definitions
40 */
41
42#define BSP_CRYSTAL_HZ   4000000        /* crystal frequency, Hz */
43#define BSP_CLOCK_HZ    40000000        /* CPU clock frequency, Hz
44
45/*
46 * I/O definitions
47 *
48 * The SS555 board includes a CPLD to control on-board features and
49 * off-board devices.
50 */
51typedef struct cpld_ {
52  uint8_t       cs3a[32];               /* Chip select 3A */
53  uint8_t       pad0[0x200000 - 0x000020];
54
55  uint8_t       cs3b[32];               /* Chip select 3B */
56  uint8_t       pad2[0x400000 - 0x200020];
57
58  uint8_t       cs3c[32];               /* Chip select 3C */
59  uint8_t       pad4[0x600000 - 0x400020];
60
61  uint8_t       cs3d[32];               /* Chip select 3D */
62  uint8_t       pad6[0x800000 - 0x600020];
63
64  uint8_t       serial_ints;    /* Enable/disable serial interrupts */
65  uint8_t       serial_resets;  /* Enable/disable serial resets */
66  uint8_t       serial_ack;     /* Acknowledge serial transfers */
67  uint8_t       pad8[0xA00000 - 0x800003];
68
69  uint8_t       iflash_writess; /* Enable/disable internal-flash writes */
70  uint8_t       nflash_writess; /* Enable/disable NAND-flash writes */
71  uint8_t       padA[0xC00000 - 0xA00002];
72} cpld_t;
73
74extern volatile cpld_t cpld;              /* defined in linkcmds */
75
76/* clock/p_clock.c */
77extern int BSP_disconnect_clock_handler (void);
78
79extern int BSP_connect_clock_handler (rtems_irq_hdl hdl);
80
81#ifdef __cplusplus
82}
83#endif
84
85#endif
Note: See TracBrowser for help on using the repository browser.