diff options
Diffstat (limited to 'arch/mips/pci/pci-vr41xx.h')
-rw-r--r-- | arch/mips/pci/pci-vr41xx.h | 69 |
1 files changed, 36 insertions, 33 deletions
diff --git a/arch/mips/pci/pci-vr41xx.h b/arch/mips/pci/pci-vr41xx.h index 23815c8b903c..e087ec55641d 100644 --- a/arch/mips/pci/pci-vr41xx.h +++ b/arch/mips/pci/pci-vr41xx.h | |||
@@ -3,7 +3,7 @@ | |||
3 | * | 3 | * |
4 | * Copyright (C) 2002 MontaVista Software Inc. | 4 | * Copyright (C) 2002 MontaVista Software Inc. |
5 | * Author: Yoichi Yuasa <yyuasa@mvista.com or source@mvista.com> | 5 | * Author: Yoichi Yuasa <yyuasa@mvista.com or source@mvista.com> |
6 | * Copyright (C) 2004 Yoichi Yuasa <yuasa@hh.iij4u.or.jp> | 6 | * Copyright (C) 2004-2005 Yoichi Yuasa <yuasa@hh.iij4u.or.jp> |
7 | * | 7 | * |
8 | * This program is free software; you can redistribute it and/or modify | 8 | * This program is free software; you can redistribute it and/or modify |
9 | * it under the terms of the GNU General Public License as published by | 9 | * it under the terms of the GNU General Public License as published by |
@@ -22,11 +22,14 @@ | |||
22 | #ifndef __PCI_VR41XX_H | 22 | #ifndef __PCI_VR41XX_H |
23 | #define __PCI_VR41XX_H | 23 | #define __PCI_VR41XX_H |
24 | 24 | ||
25 | #define PCIMMAW1REG KSEG1ADDR(0x0f000c00) | 25 | #define PCIU_BASE 0x0f000c00UL |
26 | #define PCIMMAW2REG KSEG1ADDR(0x0f000c04) | 26 | #define PCIU_SIZE 0x200UL |
27 | #define PCITAW1REG KSEG1ADDR(0x0f000c08) | 27 | |
28 | #define PCITAW2REG KSEG1ADDR(0x0f000c0c) | 28 | #define PCIMMAW1REG 0x00 |
29 | #define PCIMIOAWREG KSEG1ADDR(0x0f000c10) | 29 | #define PCIMMAW2REG 0x04 |
30 | #define PCITAW1REG 0x08 | ||
31 | #define PCITAW2REG 0x0c | ||
32 | #define PCIMIOAWREG 0x10 | ||
30 | #define IBA(addr) ((addr) & 0xff000000U) | 33 | #define IBA(addr) ((addr) & 0xff000000U) |
31 | #define MASTER_MSK(mask) (((mask) >> 11) & 0x000fe000U) | 34 | #define MASTER_MSK(mask) (((mask) >> 11) & 0x000fe000U) |
32 | #define PCIA(addr) (((addr) >> 24) & 0x000000ffU) | 35 | #define PCIA(addr) (((addr) >> 24) & 0x000000ffU) |
@@ -34,13 +37,13 @@ | |||
34 | #define ITA(addr) (((addr) >> 24) & 0x000000ffU) | 37 | #define ITA(addr) (((addr) >> 24) & 0x000000ffU) |
35 | #define PCIIA(addr) (((addr) >> 24) & 0x000000ffU) | 38 | #define PCIIA(addr) (((addr) >> 24) & 0x000000ffU) |
36 | #define WINEN 0x1000U | 39 | #define WINEN 0x1000U |
37 | #define PCICONFDREG KSEG1ADDR(0x0f000c14) | 40 | #define PCICONFDREG 0x14 |
38 | #define PCICONFAREG KSEG1ADDR(0x0f000c18) | 41 | #define PCICONFAREG 0x18 |
39 | #define PCIMAILREG KSEG1ADDR(0x0f000c1c) | 42 | #define PCIMAILREG 0x1c |
40 | #define BUSERRADREG KSEG1ADDR(0x0f000c24) | 43 | #define BUSERRADREG 0x24 |
41 | #define EA(reg) ((reg) &0xfffffffc) | 44 | #define EA(reg) ((reg) &0xfffffffc) |
42 | 45 | ||
43 | #define INTCNTSTAREG KSEG1ADDR(0x0f000c28) | 46 | #define INTCNTSTAREG 0x28 |
44 | #define MABTCLR 0x80000000U | 47 | #define MABTCLR 0x80000000U |
45 | #define TRDYCLR 0x40000000U | 48 | #define TRDYCLR 0x40000000U |
46 | #define PARCLR 0x20000000U | 49 | #define PARCLR 0x20000000U |
@@ -67,34 +70,34 @@ | |||
67 | #define MABORT 0x00000002U | 70 | #define MABORT 0x00000002U |
68 | #define TABORT 0x00000001U | 71 | #define TABORT 0x00000001U |
69 | 72 | ||
70 | #define PCIEXACCREG KSEG1ADDR(0x0f000c2c) | 73 | #define PCIEXACCREG 0x2c |
71 | #define UNLOCK 0x2U | 74 | #define UNLOCK 0x2U |
72 | #define EAREQ 0x1U | 75 | #define EAREQ 0x1U |
73 | #define PCIRECONTREG KSEG1ADDR(0x0f000c30) | 76 | #define PCIRECONTREG 0x30 |
74 | #define RTRYCNT(reg) ((reg) & 0x000000ffU) | 77 | #define RTRYCNT(reg) ((reg) & 0x000000ffU) |
75 | #define PCIENREG KSEG1ADDR(0x0f000c34) | 78 | #define PCIENREG 0x34 |
76 | #define BLOODY_CONFIG_DONE 0x4U | 79 | #define PCIU_CONFIG_DONE 0x4U |
77 | #define PCICLKSELREG KSEG1ADDR(0x0f000c38) | 80 | #define PCICLKSELREG 0x38 |
78 | #define EQUAL_VTCLOCK 0x2U | 81 | #define EQUAL_VTCLOCK 0x2U |
79 | #define HALF_VTCLOCK 0x0U | 82 | #define HALF_VTCLOCK 0x0U |
80 | #define ONE_THIRD_VTCLOCK 0x3U | 83 | #define ONE_THIRD_VTCLOCK 0x3U |
81 | #define QUARTER_VTCLOCK 0x1U | 84 | #define QUARTER_VTCLOCK 0x1U |
82 | #define PCITRDYVREG KSEG1ADDR(0x0f000c3c) | 85 | #define PCITRDYVREG 0x3c |
83 | #define TRDYV(val) ((uint32_t)(val) & 0xffU) | 86 | #define TRDYV(val) ((uint32_t)(val) & 0xffU) |
84 | #define PCICLKRUNREG KSEG1ADDR(0x0f000c60) | 87 | #define PCICLKRUNREG 0x60 |
85 | 88 | ||
86 | #define VENDORIDREG KSEG1ADDR(0x0f000d00) | 89 | #define VENDORIDREG 0x100 |
87 | #define DEVICEIDREG KSEG1ADDR(0x0f000d00) | 90 | #define DEVICEIDREG 0x100 |
88 | #define COMMANDREG KSEG1ADDR(0x0f000d04) | 91 | #define COMMANDREG 0x104 |
89 | #define STATUSREG KSEG1ADDR(0x0f000d04) | 92 | #define STATUSREG 0x104 |
90 | #define REVIDREG KSEG1ADDR(0x0f000d08) | 93 | #define REVIDREG 0x108 |
91 | #define CLASSREG KSEG1ADDR(0x0f000d08) | 94 | #define CLASSREG 0x108 |
92 | #define CACHELSREG KSEG1ADDR(0x0f000d0c) | 95 | #define CACHELSREG 0x10c |
93 | #define LATTIMEREG KSEG1ADDR(0x0f000d0c) | 96 | #define LATTIMEREG 0x10c |
94 | #define MLTIM(val) (((uint32_t)(val) << 7) & 0xff00U) | 97 | #define MLTIM(val) (((uint32_t)(val) << 7) & 0xff00U) |
95 | #define MAILBAREG KSEG1ADDR(0x0f000d10) | 98 | #define MAILBAREG 0x110 |
96 | #define PCIMBA1REG KSEG1ADDR(0x0f000d14) | 99 | #define PCIMBA1REG 0x114 |
97 | #define PCIMBA2REG KSEG1ADDR(0x0f000d18) | 100 | #define PCIMBA2REG 0x118 |
98 | #define MBADD(base) ((base) & 0xfffff800U) | 101 | #define MBADD(base) ((base) & 0xfffff800U) |
99 | #define PMBA(base) ((base) & 0xffe00000U) | 102 | #define PMBA(base) ((base) & 0xffe00000U) |
100 | #define PREF 0x8U | 103 | #define PREF 0x8U |
@@ -104,10 +107,10 @@ | |||
104 | #define TYPE_32BITSPACE 0x0U | 107 | #define TYPE_32BITSPACE 0x0U |
105 | #define MSI 0x1U | 108 | #define MSI 0x1U |
106 | #define MSI_MEMORY 0x0U | 109 | #define MSI_MEMORY 0x0U |
107 | #define INTLINEREG KSEG1ADDR(0x0f000d3c) | 110 | #define INTLINEREG 0x13c |
108 | #define INTPINREG KSEG1ADDR(0x0f000d3c) | 111 | #define INTPINREG 0x13c |
109 | #define RETVALREG KSEG1ADDR(0x0f000d40) | 112 | #define RETVALREG 0x140 |
110 | #define PCIAPCNTREG KSEG1ADDR(0x0f000d40) | 113 | #define PCIAPCNTREG 0x140 |
111 | #define TKYGNT 0x04000000U | 114 | #define TKYGNT 0x04000000U |
112 | #define TKYGNT_ENABLE 0x04000000U | 115 | #define TKYGNT_ENABLE 0x04000000U |
113 | #define TKYGNT_DISABLE 0x00000000U | 116 | #define TKYGNT_DISABLE 0x00000000U |