1 /* $NetBSD: coscreg.h,v 1.2 1997/01/03 23:24:48 mark Exp $ */
4 * Copyright (c) 1996 Mark Brinicombe
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
15 * 3. All advertising materials mentioning features or use of this software
16 * must display the following acknowledgement:
17 * This product includes software developed by Mark Brinicombe
18 * for the NetBSD Project.
19 * 4. Neither the name of the University nor the names of its contributors
20 * may be used to endorse or promote products derived from this software
21 * without specific prior written permission.
23 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
24 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
25 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
26 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
27 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
28 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
32 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36 * Termination and DMA enable registers provided by
37 * Andreas Gandor <andi@knipp.de>
43 #include <acorn32/podulebus/escvar.h>
45 typedef volatile unsigned short vu_short
;
47 typedef struct cosc_regmap
{
55 typedef cosc_regmap_t
*cosc_regmap_p
;
58 #define COSC_CONTROL_CHIPRESET
59 #define COSC_CONTROL_INTEN
61 #define COSC_CONTROL_LED
64 #define COSC_CONFIG_CONTROL_REG1 0x0ff0
65 #define COSC_CONFIG_CONTROL_REG1_MASK 0x97
66 #define COSC_CONFIG_CONTROL_REG2 0x0ff4
67 #define COSC_CONFIG_CONTROL_REG2_MASK 0x07
68 #define COSC_CONFIG_CONTROL_REG3 0x0ff8
69 #define COSC_CONFIG_CONTROL_REG3_MASK 0x83
70 #define COSC_CONFIG_CONTROL_REG4 0x0ffc
71 #define COSC_CONFIG_CONTROL_REG4_MASK 0xec
72 #define COSC_CONFIG_TERMINATION 0x1000
73 #define COSC_CONFIG_TERMINATION_ON 0x01
74 #define COSC_CONFIG_FIRST_SCANNED 0x1040 /* Used by RiscOS */
75 #define COSC_CONFIG_INC_FURTHER_PARTS 0x1048 /* Used by RiscOS */
76 #define COSC_CONFIG_SYNCH_MODE 0x1050
77 #define COSC_CONFIG_SYNCH_MODE_ON 0x01
78 #define COSC_CONFIG_SHUTDOWN 0x1054 /* Used by RiscOS */
79 #define COSC_CONFIG_SHUTDOWN_SPINDOWN 0x01 /* Used by RiscOS */
80 #define COSC_CONFIG_SHUTDOWN_EJECT 0x02 /* Used by RiscOS */
81 #define COSC_CONFIG_DELAY_REMOVABLE 0x105c /* Used by RiscOS */
82 #define COSC_CONFIG_DELAY_HARDDISC 0x1060 /* Used by RiscOS */
83 #define COSC_CONFIG_DELAY_BOOT 0x1064 /* Used by RiscOS */
84 #define COSC_CONFIG_CDROM 0x1068 /* Used by RiscOS */
86 #define COSC_TERMINATION_CONTROL 0x2600
87 #define COSC_TERMINATION_ON 0x00
88 #define COSC_TERMINATION_OFF 0x01
89 #define COSC_REGISTER_00 0x2800
90 #define COSC_REGISTER_01 0x2a00
91 #define COSC_PAGE_REGISTER 0x3000
93 #define COSC_ESCOFFSET_BASE 0x3c00
94 #define COSC_ESCOFFSET_TCL 0x0000
95 #define COSC_ESCOFFSET_TCM 0x0004
96 #define COSC_ESCOFFSET_FIFO 0x0008
97 #define COSC_ESCOFFSET_COMMAND 0x000c
98 #define COSC_ESCOFFSET_DESTID 0x0010
99 #define COSC_ESCOFFSET_TIMEOUT 0x0014
100 #define COSC_ESCOFFSET_PERIOD 0x0018
101 #define COSC_ESCOFFSET_OFFSET 0x001c
102 #define COSC_ESCOFFSET_CONFIG1 0x0020
103 #define COSC_ESCOFFSET_CLOCKCONV 0x0024
104 #define COSC_ESCOFFSET_TEST 0x0028
105 #define COSC_ESCOFFSET_CONFIG2 0x002c
106 #define COSC_ESCOFFSET_CONFIG3 0x0030
107 #define COSC_ESCOFFSET_CONFIG4 0x0034
108 #define COSC_ESCOFFSET_TCH 0x0038
109 #define COSC_ESCOFFSET_FIFOBOTTOM 0x003c
111 #endif /* _COSCREG_H_ */