VirtualBox

Changeset 32471 in vbox for trunk/src/VBox/Devices/PC


Ignore:
Timestamp:
Sep 14, 2010 10:26:07 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
65845
Message:

Devices: refactoring, further PCI work

Location:
trunk/src/VBox/Devices/PC
Files:
3 edited

Legend:

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

    r32190 r32471  
    162162    SYSTEM_INFO_INDEX_NIC_ADDRESS       = 15, /**< NIC PCI address, or 0 */
    163163    SYSTEM_INFO_INDEX_AUDIO_ADDRESS     = 16, /**< Audio card PCI address, or 0 */
    164     SYSTEM_INFO_INDEX_POWER_STATES      = 17,
    165     SYSTEM_INFO_INDEX_END               = 18,
     164    SYSTEM_INFO_INDEX_POWER_STATES      = 17,
     165    SYSTEM_INFO_INDEX_IOC_ADDRESS       = 18, /**< IO controller PCI address */
     166    SYSTEM_INFO_INDEX_END               = 19,
    166167    SYSTEM_INFO_INDEX_INVALID           = 0x80,
    167168    SYSTEM_INFO_INDEX_VALID             = 0x200
     
    268269    /** Flag whether to set WAK_STS on resume (restore included). */
    269270    bool                fSetWakeupOnResume;
     271    /** PCI address of the IO controller device. */
     272    uint32_t            u32IocPciAddress;
     273    uint32_t            pad0;
    270274
    271275    /** ACPI port base interface. */
     
    15641568                    break;
    15651569
     1570               case SYSTEM_INFO_INDEX_IOC_ADDRESS:
     1571                    *pu32 = s->u32IocPciAddress;
     1572                    break;
     1573
    15661574                /* This is only for compatability with older saved states that
    15671575                   may include ACPI code that read these values.  Legacy is
     
    24562464                              "NicPciAddress\0"
    24572465                              "AudioPciAddress\0"
     2466                              "IocPciAddress\0"
    24582467                              "EnableSuspendToDisk\0"
    24592468                              "PowerS1Enabled\0"
     
    25182527        return PDMDEV_SET_ERROR(pDevIns, rc,
    25192528                                N_("Configuration error: Failed to read \"AudioPciAddress\""));
     2529
     2530    /* query IO controller (southbridge) PCI address */
     2531    rc = CFGMR3QueryU32Def(pCfg, "IocPciAddress", &s->u32IocPciAddress, 0);
     2532    if (RT_FAILURE(rc))
     2533        return PDMDEV_SET_ERROR(pDevIns, rc,
     2534                                N_("Configuration error: Failed to read \"IocPciAddress\""));
    25202535
    25212536    /* query whether S1 power state should be exposed */
  • trunk/src/VBox/Devices/PC/DevLPC.cpp

    r29522 r32471  
    208208    LPCState   *pThis = PDMINS_2_DATA(pDevIns, LPCState *);
    209209    LogFlow(("lpcInfo: \n"));
     210
     211    if (pThis->dev.config[0xde] == 0xbe && pThis->dev.config[0xad] == 0xef)
     212        pHlp->pfnPrintf(pHlp, "APIC backdoor activated\n");
     213    else
     214        pHlp->pfnPrintf(pHlp, "APIC backdoor closed: %02x %02x\n",
     215                        pThis->dev.config[0xde], pThis->dev.config[0xad]);
    210216}
    211217
  • trunk/src/VBox/Devices/PC/vbox.dsl

    r31963 r32471  
    128128    {
    129129        MEML,  32,
    130         UIOA,  32,
    131         UHPT,  32,
    132         USMC,  32,
    133         UFDC,  32,
     130        UIOA,  32, // if IO APIC enabled
     131        UHPT,  32, // if HPET enabled
     132        USMC,  32, // if SMC enabled
     133        UFDC,  32, // if floppy controller enabled
    134134        // UCP0-UCP3 no longer used and only kept here for saved state compatibilty
    135135        UCP0,  32,
     
    138138        UCP3,  32,
    139139        MEMH,  32,
    140         URTC,  32,
    141         CPUL,  32,
    142         CPUC,  32,
    143         CPET,  32,
    144         CPEV,  32,
    145         NICA,  32,
    146         HDAA,  32,
    147         PWRS,  32,
     140        URTC,  32, // if RTC shown in tables
     141        CPUL,  32, // flag of CPU lock state
     142        CPUC,  32, // CPU to check lock status
     143        CPET,  32, // type of CPU hotplug event
     144        CPEV,  32, // id of CPU event targets
     145        NICA,  32, // Primary NIC PCI address
     146        HDAA,  32, // HDA PCI address
     147        PWRS,  32, // power states
     148        IOCA,  32, // Southbridge IO controller PCI address
    148149        Offset (0x80),
    149150        ININ, 32,
     
    508509        Device (PCI0)
    509510        {
    510             Name (_HID, EisaId ("PNP0A03"))
     511           
     512            Name (_HID, EisaId ("PNP0A03")) // PCI bus PNP id
    511513            Name (_ADR, 0x00) // address
    512514            Name (_BBN, 0x00) // base bus adddress
     
    534536            Device (SBRG)
    535537            {
    536                 // Address of the PIIX3 (device 1 function 0)
    537                 Name (_ADR, 0x00010000)
     538                // Address of the southbridge device (PIIX or ICH9)
     539                Method(_ADR, 0, NotSerialized)
     540                {
     541                     Return (IOCA)
     542                }
    538543                OperationRegion (PCIC, PCI_Config, 0x00, 0xff)
    539544
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