- Timestamp:
- Nov 29, 2010 7:33:45 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DevLPC.cpp
r33142 r34487 243 243 244 244 /** @todo: rewrite using PCI accessors */ 245 pThis->dev.config[0x40] = 0x01; 246 pThis->dev.config[0x41] = 0x0b; 247 245 /* See p. 427 of ICH9 specification for register description */ 246 247 /* 40h - 43h PMBASE 40-43 ACPI Base Address */ 248 pThis->dev.config[0x40] = 0x01; /* IO space */ 249 pThis->dev.config[0x41] = 0x80; /* base address / 128, see DevACPI.cpp */ 250 251 /* 44h ACPI_CNTL ACPI Control */ 252 pThis->dev.config[0x40] = 0x00 | (1<<7); /* SCI is IRQ9, ACPI enabled */ 253 /* 48h–4Bh GPIOBASE GPIO Base Address */ 254 255 /* 4C GC GPIO Control */ 248 256 pThis->dev.config[0x4c] = 0x4d; 257 /* ???? */ 249 258 pThis->dev.config[0x4e] = 0x03; 250 259 pThis->dev.config[0x4f] = 0x00; 251 260 252 pThis->dev.config[0x60] = 0x0a; /* PCI A -> IRQ 10 */ 253 pThis->dev.config[0x61] = 0x0a; /* PCI B -> IRQ 10 */ 261 /* 60h–63h PIRQ[n]_ROUT PIRQ[A–D] Routing Control */ 262 pThis->dev.config[0x60] = 0x0b; /* PCI A -> IRQ 11 */ 263 pThis->dev.config[0x61] = 0x09; /* PCI B -> IRQ 9 */ 254 264 pThis->dev.config[0x62] = 0x0b; /* PCI C -> IRQ 11 */ 255 pThis->dev.config[0x63] = 0x0b; /* PCI D -> IRQ 11 */ 256 257 pThis->dev.config[0x69] = 0x02; 265 pThis->dev.config[0x63] = 0x09; /* PCI D -> IRQ 9 */ 266 267 /* 64h SIRQ_CNTL Serial IRQ Control 10h R/W, RO */ 268 pThis->dev.config[0x64] = 0x10; 269 270 /*68h–6Bh PIRQ[n]_ROUT PIRQ[E–H] Routing Control */ 271 pThis->dev.config[0x68] = 0x80; 272 pThis->dev.config[0x69] = 0x80; 273 pThis->dev.config[0x6A] = 0x80; 274 pThis->dev.config[0x6B] = 0x80; 275 276 /* 6C–6Dh LPC_IBDF IOxAPIC Bus:Device:Function 00F8h R/W */ 258 277 pThis->dev.config[0x70] = 0x80; 259 278 pThis->dev.config[0x76] = 0x0c; … … 261 280 pThis->dev.config[0x78] = 0x02; 262 281 pThis->dev.config[0x79] = 0x00; 263 pThis->dev.config[0x80] = 0x00; 264 pThis->dev.config[0x82] = 0x00; 282 /* 80h LPC_I/O_DEC I/O Decode Ranges 0000h R/W */ 283 /* 82h–83h LPC_EN LPC I/F Enables 0000h R/W */ 284 /* 84h–87h GEN1_DEC LPC I/F Generic Decode Range 1 00000000h R/W */ 285 /* 88h–8Bh GEN2_DEC LPC I/F Generic Decode Range 2 00000000h R/W */ 286 /* 8Ch–8Eh GEN3_DEC LPC I/F Generic Decode Range 3 00000000h R/W */ 287 /* 90h–93h GEN4_DEC LPC I/F Generic Decode Range 4 00000000h R/W */ 288 289 /* A0h–CFh Power Management */ 265 290 pThis->dev.config[0xa0] = 0x08; 266 291 pThis->dev.config[0xa2] = 0x00; … … 276 301 pThis->dev.config[0xae] = 0x00; 277 302 278 279 /* We need to allow direct config reading from this address */ 303 /* D0h–D3h FWH_SEL1 Firmware Hub Select 1 */ 304 /* D4h–D5h FWH_SEL2 Firmware Hub Select 2 */ 305 /* D8h–D9h FWH_DEC_EN1 Firmware Hub Decode Enable 1 */ 306 /* DCh BIOS_CNTL BIOS Control */ 307 /* E0h-E1h FDCAP Feature Detection Capability ID */ 308 /* E2h FDLEN Feature Detection Capability Length */ 309 /* E3h FDVER Feature Detection Version */ 310 /* E4h-EBh FDVCT Feature Vector Description */ 311 312 /* F0h-F3h RCBA Root Complex Base Address */ 280 313 pThis->dev.config[0xf0] = (uint8_t)(RCBA_BASE | 1); /* enabled */ 281 314 pThis->dev.config[0xf1] = (uint8_t)(RCBA_BASE >> 8);
Note:
See TracChangeset
for help on using the changeset viewer.