iyonixreg.h revision 1.3 1 1.3 gavan /* $NetBSD: iyonixreg.h,v 1.3 2006/02/22 00:23:52 gavan Exp $ */
2 1.1 gavan
3 1.1 gavan /*
4 1.1 gavan * Copyright (c) 2002 Wasabi Systems, Inc.
5 1.1 gavan * All rights reserved.
6 1.1 gavan *
7 1.1 gavan * Based on code written by Jason R. Thorpe for Wasabi Systems, Inc.
8 1.1 gavan *
9 1.1 gavan * Redistribution and use in source and binary forms, with or without
10 1.1 gavan * modification, are permitted provided that the following conditions
11 1.1 gavan * are met:
12 1.1 gavan * 1. Redistributions of source code must retain the above copyright
13 1.1 gavan * notice, this list of conditions and the following disclaimer.
14 1.1 gavan * 2. Redistributions in binary form must reproduce the above copyright
15 1.1 gavan * notice, this list of conditions and the following disclaimer in the
16 1.1 gavan * documentation and/or other materials provided with the distribution.
17 1.1 gavan * 3. All advertising materials mentioning features or use of this software
18 1.1 gavan * must display the following acknowledgement:
19 1.1 gavan * This product includes software developed for the NetBSD Project by
20 1.1 gavan * Wasabi Systems, Inc.
21 1.1 gavan * 4. The name of Wasabi Systems, Inc. may not be used to endorse
22 1.1 gavan * or promote products derived from this software without specific prior
23 1.1 gavan * written permission.
24 1.1 gavan *
25 1.1 gavan * THIS SOFTWARE IS PROVIDED BY WASABI SYSTEMS, INC. ``AS IS'' AND
26 1.1 gavan * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
27 1.1 gavan * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
28 1.1 gavan * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL WASABI SYSTEMS, INC
29 1.1 gavan * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30 1.1 gavan * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31 1.1 gavan * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32 1.1 gavan * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33 1.1 gavan * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34 1.1 gavan * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
35 1.1 gavan * POSSIBILITY OF SUCH DAMAGE.
36 1.1 gavan */
37 1.1 gavan
38 1.1 gavan #ifndef _IYONIXREG_H_
39 1.1 gavan #define _IYONIXREG_H_
40 1.1 gavan
41 1.1 gavan /*
42 1.1 gavan * Memory map and register definitions for the Tungsten motherboard
43 1.1 gavan */
44 1.1 gavan
45 1.1 gavan /*
46 1.1 gavan * We allocate a page table for VA 0xfe400000 (4MB) and map the
47 1.1 gavan * PCI I/O space (64K) and i80321 memory-mapped registers (4K) there.
48 1.1 gavan */
49 1.1 gavan #define IYONIX_IOPXS_VBASE 0xfe400000UL
50 1.1 gavan #define IYONIX_IOW_VBASE IYONIX_IOPXS_VBASE
51 1.1 gavan #define IYONIX_80321_VBASE (IYONIX_IOW_VBASE + \
52 1.1 gavan VERDE_OUT_XLATE_IO_WIN_SIZE)
53 1.1 gavan
54 1.1 gavan #define IYONIX_UART1 0x900002f8
55 1.1 gavan
56 1.1 gavan /*
57 1.1 gavan * The on-board devices are mapped VA==PA during bootstrap.
58 1.1 gavan */
59 1.1 gavan #define IYONIX_OBIO_BASE 0x90000000UL
60 1.1 gavan #define IYONIX_OBIO_SIZE 0x00100000UL /* 1MB */
61 1.1 gavan
62 1.3 gavan #define IYONIX_FLASH_BASE 0xA0000000UL
63 1.3 gavan #define IYONIX_FLASH_SIZE 0x00800000UL /* 8MB */
64 1.3 gavan
65 1.1 gavan #define IYONIX_MASTER_PIC 0x20
66 1.1 gavan #define IYONIX_SLAVE_PIC 0xa0
67 1.1 gavan
68 1.1 gavan #endif /* _IYONIXREG_H_ */
69