1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
|
/* $NetBSD: io.h,v 1.3 1996/03/28 21:28:21 mark Exp $ */
/*
* Copyright (c) 1994 Mark Brinicombe.
* Copyright (c) 1994 Brini.
* All rights reserved.
*
* This code is derived from software written for Brini by Mark Brinicombe
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by Brini.
* 4. The name of the company nor the name of the author may be used to
* endorse or promote products derived from this software without specific
* prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY BRINI ``AS IS'' AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* IN NO EVENT SHALL BRINI OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* RiscBSD kernel project
*
* io.h
*
* IO registers
*
* Created : 10/10/94
*/
/* Some of these addresses are frightening and need cleaning up */
/*
* The podule addresses should be removed and localised for the podules.
* This is difficuly as the podule addresses are interleaved with the
* other IO devices thus making it difficult to separate them.
*/
#define IO_CONF_BASE 0xf6000000
#define IO_HW_BASE 0x03000000
#define IO_BASE 0xf6200000
#define COMBO_BASE 0xf6210000
#define IDE_CONTROLLER_BASE 0xf62107c0
#define FLOPPY_CONTROLLER_BASE 0xf6210fc0
#define FLOPPY_DACK 0x00002000
#define SERIAL0_CONTROLLER_BASE 0xf6210fe0
#define SERIAL1_CONTROLLER_BASE 0xf6210be0
#define PARALLEL_CONTROLLER_BASE 0xf62109e0
#define IO_MOUSE_BUTTONS 0xf6010000
#ifdef RC7500
#define IDE_CONTROLLER_BASE2 0xf622B000
/*
* a bit low turns attached LED on
*/
#define LEDPORT (IO_BASE + 0x0002B060)
#define LED0 0x01
#define LED1 0x02
#define LED2 0x04
#define LED3 0x08
#define LED4 0x10
#define LED5 0x20
#define LED6 0x40
#define LED7 0x80
#define LEDOFF 0x00
#define LEDALL 0xFF
#endif
#define EASI_HW_BASE 0x08000000
#define EASI_BASE 0xf8000000
#define EASI_SIZE 0x01000000
#define SIMPLE_PODULE_SIZE 0x00004000
#define MOD_PODULE_BASE 0xf6200000
#define SYNC_PODULE_BASE 0xf63c0000
#define SYNC_PODULE_HW_BASE 0x033c0000
#define FAST_PODULE_BASE 0xf6340000
#define MEDIUM_PODULE_BASE 0xf60c0000
#define SLOW_PODULE_BASE 0xf6040000
#define PODULE_GAP 0x00020000
#define MAX_PODULES 8
#define NETSLOT_BASE 0xf622b000
#define MAX_NETSLOTS 1
#define MOUSE_BUTTON_RIGHT 0x10
#define MOUSE_BUTTON_MIDDLE 0x20
#define MOUSE_BUTTON_LEFT 0x40
/* End of io.h */
|