1 1.10 christos /* $NetBSD: i82365reg.h,v 1.10 2005/12/11 12:21:26 christos Exp $ */ 2 1.2 thorpej 3 1.2 thorpej /* 4 1.2 thorpej * Copyright (c) 1997 Marc Horowitz. All rights reserved. 5 1.2 thorpej * 6 1.2 thorpej * Redistribution and use in source and binary forms, with or without 7 1.2 thorpej * modification, are permitted provided that the following conditions 8 1.2 thorpej * are met: 9 1.2 thorpej * 1. Redistributions of source code must retain the above copyright 10 1.2 thorpej * notice, this list of conditions and the following disclaimer. 11 1.2 thorpej * 2. Redistributions in binary form must reproduce the above copyright 12 1.2 thorpej * notice, this list of conditions and the following disclaimer in the 13 1.2 thorpej * documentation and/or other materials provided with the distribution. 14 1.2 thorpej * 3. All advertising materials mentioning features or use of this software 15 1.2 thorpej * must display the following acknowledgement: 16 1.2 thorpej * This product includes software developed by Marc Horowitz. 17 1.2 thorpej * 4. The name of the author may not be used to endorse or promote products 18 1.2 thorpej * derived from this software without specific prior written permission. 19 1.2 thorpej * 20 1.2 thorpej * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 21 1.2 thorpej * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 22 1.2 thorpej * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 23 1.2 thorpej * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 24 1.2 thorpej * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 25 1.2 thorpej * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 1.2 thorpej * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 1.2 thorpej * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 1.2 thorpej * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 29 1.2 thorpej * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 1.2 thorpej */ 31 1.2 thorpej 32 1.2 thorpej /* 33 1.2 thorpej * All information is from the intel 82365sl PC Card Interface Controller 34 1.2 thorpej * (PCIC) data sheet, marked "preliminary". Order number 290423-002, January 35 1.2 thorpej * 1993. 36 1.2 thorpej */ 37 1.2 thorpej 38 1.2 thorpej #define PCIC_IOSIZE 2 39 1.2 thorpej 40 1.2 thorpej #define PCIC_REG_INDEX 0 41 1.2 thorpej #define PCIC_REG_DATA 1 42 1.2 thorpej 43 1.2 thorpej /* 44 1.2 thorpej * The PCIC allows two chips to share the same address. In order not to run 45 1.2 thorpej * afoul of the netbsd device model, this driver will treat those chips as 46 1.2 thorpej * the same device. 47 1.2 thorpej */ 48 1.2 thorpej 49 1.5 chopps /* pcic can have 2 controllers offset by 0x80 and 2 sockets offset by 0x40 */ 50 1.5 chopps #define PCIC_CHIP_OFFSET 0x80 51 1.5 chopps #define PCIC_SOCKET_OFFSET 0x40 52 1.2 thorpej 53 1.2 thorpej /* general setup registers */ 54 1.2 thorpej 55 1.2 thorpej #define PCIC_IDENT 0x00 /* RO */ 56 1.2 thorpej #define PCIC_IDENT_IFTYPE_MASK 0xC0 57 1.2 thorpej #define PCIC_IDENT_IFTYPE_IO_ONLY 0x00 58 1.2 thorpej #define PCIC_IDENT_IFTYPE_MEM_ONLY 0x40 59 1.2 thorpej #define PCIC_IDENT_IFTYPE_MEM_AND_IO 0x80 60 1.2 thorpej #define PCIC_IDENT_IFTYPE_RESERVED 0xC0 61 1.2 thorpej #define PCIC_IDENT_ZERO 0x30 62 1.2 thorpej #define PCIC_IDENT_REV_MASK 0x0F 63 1.2 thorpej #define PCIC_IDENT_REV_I82365SLR0 0x02 64 1.2 thorpej #define PCIC_IDENT_REV_I82365SLR1 0x03 65 1.2 thorpej 66 1.7 takemura #define PCIC_IDENT_ID_INTEL0 0x82 67 1.7 takemura #define PCIC_IDENT_ID_INTEL1 0x83 68 1.7 takemura #define PCIC_IDENT_ID_INTEL2 0x84 69 1.7 takemura #define PCIC_IDENT_ID_IBM1 0x88 70 1.7 takemura #define PCIC_IDENT_ID_IBM2 0x89 71 1.7 takemura #define PCIC_IDENT_ID_IBM3 0x8A 72 1.7 takemura 73 1.2 thorpej #define PCIC_IF_STATUS 0x01 /* RO */ 74 1.2 thorpej #define PCIC_IF_STATUS_GPI 0x80 /* General Purpose Input */ 75 1.2 thorpej #define PCIC_IF_STATUS_POWERACTIVE 0x40 76 1.2 thorpej #define PCIC_IF_STATUS_READY 0x20 /* really READY/!BUSY */ 77 1.2 thorpej #define PCIC_IF_STATUS_MEM_WP 0x10 78 1.2 thorpej #define PCIC_IF_STATUS_CARDDETECT_MASK 0x0C 79 1.2 thorpej #define PCIC_IF_STATUS_CARDDETECT_PRESENT 0x0C 80 1.2 thorpej #define PCIC_IF_STATUS_BATTERY_MASK 0x03 81 1.2 thorpej #define PCIC_IF_STATUS_BATTERY_DEAD1 0x00 82 1.2 thorpej #define PCIC_IF_STATUS_BATTERY_DEAD2 0x01 83 1.2 thorpej #define PCIC_IF_STATUS_BATTERY_WARNING 0x02 84 1.2 thorpej #define PCIC_IF_STATUS_BATTERY_GOOD 0x03 85 1.2 thorpej 86 1.2 thorpej #define PCIC_PWRCTL 0x02 /* RW */ 87 1.2 thorpej #define PCIC_PWRCTL_OE 0x80 /* output enable */ 88 1.2 thorpej #define PCIC_PWRCTL_DISABLE_RESETDRV 0x40 89 1.2 thorpej #define PCIC_PWRCTL_AUTOSWITCH_ENABLE 0x20 90 1.2 thorpej #define PCIC_PWRCTL_PWR_ENABLE 0x10 91 1.2 thorpej #define PCIC_PWRCTL_VPP2_MASK 0x0C 92 1.2 thorpej #define PCIC_PWRCTL_VPP2_RESERVED 0x0C 93 1.6 mycroft #define PCIC_PWRCTL_VPP2_12V 0x08 94 1.6 mycroft #define PCIC_PWRCTL_VPP2_VCC 0x04 95 1.6 mycroft #define PCIC_PWRCTL_VPP2_OFF 0x00 96 1.2 thorpej #define PCIC_PWRCTL_VPP1_MASK 0x03 97 1.2 thorpej #define PCIC_PWRCTL_VPP1_RESERVED 0x03 98 1.6 mycroft #define PCIC_PWRCTL_VPP1_12V 0x02 99 1.6 mycroft #define PCIC_PWRCTL_VPP1_VCC 0x01 100 1.6 mycroft #define PCIC_PWRCTL_VPP1_OFF 0x00 101 1.2 thorpej 102 1.9 mycroft #define PCIC_CSC 0x04 /* RO */ 103 1.2 thorpej #define PCIC_CSC_ZERO 0xE0 104 1.2 thorpej #define PCIC_CSC_GPI 0x10 105 1.2 thorpej #define PCIC_CSC_CD 0x08 /* Card Detect Change */ 106 1.2 thorpej #define PCIC_CSC_READY 0x04 107 1.2 thorpej #define PCIC_CSC_BATTWARN 0x02 108 1.2 thorpej #define PCIC_CSC_BATTDEAD 0x01 /* for memory cards */ 109 1.2 thorpej #define PCIC_CSC_RI 0x01 /* for i/o cards */ 110 1.2 thorpej 111 1.2 thorpej #define PCIC_ADDRWIN_ENABLE 0x06 /* RW */ 112 1.2 thorpej #define PCIC_ADDRWIN_ENABLE_IO1 0x80 113 1.2 thorpej #define PCIC_ADDRWIN_ENABLE_IO0 0x40 114 1.2 thorpej #define PCIC_ADDRWIN_ENABLE_MEMCS16 0x20 /* rtfds if you care */ 115 1.2 thorpej #define PCIC_ADDRWIN_ENABLE_MEM4 0x10 116 1.2 thorpej #define PCIC_ADDRWIN_ENABLE_MEM3 0x08 117 1.2 thorpej #define PCIC_ADDRWIN_ENABLE_MEM2 0x04 118 1.2 thorpej #define PCIC_ADDRWIN_ENABLE_MEM1 0x02 119 1.2 thorpej #define PCIC_ADDRWIN_ENABLE_MEM0 0x01 120 1.2 thorpej 121 1.5 chopps /* this is _not_ available on cirrus chips */ 122 1.2 thorpej #define PCIC_CARD_DETECT 0x16 /* RW */ 123 1.2 thorpej #define PCIC_CARD_DETECT_RESERVED 0xC0 124 1.2 thorpej #define PCIC_CARD_DETECT_SW_INTR 0x20 125 1.2 thorpej #define PCIC_CARD_DETECT_RESUME_ENABLE 0x10 126 1.2 thorpej #define PCIC_CARD_DETECT_GPI_TRANSCTL 0x08 127 1.2 thorpej #define PCIC_CARD_DETECT_GPI_ENABLE 0x04 128 1.2 thorpej #define PCIC_CARD_DETECT_CFGRST_ENABLE 0x02 129 1.2 thorpej #define PCIC_CARD_DETECT_MEMDLY_INHIBIT 0x01 130 1.2 thorpej 131 1.2 thorpej /* interrupt registers */ 132 1.2 thorpej 133 1.2 thorpej #define PCIC_INTR 0x03 /* RW */ 134 1.2 thorpej #define PCIC_INTR_RI_ENABLE 0x80 135 1.2 thorpej #define PCIC_INTR_RESET 0x40 /* active low (zero) */ 136 1.2 thorpej #define PCIC_INTR_CARDTYPE_MASK 0x20 137 1.2 thorpej #define PCIC_INTR_CARDTYPE_IO 0x20 138 1.2 thorpej #define PCIC_INTR_CARDTYPE_MEM 0x00 139 1.2 thorpej #define PCIC_INTR_ENABLE 0x10 140 1.2 thorpej #define PCIC_INTR_IRQ_MASK 0x0F 141 1.2 thorpej #define PCIC_INTR_IRQ_SHIFT 0 142 1.2 thorpej #define PCIC_INTR_IRQ_NONE 0x00 143 1.2 thorpej #define PCIC_INTR_IRQ_RESERVED1 0x01 144 1.2 thorpej #define PCIC_INTR_IRQ_RESERVED2 0x02 145 1.2 thorpej #define PCIC_INTR_IRQ3 0x03 146 1.2 thorpej #define PCIC_INTR_IRQ4 0x04 147 1.2 thorpej #define PCIC_INTR_IRQ5 0x05 148 1.2 thorpej #define PCIC_INTR_IRQ_RESERVED6 0x06 149 1.2 thorpej #define PCIC_INTR_IRQ7 0x07 150 1.2 thorpej #define PCIC_INTR_IRQ_RESERVED8 0x08 151 1.2 thorpej #define PCIC_INTR_IRQ9 0x09 152 1.2 thorpej #define PCIC_INTR_IRQ10 0x0A 153 1.2 thorpej #define PCIC_INTR_IRQ11 0x0B 154 1.2 thorpej #define PCIC_INTR_IRQ12 0x0C 155 1.2 thorpej #define PCIC_INTR_IRQ_RESERVED13 0x0D 156 1.2 thorpej #define PCIC_INTR_IRQ14 0x0E 157 1.2 thorpej #define PCIC_INTR_IRQ15 0x0F 158 1.2 thorpej 159 1.2 thorpej #define PCIC_INTR_IRQ_VALIDMASK 0xDEB8 /* 1101 1110 1011 1000 */ 160 1.2 thorpej 161 1.2 thorpej #define PCIC_CSC_INTR 0x05 /* RW */ 162 1.2 thorpej #define PCIC_CSC_INTR_IRQ_MASK 0xF0 163 1.2 thorpej #define PCIC_CSC_INTR_IRQ_SHIFT 4 164 1.2 thorpej #define PCIC_CSC_INTR_IRQ_NONE 0x00 165 1.2 thorpej #define PCIC_CSC_INTR_IRQ_RESERVED1 0x10 166 1.2 thorpej #define PCIC_CSC_INTR_IRQ_RESERVED2 0x20 167 1.2 thorpej #define PCIC_CSC_INTR_IRQ3 0x30 168 1.2 thorpej #define PCIC_CSC_INTR_IRQ4 0x40 169 1.2 thorpej #define PCIC_CSC_INTR_IRQ5 0x50 170 1.2 thorpej #define PCIC_CSC_INTR_IRQ_RESERVED6 0x60 171 1.2 thorpej #define PCIC_CSC_INTR_IRQ7 0x70 172 1.2 thorpej #define PCIC_CSC_INTR_IRQ_RESERVED8 0x80 173 1.2 thorpej #define PCIC_CSC_INTR_IRQ9 0x90 174 1.2 thorpej #define PCIC_CSC_INTR_IRQ10 0xA0 175 1.2 thorpej #define PCIC_CSC_INTR_IRQ11 0xB0 176 1.2 thorpej #define PCIC_CSC_INTR_IRQ12 0xC0 177 1.2 thorpej #define PCIC_CSC_INTR_IRQ_RESERVED13 0xD0 178 1.2 thorpej #define PCIC_CSC_INTR_IRQ14 0xE0 179 1.2 thorpej #define PCIC_CSC_INTR_IRQ15 0xF0 180 1.2 thorpej #define PCIC_CSC_INTR_CD_ENABLE 0x08 181 1.2 thorpej #define PCIC_CSC_INTR_READY_ENABLE 0x04 182 1.2 thorpej #define PCIC_CSC_INTR_BATTWARN_ENABLE 0x02 183 1.2 thorpej #define PCIC_CSC_INTR_BATTDEAD_ENABLE 0x01 /* for memory cards */ 184 1.2 thorpej #define PCIC_CSC_INTR_RI_ENABLE 0x01 /* for I/O cards */ 185 1.4 sommerfe 186 1.4 sommerfe #define PCIC_CSC_INTR_FORMAT "\177\020" "f\4\4CSC_INTR_IRQ\0" \ 187 1.4 sommerfe "b\0RI\0" \ 188 1.4 sommerfe "b\1BATTWARN\0" \ 189 1.4 sommerfe "b\2READY\0" \ 190 1.4 sommerfe "b\3CD\0" 191 1.2 thorpej 192 1.2 thorpej #define PCIC_CSC_INTR_IRQ_VALIDMASK 0xDEB8 /* 1101 1110 1011 1000 */ 193 1.2 thorpej 194 1.2 thorpej /* I/O registers */ 195 1.2 thorpej 196 1.2 thorpej #define PCIC_IO_WINS 2 197 1.2 thorpej 198 1.2 thorpej #define PCIC_IOCTL 0x07 /* RW */ 199 1.2 thorpej #define PCIC_IOCTL_IO1_WAITSTATE 0x80 200 1.2 thorpej #define PCIC_IOCTL_IO1_ZEROWAIT 0x40 201 1.2 thorpej #define PCIC_IOCTL_IO1_IOCS16SRC_MASK 0x20 202 1.2 thorpej #define PCIC_IOCTL_IO1_IOCS16SRC_CARD 0x20 203 1.2 thorpej #define PCIC_IOCTL_IO1_IOCS16SRC_DATASIZE 0x00 204 1.2 thorpej #define PCIC_IOCTL_IO1_DATASIZE_MASK 0x10 205 1.2 thorpej #define PCIC_IOCTL_IO1_DATASIZE_16BIT 0x10 206 1.2 thorpej #define PCIC_IOCTL_IO1_DATASIZE_8BIT 0x00 207 1.2 thorpej #define PCIC_IOCTL_IO0_WAITSTATE 0x08 208 1.2 thorpej #define PCIC_IOCTL_IO0_ZEROWAIT 0x04 209 1.2 thorpej #define PCIC_IOCTL_IO0_IOCS16SRC_MASK 0x02 210 1.2 thorpej #define PCIC_IOCTL_IO0_IOCS16SRC_CARD 0x02 211 1.2 thorpej #define PCIC_IOCTL_IO0_IOCS16SRC_DATASIZE 0x00 212 1.2 thorpej #define PCIC_IOCTL_IO0_DATASIZE_MASK 0x01 213 1.2 thorpej #define PCIC_IOCTL_IO0_DATASIZE_16BIT 0x01 214 1.2 thorpej #define PCIC_IOCTL_IO0_DATASIZE_8BIT 0x00 215 1.2 thorpej 216 1.2 thorpej #define PCIC_IOADDR0_START_LSB 0x08 217 1.2 thorpej #define PCIC_IOADDR0_START_MSB 0x09 218 1.2 thorpej #define PCIC_IOADDR0_STOP_LSB 0x0A 219 1.2 thorpej #define PCIC_IOADDR0_STOP_MSB 0x0B 220 1.2 thorpej #define PCIC_IOADDR1_START_LSB 0x0C 221 1.2 thorpej #define PCIC_IOADDR1_START_MSB 0x0D 222 1.2 thorpej #define PCIC_IOADDR1_STOP_LSB 0x0E 223 1.2 thorpej #define PCIC_IOADDR1_STOP_MSB 0x0F 224 1.2 thorpej 225 1.2 thorpej /* memory registers */ 226 1.2 thorpej 227 1.2 thorpej /* 228 1.2 thorpej * memory window addresses refer to bits A23-A12 of the ISA system memory 229 1.2 thorpej * address. This is a shift of 12 bits. The LSB contains A19-A12, and the 230 1.2 thorpej * MSB contains A23-A20, plus some other bits. 231 1.2 thorpej */ 232 1.2 thorpej 233 1.2 thorpej #define PCIC_MEM_WINS 5 234 1.2 thorpej 235 1.2 thorpej #define PCIC_MEM_SHIFT 12 236 1.2 thorpej #define PCIC_MEM_PAGESIZE (1<<PCIC_MEM_SHIFT) 237 1.2 thorpej 238 1.2 thorpej #define PCIC_SYSMEM_ADDRX_SHIFT PCIC_MEM_SHIFT 239 1.2 thorpej #define PCIC_SYSMEM_ADDRX_START_MSB_DATASIZE_MASK 0x80 240 1.2 thorpej #define PCIC_SYSMEM_ADDRX_START_MSB_DATASIZE_16BIT 0x80 241 1.2 thorpej #define PCIC_SYSMEM_ADDRX_START_MSB_DATASIZE_8BIT 0x00 242 1.2 thorpej #define PCIC_SYSMEM_ADDRX_START_MSB_ZEROWAIT 0x40 243 1.2 thorpej #define PCIC_SYSMEM_ADDRX_START_MSB_SCRATCH_MASK 0x30 244 1.2 thorpej #define PCIC_SYSMEM_ADDRX_START_MSB_ADDR_MASK 0x0F 245 1.2 thorpej 246 1.2 thorpej #define PCIC_SYSMEM_ADDRX_STOP_MSB_WAIT_MASK 0xC0 247 1.2 thorpej #define PCIC_SYSMEM_ADDRX_STOP_MSB_WAIT0 0x00 248 1.2 thorpej #define PCIC_SYSMEM_ADDRX_STOP_MSB_WAIT1 0x40 249 1.2 thorpej #define PCIC_SYSMEM_ADDRX_STOP_MSB_WAIT2 0x80 250 1.2 thorpej #define PCIC_SYSMEM_ADDRX_STOP_MSB_WAIT3 0xC0 251 1.2 thorpej #define PCIC_SYSMEM_ADDRX_STOP_MSB_ADDR_MASK 0x0F 252 1.2 thorpej 253 1.2 thorpej /* 254 1.2 thorpej * The card side of a memory mapping consists of bits A19-A12 of the card 255 1.2 thorpej * memory address in the LSB, and A25-A20 plus some other bits in the MSB. 256 1.2 thorpej * Again, the shift is 12 bits. 257 1.2 thorpej */ 258 1.2 thorpej 259 1.2 thorpej #define PCIC_CARDMEM_ADDRX_SHIFT PCIC_MEM_SHIFT 260 1.2 thorpej #define PCIC_CARDMEM_ADDRX_MSB_WP 0x80 261 1.2 thorpej #define PCIC_CARDMEM_ADDRX_MSB_REGACTIVE_MASK 0x40 262 1.2 thorpej #define PCIC_CARDMEM_ADDRX_MSB_REGACTIVE_ATTR 0x40 263 1.2 thorpej #define PCIC_CARDMEM_ADDRX_MSB_REGACTIVE_COMMON 0x00 264 1.2 thorpej #define PCIC_CARDMEM_ADDRX_MSB_ADDR_MASK 0x3F 265 1.2 thorpej 266 1.2 thorpej #define PCIC_SYSMEM_ADDR0_START_LSB 0x10 267 1.2 thorpej #define PCIC_SYSMEM_ADDR0_START_MSB 0x11 268 1.2 thorpej #define PCIC_SYSMEM_ADDR0_STOP_LSB 0x12 269 1.2 thorpej #define PCIC_SYSMEM_ADDR0_STOP_MSB 0x13 270 1.2 thorpej 271 1.2 thorpej #define PCIC_CARDMEM_ADDR0_LSB 0x14 272 1.2 thorpej #define PCIC_CARDMEM_ADDR0_MSB 0x15 273 1.2 thorpej 274 1.2 thorpej /* #define PCIC_RESERVED 0x17 */ 275 1.2 thorpej 276 1.2 thorpej #define PCIC_SYSMEM_ADDR1_START_LSB 0x18 277 1.2 thorpej #define PCIC_SYSMEM_ADDR1_START_MSB 0x19 278 1.2 thorpej #define PCIC_SYSMEM_ADDR1_STOP_LSB 0x1A 279 1.2 thorpej #define PCIC_SYSMEM_ADDR1_STOP_MSB 0x1B 280 1.2 thorpej 281 1.2 thorpej #define PCIC_CARDMEM_ADDR1_LSB 0x1C 282 1.2 thorpej #define PCIC_CARDMEM_ADDR1_MSB 0x1D 283 1.2 thorpej 284 1.2 thorpej #define PCIC_SYSMEM_ADDR2_START_LSB 0x20 285 1.2 thorpej #define PCIC_SYSMEM_ADDR2_START_MSB 0x21 286 1.2 thorpej #define PCIC_SYSMEM_ADDR2_STOP_LSB 0x22 287 1.2 thorpej #define PCIC_SYSMEM_ADDR2_STOP_MSB 0x23 288 1.2 thorpej 289 1.2 thorpej #define PCIC_CARDMEM_ADDR2_LSB 0x24 290 1.2 thorpej #define PCIC_CARDMEM_ADDR2_MSB 0x25 291 1.2 thorpej 292 1.2 thorpej /* #define PCIC_RESERVED 0x26 */ 293 1.2 thorpej /* #define PCIC_RESERVED 0x27 */ 294 1.2 thorpej 295 1.2 thorpej #define PCIC_SYSMEM_ADDR3_START_LSB 0x28 296 1.2 thorpej #define PCIC_SYSMEM_ADDR3_START_MSB 0x29 297 1.2 thorpej #define PCIC_SYSMEM_ADDR3_STOP_LSB 0x2A 298 1.2 thorpej #define PCIC_SYSMEM_ADDR3_STOP_MSB 0x2B 299 1.2 thorpej 300 1.2 thorpej #define PCIC_CARDMEM_ADDR3_LSB 0x2C 301 1.2 thorpej #define PCIC_CARDMEM_ADDR3_MSB 0x2D 302 1.2 thorpej 303 1.2 thorpej /* #define PCIC_RESERVED 0x2E */ 304 1.2 thorpej /* #define PCIC_RESERVED 0x2F */ 305 1.2 thorpej 306 1.2 thorpej #define PCIC_SYSMEM_ADDR4_START_LSB 0x30 307 1.2 thorpej #define PCIC_SYSMEM_ADDR4_START_MSB 0x31 308 1.2 thorpej #define PCIC_SYSMEM_ADDR4_STOP_LSB 0x32 309 1.2 thorpej #define PCIC_SYSMEM_ADDR4_STOP_MSB 0x33 310 1.2 thorpej 311 1.2 thorpej #define PCIC_CARDMEM_ADDR4_LSB 0x34 312 1.2 thorpej #define PCIC_CARDMEM_ADDR4_MSB 0x35 313 1.2 thorpej 314 1.2 thorpej /* #define PCIC_RESERVED 0x36 */ 315 1.2 thorpej /* #define PCIC_RESERVED 0x37 */ 316 1.2 thorpej /* #define PCIC_RESERVED 0x38 */ 317 1.2 thorpej /* #define PCIC_RESERVED 0x39 */ 318 1.2 thorpej /* #define PCIC_RESERVED 0x3A */ 319 1.2 thorpej /* #define PCIC_RESERVED 0x3B */ 320 1.2 thorpej /* #define PCIC_RESERVED 0x3C */ 321 1.2 thorpej /* #define PCIC_RESERVED 0x3D */ 322 1.2 thorpej /* #define PCIC_RESERVED 0x3E */ 323 1.2 thorpej /* #define PCIC_RESERVED 0x3F */ 324 1.2 thorpej 325 1.2 thorpej /* vendor-specific registers */ 326 1.2 thorpej 327 1.2 thorpej #define PCIC_INTEL_GLOBAL_CTL 0x1E /* RW */ 328 1.2 thorpej #define PCIC_INTEL_GLOBAL_CTL_RESERVED 0xF0 329 1.2 thorpej #define PCIC_INTEL_GLOBAL_CTL_IRQ14PULSE_ENABLE 0x08 330 1.2 thorpej #define PCIC_INTEL_GLOBAL_CTL_EXPLICIT_CSC_ACK 0x04 331 1.2 thorpej #define PCIC_INTEL_GLOBAL_CTL_IRQLEVEL_ENABLE 0x02 332 1.2 thorpej #define PCIC_INTEL_GLOBAL_CTL_POWERDOWN 0x01 333 1.2 thorpej 334 1.9 mycroft #define PCIC_CIRRUS_MISC_CTL_1 0x16 /* RW */ 335 1.9 mycroft #define PCIC_CIRRUS_MISC_CTL_1_SPKR_ENABLE 0x10 336 1.9 mycroft 337 1.9 mycroft #define PCIC_CIRRUS_FIFO_CTL 0x17 /* RW */ 338 1.9 mycroft #define PCIC_CIRRUS_FIFO_CTL_EMPTY 0x80 /* I/O read */ 339 1.9 mycroft #define PCIC_CIRRUS_FIFO_CTL_FLUSH 0x80 /* I/O write */ 340 1.9 mycroft 341 1.9 mycroft #define PCIC_CIRRUS_MISC_CTL_2 0x1E /* RW */ 342 1.2 thorpej #define PCIC_CIRRUS_MISC_CTL_2_SUSPEND 0x04 343 1.9 mycroft #define PCIC_CIRRUS_MISC_CTL_2_LP_DYNAMIC_MODE 0x02 344 1.2 thorpej 345 1.2 thorpej #define PCIC_CIRRUS_CHIP_INFO 0x1F 346 1.2 thorpej #define PCIC_CIRRUS_CHIP_INFO_CHIP_ID 0xC0 347 1.2 thorpej #define PCIC_CIRRUS_CHIP_INFO_SLOTS 0x20 348 1.2 thorpej #define PCIC_CIRRUS_CHIP_INFO_REV 0x1F 349 1.3 nathanw 350 1.3 nathanw #define PCIC_CIRRUS_EXTENDED_INDEX 0x2E 351 1.3 nathanw #define PCIC_CIRRUS_EXTENDED_DATA 0x2F 352 1.9 mycroft 353 1.9 mycroft #define PCIC_CIRRUS_EXT_CONTROL_1 0x03 354 1.9 mycroft #define PCIC_CIRRUS_EXT_CONTROL_1_PCI_INTR_MASK 0x18 355 1.9 mycroft 356 1.9 mycroft #define PCIC_CIRRUS_PROD_ID 0x35 /* RO */ 357 1.9 mycroft #define PCIC_CIRRUS_PROD_ID_FAM_MASK 0xF0 358 1.9 mycroft #define PCIC_CIRRUS_PROD_ID_FAM_PD6729 0x20 359 1.9 mycroft #define PCIC_CIRRUS_PROD_ID_PROD_MASK 0x0F 360 1.9 mycroft #define PCIC_CIRRUS_PROD_ID_PROD_PD6729 0x00 361 1.7 takemura 362 1.7 takemura #define PCIC_RICOH_REG_CHIP_ID 0x3A 363 1.7 takemura #define PCIC_RICOH_CHIP_ID_5C296 0x32 364 1.7 takemura #define PCIC_RICOH_CHIP_ID_5C396 0xB2 365 1.7 takemura #define PCIC_RICOH_REG_MCR2 0x2F 366 1.8 mycroft #define PCIC_RICOH_MCR2_VCC_DIRECT 0x08 367 1.7 takemura #define PCIC_RICOH_MCR2_VCC_SEL_MASK 0x01 368 1.7 takemura #define PCIC_RICOH_MCR2_VCC_SEL_3V 0x01 369 1.7 takemura #define PCIC_RICOH_MCR2_VCC_SEL_5V 0x00 370