source: rtems/c/src/lib/libbsp/m68k/mvme147/include/bsp.h @ 75c9e48d

4.104.115
Last change on this file since 75c9e48d was 75c9e48d, checked in by Joel Sherrill <joel.sherrill@…>, on 09/18/08 at 17:38:43

2008-09-18 Joel Sherrill <joel.sherrill@…>

  • include/bsp.h: Remove unnecessary boilerplate comments. Eliminate use of EXTERN.
  • Property mode set to 100644
File size: 4.0 KB
Line 
1/*  bsp.h
2 *
3 *  This include file contains all MVME147 board IO definitions.
4 *
5 *  COPYRIGHT (c) 1989-1999.
6 *  On-Line Applications Research Corporation (OAR).
7 *
8 *  The license and distribution terms for this file may be
9 *  found in the file LICENSE in this distribution or at
10 *  http://www.rtems.com/license/LICENSE.
11 *
12 *  MVME147 port for TNI - Telecom Bretagne
13 *  by Dominique LE CAMPION (Dominique.LECAMPION@enst-bretagne.fr)
14 *  May 1996
15 *
16 *  $Id$
17 */
18
19#ifndef _BSP_H
20#define _BSP_H
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
26#include <bspopts.h>
27
28#include <rtems.h>
29#include <rtems/clockdrv.h>
30#include <rtems/console.h>
31#include <rtems/iosupp.h>
32
33/* Constants */
34
35#define RAM_START 0x00005000
36#define RAM_END   0x00400000
37
38  /* MVME 147 Peripheral controller chip
39     see MVME147/D1, 3.4 */
40
41struct pcc_map {
42  /* 32 bit registers */
43  uint32_t         dma_table_address;            /* 0xfffe1000 */
44  uint32_t         dma_data_address;             /* 0xfffe1004 */
45  uint32_t         dma_bytecount;                /* 0xfffe1008 */
46  uint32_t         dma_data_holding;             /* 0xfffe100c */
47
48  /* 16 bit registers */
49  uint16_t         timer1_preload;               /* 0xfffe1010 */
50  uint16_t         timer1_count;                 /* 0xfffe1012 */
51  uint16_t         timer2_preload;               /* 0xfffe1014 */
52  uint16_t         timer2_count;                 /* 0xfffe1016 */
53
54  /* 8 bit registers */
55  uint8_t         timer1_int_control;            /* 0xfffe1018 */
56  uint8_t         timer1_control;                /* 0xfffe1019 */
57  uint8_t         timer2_int_control;            /* 0xfffe101a */
58  uint8_t         timer2_control;                /* 0xfffe101b */
59
60  uint8_t         acfail_int_control;            /* 0xfffe101c */
61  uint8_t         watchdog_control;              /* 0xfffe101d */
62
63  uint8_t         printer_int_control;           /* 0xfffe101e */
64  uint8_t         printer_control;               /* 0xfffe102f */
65
66  uint8_t         dma_int_control;               /* 0xfffe1020 */
67  uint8_t         dma_control;                   /* 0xfffe1021 */
68  uint8_t         bus_error_int_control;         /* 0xfffe1022 */
69  uint8_t         dma_status;                    /* 0xfffe1023 */
70  uint8_t         abort_int_control;             /* 0xfffe1024 */
71  uint8_t         table_address_function_code;   /* 0xfffe1025 */
72  uint8_t         serial_port_int_control;       /* 0xfffe1026 */
73  uint8_t         general_purpose_control;       /* 0xfffe1027 */
74  uint8_t         lan_int_control;               /* 0xfffe1028 */
75  uint8_t         general_purpose_status;        /* 0xfffe1029 */
76  uint8_t         scsi_port_int_control;         /* 0xfffe102a */
77  uint8_t         slave_base_address;            /* 0xfffe102b */
78  uint8_t         software_int_1_control;        /* 0xfffe102c */
79  uint8_t         int_base_vector;               /* 0xfffe102d */
80  uint8_t         software_int_2_control;        /* 0xfffe102e */
81  uint8_t         revision_level;                /* 0xfffe102f */
82};
83
84#define pcc      ((volatile struct pcc_map * const) 0xfffe1000)
85
86#define z8530 0xfffe3001
87
88/* interrupt vectors - see MVME146/D1 4.14 */
89#define PCC_BASE_VECTOR        0x40 /* First user int */
90#define SCC_VECTOR             PCC_BASE_VECTOR+3
91#define TIMER_1_VECTOR         PCC_BASE_VECTOR+8
92#define TIMER_2_VECTOR         PCC_BASE_VECTOR+9
93#define SOFT_1_VECTOR          PCC_BASE_VECTOR+10
94#define SOFT_2_VECTOR          PCC_BASE_VECTOR+11
95
96#define USE_CHANNEL_A   1                /* 1 = use channel A for console */
97#define USE_CHANNEL_B   0                /* 1 = use channel B for console */
98
99#if (USE_CHANNEL_A == 1)
100#define CONSOLE_CONTROL  0xfffe3002
101#define CONSOLE_DATA     0xfffe3003
102#elif (USE_CHANNEL_B == 1)
103#define CONSOLE_CONTROL  0xfffe3000
104#define CONSOLE_DATA     0xfffe3001
105#endif
106
107extern m68k_isr_entry M68Kvec[];   /* vector table address */
108
109/* functions */
110
111m68k_isr_entry set_vector(
112  rtems_isr_entry     handler,
113  rtems_vector_number vector,
114  int                 type
115);
116
117#ifdef __cplusplus
118}
119#endif
120
121#endif
Note: See TracBrowser for help on using the repository browser.