xref: /netbsd/sys/arch/amiga/dev/acafhreg.h (revision dec45867)
1 /*	$NetBSD: acafhreg.h,v 1.4 2014/01/03 00:33:06 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 #include <amiga/amiga/gayle.h>
33 
34 #ifndef _AMIGA_ACAFHREG_H_
35 
36 #define ACAFH_IDE_BASE		GAYLE_IDE_BASE /* ACA500 has Gayle-compatible IDE */
37 #define ACAFH_CLOCKPORT_BASE	0xD80001
38 
39 #define ACAFH_MSB_SHIFT		0xF
40 #define ACAFH_MSB_MASK		0x8000
41 
42 #define ACAFH_BASE		0xB00000
43 #define ACAFH_FIRST_REG_OFF	0x3000
44 #define ACAFH_END		0xB3B002
45 /* registers have stride of 16kB */
46 #define ACAFH_CF_DETECT_BOOT		0x0
47 #define ACAFH_CF_DETECT_AUX		0x1
48 #define ACAFH_CF_IRQ_BOOT		0x2
49 #define ACAFH_CF_IRQ_AUX		0x3
50 
51 #define ACAFH_VERSION_BIT3		0x4
52 #define ACAFH_VERSION_BIT2		0x5
53 #define ACAFH_VERSION_BIT1		0x6
54 #define ACAFH_VERSION_BIT0		0x7
55 
56 #define ACAFH_MAPROM			0x8
57 #define ACAFH_CHIPMAP			0x9
58 #define ACAFH_FLASH_WRITE		0xA
59 #define ACAFH_VBR_MOVE			0xB
60 #define ACAFH_MEMPROBE_AUXIRQ		0xC
61 #define ACAFH_POWERUP			0xD
62 #define ACAFH_C0WIPE			0xE
63 
64 #define ACAFH_ROM_BASE		0xA00000
65 #define ACAFH_ROM_ID_OFFSET		0xDC
66 #define ACAFH_ROM_ID_VALUE		0x0ACA0500
67 
68 #endif /* _AMIGA_ACAFHREG_H_ */
69 
70