aupcireg.h revision 1.2 1 1.2 gdamore /* $NetBSD: aupcireg.h,v 1.2 2006/02/16 01:55:17 gdamore Exp $ */
2 1.1 gdamore
3 1.1 gdamore /*-
4 1.1 gdamore * Copyright (c) 2006 Itronix Inc.
5 1.1 gdamore * All rights reserved.
6 1.1 gdamore *
7 1.1 gdamore * Written by Garrett D'Amore for Itronix Inc.
8 1.1 gdamore *
9 1.1 gdamore * Redistribution and use in source and binary forms, with or without
10 1.1 gdamore * modification, are permitted provided that the following conditions
11 1.1 gdamore * are met:
12 1.1 gdamore * 1. Redistributions of source code must retain the above copyright
13 1.1 gdamore * notice, this list of conditions and the following disclaimer.
14 1.1 gdamore * 2. Redistributions in binary form must reproduce the above copyright
15 1.1 gdamore * notice, this list of conditions and the following disclaimer in the
16 1.1 gdamore * documentation and/or other materials provided with the distribution.
17 1.1 gdamore * 3. The name of Itronix Inc. may not be used to endorse
18 1.1 gdamore * or promote products derived from this software without specific
19 1.1 gdamore * prior written permission.
20 1.1 gdamore *
21 1.1 gdamore * THIS SOFTWARE IS PROVIDED BY ITRONIX INC. ``AS IS'' AND
22 1.1 gdamore * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
23 1.1 gdamore * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
24 1.1 gdamore * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ITRONIX INC. BE LIABLE FOR ANY
25 1.1 gdamore * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
26 1.1 gdamore * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
27 1.1 gdamore * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
28 1.1 gdamore * ON ANY THEORY OF LIABILITY, WHETHER IN
29 1.1 gdamore * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30 1.1 gdamore * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31 1.1 gdamore * POSSIBILITY OF SUCH DAMAGE.
32 1.1 gdamore */
33 1.1 gdamore
34 1.1 gdamore #ifndef _MIPS_ALCHEMY_DEV_AUPCIREG_H
35 1.1 gdamore #define _MIPS_ALCHEMY_DEV_AUPCIREG_H
36 1.1 gdamore
37 1.1 gdamore #define AUPCI_CMEM 0x0000
38 1.1 gdamore #define AUPCI_CMEM_HC (1UL<<31) /* host config */
39 1.1 gdamore #define AUPCI_CMEM_E (1UL<<28) /* cmem enable */
40 1.1 gdamore
41 1.1 gdamore #define AUPCI_CONFIG 0x0004
42 1.1 gdamore #define AUPCI_CONFIG_EADDRH_SHIFT 28 /* bits 32-35 */
43 1.1 gdamore #define AUPCI_CONFIG_ERD (1UL<<27) /* error direction */
44 1.1 gdamore #define AUPCI_CONFIG_ET (1UL<<26) /* error target */
45 1.1 gdamore #define AUPCI_CONFIG_EF (1UL<<25) /* fatal error */
46 1.1 gdamore #define AUPCI_CONFIG_EP (1UL<<24) /* parity error */
47 1.1 gdamore #define AUPCI_CONFIG_EM (1UL<<23) /* multiple errors */
48 1.1 gdamore #define AUPCI_CONfIG_BM (1UL<<22) /* bad master */
49 1.1 gdamore #define AUPCI_CONFIG_PD (1UL<<20) /* PCI disable */
50 1.1 gdamore #define AUPCI_CONFIG_BME (1UL<<19) /* byte mask enable */
51 1.1 gdamore #define AUPCI_CONFIG_DR (1UL<<18) /* drive mode */
52 1.1 gdamore #define AUPCI_CONFIG_NC (1UL<<16) /* non-coherent */
53 1.1 gdamore #define AUPCI_CONFIG_IE (1UL<<15) /* interrupt enable */
54 1.1 gdamore #define AUPCI_CONFIG_IP (1UL<<13) /* perr int enable */
55 1.1 gdamore #define AUPCI_CONFIG_IS (1UL<<12) /* serr int enable */
56 1.1 gdamore #define AUPCI_CONFIG_IMM (1UL<<11) /* master abort int */
57 1.1 gdamore #define AUPCI_CONFIG_ITM (1UL<<10) /* target abort int */
58 1.1 gdamore #define AUPCI_CONFIG_ITT (1UL<<9) /* target abort int */
59 1.1 gdamore #define AUPCI_CONFIG_IPB (1UL<<8) /* perr rec int */
60 1.1 gdamore #define AUPCI_CONFIG_SIC_SHIFT 6
61 1.1 gdamore #define AUPCI_CONFIG_SIC_NONE 0
62 1.1 gdamore #define AUPCI_CONFIG_SIC_ADDR (1UL<<6)
63 1.1 gdamore #define AUPCI_CONFIG_SIC_DATA (2UL<<6)
64 1.1 gdamore #define AUPCI_CONFIG_SIC_ALL (3UL<<6)
65 1.1 gdamore #define AUPCI_CONFIG_SIC_MASK (3UL<<6)
66 1.1 gdamore #define AUPCI_CONFIG_ST (1UL<<5) /* swap on target */
67 1.1 gdamore #define AUPCI_CONFIG_SM (1UL<<4) /* swap on master */
68 1.1 gdamore #define AUPCI_CONFIG_AEN (1UL<<3) /* enable arbiter */
69 1.1 gdamore #define AUPCI_CONFIG_R2H (1UL<<2) /* req 2 high pri */
70 1.1 gdamore #define AUPCI_CONFIG_R1H (1UL<<1) /* req 1 high pri */
71 1.1 gdamore #define AUPCI_CONFIG_CH (1UL<<0) /* cpu high pri */
72 1.1 gdamore
73 1.1 gdamore #define AUPCI_B2BMASK 0x0008
74 1.1 gdamore #define AUPCI_B2BMASK_SHIFT 16
75 1.1 gdamore #define AUPCI_B2BBASE0 0x000C
76 1.1 gdamore #define AUPCI_B2BASE0_SHIFT 16
77 1.1 gdamore #define AUPCI_B2BBASE1 0x0010
78 1.1 gdamore #define AUPCI_B2BASE1_SHIFT 16
79 1.1 gdamore #define AUPCI_MWMASK 0x0014
80 1.1 gdamore #define AUPCI_MWMASK_SHIFT 16
81 1.1 gdamore #define AUPCI_MWBASE 0x0018
82 1.1 gdamore #define AUPCI_MWBASE_SHIFT 16
83 1.1 gdamore #define AUPCI_ERRADDR 0x001C
84 1.1 gdamore #define AUPCI_SPECINTACK 0x0020
85 1.1 gdamore #define AUPCI_PRCFG 0x0024
86 1.1 gdamore #define AUPCI_PRCFG_BLM_SHIFT 3
87 1.1 gdamore #define AUPCI_PRCFG_AM (1UL<<9) /* abort mask */
88 1.1 gdamore #define AUPCI_PRCFG_DM (1UL<<8) /* done mask */
89 1.1 gdamore #define AUPCI_PRCFG_BS_SHIFT 4
90 1.1 gdamore #define AUPCI_PRCFG_ADDR_HIGH_SHIFT 0
91 1.1 gdamore #define AUPCI_PRADDR 0x0028
92 1.1 gdamore #define AUPCI_PRSTAT 0x002C
93 1.1 gdamore #define AUPCI_PRSTAT_AI (1UL<<9) /* posted read abort */
94 1.1 gdamore #define AUPCI_PRSTAT_DI (1UL<<8) /* posted read done */
95 1.1 gdamore #define AUPCI_PRSTAT_PEND (1UL<<0) /* posted read pend */
96 1.1 gdamore
97 1.1 gdamore #define AUPCI_ID 0x0100
98 1.1 gdamore #define AUPCI_COMMAND_STATUS 0x0104
99 1.1 gdamore #define AUPCI_CLASS 0x0108
100 1.2 gdamore #define AUPCI_MBAR 0x0110
101 1.1 gdamore
102 1.1 gdamore #endif /* _MIPS_ALCHEMY_DEV_AUPCIREG_H */
103