acafhreg.h revision 1.3 1 /* $NetBSD: acafhreg.h,v 1.3 2013/12/26 20:38:11 rkujawa Exp $ */
2
3 /*-
4 * Copyright (c) 2013 The NetBSD Foundation, Inc.
5 * All rights reserved.
6 *
7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Radoslaw Kujawa.
9 *
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
12 * are met:
13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.
18 *
19 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 * POSSIBILITY OF SUCH DAMAGE.
30 */
31
32 #ifndef _AMIGA_ACAFHREG_H_
33
34 #define GAYLE_IDE_BASE 0xDA0000 /* ACA500 has Gayle-compatible IDE */
35 #define ACAFH_CLOCKPORT_BASE 0xD80001
36
37 #define ACAFH_MSB_SHIFT 0xF
38 #define ACAFH_MSB_MASK 0x8000
39
40 #define ACAFH_BASE 0xB00000
41 #define ACAFH_FIRST_REG_OFF 0x3000
42 #define ACAFH_END 0xB3B002
43 /* registers have stride of 16kB */
44 #define ACAFH_CF_DETECT_BOOT 0x0
45 #define ACAFH_CF_DETECT_AUX 0x1
46 #define ACAFH_CF_IRQ_BOOT 0x2
47 #define ACAFH_CF_IRQ_AUX 0x3
48
49 #define ACAFH_VERSION_BIT3 0x4
50 #define ACAFH_VERSION_BIT2 0x5
51 #define ACAFH_VERSION_BIT1 0x6
52 #define ACAFH_VERSION_BIT0 0x7
53
54 #define ACAFH_MAPROM 0x8
55 #define ACAFH_CHIPMAP 0x9
56 #define ACAFH_FLASH_WRITE 0xA
57 #define ACAFH_VBR_MOVE 0xB
58 #define ACAFH_MEMPROBE_AUXIRQ 0xC
59 #define ACAFH_POWERUP 0xD
60 #define ACAFH_C0WIPE 0xE
61
62 #define ACAFH_ROM_BASE 0xA00000
63 #define ACAFH_ROM_ID_OFFSET 0xDC
64 #define ACAFH_ROM_ID_VALUE 0x0ACA0500
65
66 #endif /* _AMIGA_ACAFHREG_H_ */
67
68