1 /* Register offsets and default address for the SPIM-compatible console
2    device.
3    Copyright 2001 Brian R. Gaeke.
4    Copyright 2002, 2003 Paul Twohey.
5 
6 This file is part of VMIPS.
7 
8 VMIPS is free software; you can redistribute it and/or modify it
9 under the terms of the GNU General Public License as published by the
10 Free Software Foundation; either version 2 of the License, or (at your
11 option) any later version.
12 
13 VMIPS is distributed in the hope that it will be useful, but
14 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15 or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
16 for more details.
17 
18 You should have received a copy of the GNU General Public License along
19 with VMIPS; if not, write to the Free Software Foundation, Inc.,
20 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
21 
22 #ifndef _SPIMCONSREG_H_
23 #define _SPIMCONSREG_H_
24 
25 #include "devreg.h"
26 
27 /* default physical spim base address */
28 #define SPIM_BASE           0x02000000
29 
30 /* default virtual (KSEG0) spim address */
31 #define SPIM_ADDR           0xa2000000
32 
33 /* register offsets */
34 #define KEYBOARD_1_CONTROL  0x00
35 #define KEYBOARD_1_DATA     0x04
36 #define DISPLAY_1_CONTROL   0x08
37 #define DISPLAY_1_DATA      0x0C
38 #define KEYBOARD_2_CONTROL  0x10
39 #define KEYBOARD_2_DATA     0x14
40 #define DISPLAY_2_CONTROL   0x18
41 #define DISPLAY_2_DATA      0x1C
42 #define CLOCK_CONTROL       0x20
43 
44 #endif /* _SPIMCONSREG_H_ */
45