VirtualBox

Changeset 34487 in vbox for trunk/src


Ignore:
Timestamp:
Nov 29, 2010 7:33:45 PM (14 years ago)
Author:
vboxsync
Message:

LPC: registers infomation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DevLPC.cpp

    r33142 r34487  
    243243
    244244    /** @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 */
    248256    pThis->dev.config[0x4c] = 0x4d;
     257    /* ???? */
    249258    pThis->dev.config[0x4e] = 0x03;
    250259    pThis->dev.config[0x4f] = 0x00;
    251260
    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  */
    254264    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 */
    258277    pThis->dev.config[0x70] = 0x80;
    259278    pThis->dev.config[0x76] = 0x0c;
     
    261280    pThis->dev.config[0x78] = 0x02;
    262281    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 */
    265290    pThis->dev.config[0xa0] = 0x08;
    266291    pThis->dev.config[0xa2] = 0x00;
     
    276301    pThis->dev.config[0xae] = 0x00;
    277302
    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 */
    280313    pThis->dev.config[0xf0] = (uint8_t)(RCBA_BASE | 1); /* enabled */
    281314    pThis->dev.config[0xf1] = (uint8_t)(RCBA_BASE >> 8);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette