universereg.h revision 1.1 1 1.1 drochner /* $NetBSD: universereg.h,v 1.1 2000/02/25 18:22:39 drochner Exp $ */
2 1.1 drochner
3 1.1 drochner /*
4 1.1 drochner * Copyright (c) 1999
5 1.1 drochner * Matthias Drochner. All rights reserved.
6 1.1 drochner *
7 1.1 drochner * Redistribution and use in source and binary forms, with or without
8 1.1 drochner * modification, are permitted provided that the following conditions
9 1.1 drochner * are met:
10 1.1 drochner * 1. Redistributions of source code must retain the above copyright
11 1.1 drochner * notice, this list of conditions, and the following disclaimer.
12 1.1 drochner * 2. Redistributions in binary form must reproduce the above copyright
13 1.1 drochner * notice, this list of conditions and the following disclaimer in the
14 1.1 drochner * documentation and/or other materials provided with the distribution.
15 1.1 drochner *
16 1.1 drochner * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
17 1.1 drochner * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 1.1 drochner * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 1.1 drochner * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
20 1.1 drochner * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 1.1 drochner * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 1.1 drochner * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 1.1 drochner * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 1.1 drochner * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 1.1 drochner * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 1.1 drochner * SUCH DAMAGE.
27 1.1 drochner */
28 1.1 drochner
29 1.1 drochner #ifndef _DEV_IC_UNIVERSEREG_H_
30 1.1 drochner #define _DEV_IC_UNIVERSEREG_H_
31 1.1 drochner
32 1.1 drochner /*
33 1.1 drochner * Register layout of the Newbridge/Tundra Universe II PCI-VME
34 1.1 drochner * adapter chip (CA91C142). Looks the same from PCI and VME.
35 1.1 drochner */
36 1.1 drochner
37 1.1 drochner struct universe_pcislvimg {
38 1.1 drochner u_int32_t lsi_ctl, lsi_bs, lsi_bd, lsi_to;
39 1.1 drochner };
40 1.1 drochner
41 1.1 drochner struct universe_vmeslvimg {
42 1.1 drochner u_int32_t vsi_ctl, vsi_bs, vsi_bd, vsi_to;
43 1.1 drochner };
44 1.1 drochner
45 1.1 drochner struct universereg {
46 1.1 drochner u_int32_t pci_id, pci_csr, pci_class, pci_misc0, pci_bs0, pci_bs1;
47 1.1 drochner u_int32_t _space1[9];
48 1.1 drochner u_int32_t pci_misc1;
49 1.1 drochner u_int32_t _space2[(0x100-0x40)/4];
50 1.1 drochner struct universe_pcislvimg pcislv0;
51 1.1 drochner u_int32_t _space3;
52 1.1 drochner struct universe_pcislvimg pcislv1;
53 1.1 drochner u_int32_t _space4;
54 1.1 drochner struct universe_pcislvimg pcislv2;
55 1.1 drochner u_int32_t _space5;
56 1.1 drochner struct universe_pcislvimg pcislv3;
57 1.1 drochner u_int32_t _space6[(0x170-0x14c)/4];
58 1.1 drochner u_int32_t scyc_ctl, scyc_addr, scyc_en, scyc_cmp, scyc_swp;
59 1.1 drochner u_int32_t lmisc;
60 1.1 drochner u_int32_t slsi;
61 1.1 drochner u_int32_t l_cmderr, laerr;
62 1.1 drochner u_int32_t _space7[(0x1a0-0x194)/4];
63 1.1 drochner struct universe_pcislvimg pcislv4;
64 1.1 drochner u_int32_t _space8;
65 1.1 drochner struct universe_pcislvimg pcislv5;
66 1.1 drochner u_int32_t _space9;
67 1.1 drochner struct universe_pcislvimg pcislv6;
68 1.1 drochner u_int32_t _space10;
69 1.1 drochner struct universe_pcislvimg pcislv7;
70 1.1 drochner u_int32_t _space11[(0x200-0x1ec)/4];
71 1.1 drochner u_int32_t dctl, dtbc, dla;
72 1.1 drochner u_int32_t _space12;
73 1.1 drochner u_int32_t dva;
74 1.1 drochner u_int32_t _space13;
75 1.1 drochner u_int32_t dcpp;
76 1.1 drochner u_int32_t _space14;
77 1.1 drochner u_int32_t dgcs, d_llue;
78 1.1 drochner u_int32_t _space15[(0x300-0x228)/4];
79 1.1 drochner u_int32_t lint_en, lint_stat, lint_map0, lint_map1;
80 1.1 drochner u_int32_t vint_en, vint_stat, vint_map0, vint_map1;
81 1.1 drochner u_int32_t statid, v_statid[7];
82 1.1 drochner u_int32_t lint_map2, vint_map2;
83 1.1 drochner u_int32_t mbox[4], sema[2];
84 1.1 drochner u_int32_t _space16[(0x400-0x360)/4];
85 1.1 drochner u_int32_t mast_ctl, misc_ctl, misc_stat, user_am;
86 1.1 drochner u_int32_t _space17[(0xf00-0x410)/4];
87 1.1 drochner struct universe_vmeslvimg vmeslv0;
88 1.1 drochner u_int32_t _space18;
89 1.1 drochner struct universe_vmeslvimg vmeslv1;
90 1.1 drochner u_int32_t _space19;
91 1.1 drochner struct universe_vmeslvimg vmeslv2;
92 1.1 drochner u_int32_t _space20;
93 1.1 drochner struct universe_vmeslvimg vmeslv3;
94 1.1 drochner u_int32_t _space21[(0xf64-0xf4c)/4];
95 1.1 drochner u_int32_t lm_ctl, lm_bs;
96 1.1 drochner u_int32_t _space22;
97 1.1 drochner u_int32_t vrai_ctl, vrai_bs;
98 1.1 drochner u_int32_t _space23[(0xf80-0xf78)/4];
99 1.1 drochner u_int32_t vcsr_ctl, vcsr_to;
100 1.1 drochner u_int32_t v_amerr, vaerr;
101 1.1 drochner struct universe_vmeslvimg vmeslv4;
102 1.1 drochner u_int32_t _space24;
103 1.1 drochner struct universe_vmeslvimg vmeslv5;
104 1.1 drochner u_int32_t _space25;
105 1.1 drochner struct universe_vmeslvimg vmeslv6;
106 1.1 drochner u_int32_t _space26;
107 1.1 drochner struct universe_vmeslvimg vmeslv7;
108 1.1 drochner u_int32_t _space27[(0xff0-0xfdc)/4];
109 1.1 drochner u_int32_t _space28;
110 1.1 drochner u_int32_t vcsr_clr, vcsr_set, vcsr_bs;
111 1.1 drochner };
112 1.1 drochner
113 1.1 drochner #endif /* _DEV_IC_UNIVERSEREG_H_ */
114