1/*	$NetBSD: ioa.h,v 1.12 2007/03/04 06:00:57 christos Exp $	*/
2/*-
3 * Copyright (c) 1982, 1986 The Regents of the University of California.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 * 1. Redistributions of source code must retain the above copyright
10 *    notice, this list of conditions and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above copyright
12 *    notice, this list of conditions and the following disclaimer in the
13 *    documentation and/or other materials provided with the distribution.
14 * 3. Neither the name of the University nor the names of its contributors
15 *    may be used to endorse or promote products derived from this software
16 *    without specific prior written permission.
17 *
18 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
19 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
22 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 * SUCH DAMAGE.
29 *
30 *	@(#)ioa.h	7.3 (Berkeley) 5/9/91
31 */
32
33/*
34 * ABus support added by Johnny Billquist 2010
35 */
36
37/****************************************************************
38 *                                                              *
39 *        Licensed from Digital Equipment Corporation           *
40 *                       Copyright (c)                          *
41 *               Digital Equipment Corporation                  *
42 *                   Maynard, Massachusetts                     *
43 *                         1985, 1986                           *
44 *                    All rights reserved.                      *
45 *                                                              *
46 *        The Information in this software is subject to change *
47 *   without notice and should not be construed as a commitment *
48 *   by  Digital  Equipment  Corporation.   Digital   makes  no *
49 *   representations about the suitability of this software for *
50 *   any purpose.  It is supplied "As Is" without expressed  or *
51 *   implied  warranty.                                         *
52 *                                                              *
53 *        If the Regents of the University of California or its *
54 *   licensees modify the software in a manner creating         *
55 *   derivative copyright rights, appropriate copyright         *
56 *   legends may be placed on  the derivative work in addition  *
57 *   to that set forth above.                                   *
58 *								*
59 ****************************************************************/
60
61#include "opt_cputype.h"
62#if VAX8600 || VAXANY
63#define	NIOA8600	2	/* Number of SBI possible on a VAX86x0 */
64#define IOASIZE		0x2000000 /* Size of one SBI memory area */
65#define IOAMAPSIZ 	512		/* Map one page to get at SBIA regs */
66#define SBIA8600(i)     ((void *)(0x20000000+IOASIZE*i)) /* Base address for SBI */
67#define	IOA8600(i)	((void *)((bus_addr_t)(SBIA8600(i))+0x80000)) /* Address of SBIA registers */
68
69struct	sbia_regs
70{
71	int sbi_cfg;
72	int sbi_csr;
73	int sbi_errsum;
74	int sbi_dctl;
75	int sbi_dmaica;
76	int sbi_dmaiid;
77	int sbi_dmaaca;
78	int sbi_dmaaid;
79	int sbi_dmabcs;
80	int sbi_dmabid;
81	int sbi_dmaccs;
82	int sbi_dmacid;
83	int sbi_silo;
84	int sbi_error;
85	int sbi_timo;
86	int sbi_fltsts;
87	int sbi_silcmp;
88	int sbi_maint;
89	int sbi_unjam;
90	int sbi_qclr;
91	int sbi_unused1[12];
92	int sbi_iv10;
93	int sbi_iv11;
94	int sbi_iv12;
95	int sbi_iv13;
96	int sbi_iv14;
97	int sbi_iv15;
98	int sbi_iv16;
99	int sbi_iv17;
100	int sbi_iv18;
101	int sbi_iv19;
102	int sbi_iv1a;
103	int sbi_iv1b;
104	int sbi_iv1c;
105	int sbi_iv1d;
106	int sbi_iv1e;
107	int sbi_unused2[17];
108};
109
110#define IOA_TYPMSK 0xf0         /* Mask for type information in sbi_cfg */
111#define IOA_SBIA	0x10    /* Value for SBIA type on ABus */
112
113#endif /* VAX8600 */
114