source: rtems/c/src/lib/libbsp/powerpc/score603e/include/gen1.h @ 7358d5b1

4.104.114.84.95
Last change on this file since 7358d5b1 was 7358d5b1, checked in by Joel Sherrill <joel.sherrill@…>, on 10/12/01 at 21:06:05

2001-10-12 Joel Sherrill <joel@…>

  • PCI_bus/PCI.h, clock/clock.c, console/85c30.c, console/console.c, console/consolebsp.h, console/consolereserveresources.c, console/tbl85c30.c, include/bsp.h, include/coverhd.h, include/gen1.h, include/gen2.h, startup/82378zb.c, startup/FPGA.c, startup/bspstart.c, startup/genpvec.c, startup/setvec.c, startup/vmeintr.c, timer/timer.c: Fixed typo.
  • Property mode set to 100644
File size: 5.2 KB
Line 
1/*  Gen1.h
2 *
3 *  This include file contains all Generation 1 board addreses
4 *
5 *  COPYRIGHT (c) 1989-1997.
6 *  On-Line Applications Research Corporation (OAR).
7 *
8 *  The license and distribution terms for this file may in
9 *  the file LICENSE in this distribution or at
10 *  http://www.OARcorp.com/rtems/license.html.
11 *
12 *  $Id:
13 */
14
15#ifndef __SCORE_GENERATION_1_h
16#define __SCORE_GENERATION_1_h
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22#include <rtems.h>
23
24/*
25 * ISA/PCI I/O space.
26 */
27#define SCORE603E_VME_JUMPER_ADDR      0x00e20000
28#define SCORE603E_FLASH_BASE_ADDR      0x01000000
29#define SCORE603E_ISA_PCI_IO_BASE      0x80000000
30#define SCORE603E_TIMER_PORT_C         0x80000278
31#define SCORE603E_TIMER_INT_ACK        0x8000027a
32#define SCORE603E_TIMER_PORT_B         0x8000027b
33#define SCORE603E_TIMER_PORT_A         0x8000027c
34#define SCORE603E_85C30_CTRL_1         ((volatile rtems_unsigned8 *)0x800002f8)
35#define SCORE603E_85C30_INT_ACK        ((volatile rtems_unsigned8 *)0x800002fa)
36#define SCORE603E_85C30_CTRL_0         ((volatile rtems_unsigned8 *)0x800002fb)
37#define SCORE603E_85C30_DATA_1         ((volatile rtems_unsigned8 *)0x800002fc)
38#define SCORE603E_85C30_DATA_0         ((volatile rtems_unsigned8 *)0x800002ff)
39#define SCORE603E_85C30_CTRL_3         ((volatile rtems_unsigned8 *)0x800003f8)
40#define SCORE603E_85C30_CTRL_2         ((volatile rtems_unsigned8 *)0x800003fb)
41#define SCORE603E_85C30_DATA_3         ((volatile rtems_unsigned8 *)0x800003fc)
42#define SCORE603E_85C30_DATA_2         ((volatile rtems_unsigned8 *)0x800003ff)
43#define SCORE603E_PCI_IO_CFG_ADDR      0x80000cf8
44#define SCORE603E_PCI_IO_CFG_DATA      0x80000cfc
45
46#define SCORE603E_UNIVERSE_BASE        0x80030000
47#define SCORE603E_IO_VME_UNIVERSE_BASE 0x80007000
48#define SCORE603E_PCI_MEM_BASE         0xc0000000
49#define SCORE603E_NVRAM_BASE           0xc00f0000
50#define SCORE603E_RTC_ADDRESS          ((volatile unsigned char *)0xc00f1ff8)
51#define SCORE603E_JP1_JP2_PROM_BASE    0xfff00000
52#define SCORE603E_NOT_JP1_2_FLASH_BASE 0xff800000
53
54#define SCORE603E_VME_A16_OFFSET       0x04000000
55#define SCORE603E_VME_A16_BASE         (SCORE603E_PCI_MEM_BASE+SCORE603E_VME_A16_OFFSET)
56
57#define SCORE603E_BOARD_CTRL_REG       ((volatile rtems_unsigned32*)0x80000800)
58#define SCORE603E_BRD_FLASH_DISABLE_MASK     0x02000000
59
60 /*
61 *  Z85C30 Definations for the 232 interface.
62 */
63#define SCORE603E_85C30_0_CLOCK     10000000         /* 10,000,000 */
64#define SCORE603E_85C30_0_CLOCK_X       16 
65
66/*
67 *  Z85C30 Definations for the 422 interface.
68 */
69#define SCORE603E_85C30_1_CLOCK     10000000         /* 10,000,000 */
70#define SCORE603E_85C30_1_CLOCK_X       16 
71
72
73#define SCORE603E_UNIVERSE_CHIP_ID     0x000010E3
74
75/*
76 *  Score603e Interupt Definations.
77 */
78
79/*
80 * First Score Unique IRQ
81 */
82#define Score_IRQ_First ( PPC_IRQ_LAST +  1 )
83
84/*
85 * 82378ZB IRQ definations.
86 */
87#define SCORE603E_IRQ00_82378ZB   ( Score_IRQ_First +  0 ) 
88#define SCORE603E_IRQ01_82378ZB   ( Score_IRQ_First +  1 ) 
89#define SCORE603E_IRQ02_82378ZB   ( Score_IRQ_First +  2 )
90#define SCORE603E_IRQ03_82378ZB   ( Score_IRQ_First +  3 )
91#define SCORE603E_IRQ04_82378ZB   ( Score_IRQ_First +  4 )
92#define SCORE603E_IRQ05_82378ZB   ( Score_IRQ_First +  5 )
93#define SCORE603E_IRQ06_82378ZB   ( Score_IRQ_First +  6 )
94#define SCORE603E_IRQ07_82378ZB   ( Score_IRQ_First +  7 )
95#define SCORE603E_IRQ08_82378ZB   ( Score_IRQ_First +  8 )
96#define SCORE603E_IRQ09_82378ZB   ( Score_IRQ_First +  9 )
97#define SCORE603E_IRQ10_82378ZB   ( Score_IRQ_First + 10 )
98#define SCORE603E_IRQ11_82378ZB   ( Score_IRQ_First + 11 )
99#define SCORE603E_IRQ12_82378ZB   ( Score_IRQ_First + 12 )
100#define SCORE603E_IRQ13_82378ZB   ( Score_IRQ_First + 13 )
101#define SCORE603E_IRQ14_82378ZB   ( Score_IRQ_First + 14 )
102#define SCORE603E_IRQ15_82378ZB   ( Score_IRQ_First + 15 )
103
104#define MAX_BOARD_IRQS             SCORE603E_IRQ15_82378ZB
105
106#define SCORE603E_85C30_1_IRQ          SCORE603E_IRQ03_82378ZB   
107#define SCORE603E_85C30_0_IRQ          SCORE603E_IRQ04_82378ZB
108#define SCORE603E_UNIVERSE_IRQ         SCORE603E_IRQ12_82378ZB
109
110
111#define Write_82378ZB( _offset, _data ) { \
112  volatile rtems_unsigned8 *addr;         \
113  addr = (volatile rtems_unsigned8 *)(SCORE603E_ISA_PCI_IO_BASE + _offset);\
114  *addr = _data;                         }
115
116#define Read_82378ZB( _offset, _data ) { \
117  volatile rtems_unsigned8 *addr;         \
118  addr = (volatile rtems_unsigned8 *)(SCORE603E_ISA_PCI_IO_BASE + _offset);\
119  _data = *addr;                         }
120
121
122/*
123 *  BSP_TIMER_AVG_OVERHEAD and BSP_TIMER_LEAST_VALID for the shared timer
124 *  driver.
125 */
126
127#define BSP_TIMER_AVG_OVERHEAD   4  /* It typically takes xx clicks        */
128                                    /*     to start/stop the timer.        */
129#define BSP_TIMER_LEAST_VALID    1  /* Don't trust a value lower than this */
130
131/*
132 *  Convert decrement value to tenths of microsecnds (used by
133 *  shared timer driver).
134 *
135 *    + CPU has a 66.67 Mhz bus,
136 *    + There are 4 bus cycles per click
137 *    + We return value in 1/10 microsecond units.
138 *   Modified following equation to integer equation to remove
139 *   floating point math.
140 *   (int) ((float)(_value) / ((66.67 * 0.1) / 4.0))
141 */
142
143#define BSP_Convert_decrementer( _value ) \
144  (int) (((_value) * 4000) / 6667)
145
146#ifdef __cplusplus
147}
148#endif
149
150#endif
151
152
153
154
Note: See TracBrowser for help on using the repository browser.