VirtualBox

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


Ignore:
Timestamp:
Dec 3, 2009 1:08:24 PM (15 years ago)
Author:
vboxsync
Message:

ACPI: moved RTC and SMC to southbridge, and enabled RTC unconditionally (watch for regressions!)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/vbox.dsl

    r23473 r25164  
    871871                    })
    872872                }
     873
     874                // RTC and CMOS
     875                Device (RTC)
     876                {
     877                    Name (_HID, EisaId ("PNP0B00"))
     878                    Name (_CRS, ResourceTemplate ()
     879                    {
     880                      IO (Decode16,
     881                          0x0070,             // Range Minimum
     882                          0x0070,             // Range Maximum
     883                          0x01,               // Alignment
     884                          0x02,               // Length
     885                      )
     886                    })
     887                    Method (_STA, 0, NotSerialized)
     888                    {
     889                       Return (0x0f)
     890                    }
     891                }
     892
     893                // System Management Controller
     894                Device (SMC)
     895                {
     896                    Name (_HID, EisaId ("APP0001"))
     897                    Name (_CID, "smc-napa")
     898
     899                    Method (_STA, 0, NotSerialized)
     900                    {
     901                       Return (USMC)
     902                    }
     903                    Name (_CRS, ResourceTemplate ()
     904                    {
     905                       IO (Decode16,
     906                           0x0300,             // Range Minimum
     907                           0x0300,             // Range Maximum
     908                           0x01,               // Alignment
     909                           0x20,               // Length
     910                    )
     911                    // This line seriously confuses Windows ACPI driver, so not even try to
     912                    // enable SMC for Windows guests
     913                    IRQNoFlags () {8}
     914                 })
     915               }
    873916            }
    874917
     
    11651208            })
    11661209        }
    1167 
    1168         // Conditionally enabled, as lead to hang of Windows 7 and Vista guests
    1169         Device (RTC) {
    1170             Name (_HID, EisaId ("PNP0B00"))
    1171             Name (_CRS, ResourceTemplate ()
    1172             {
    1173                 IO (Decode16,
    1174                     0x0070,             // Range Minimum
    1175                     0x0070,             // Range Maximum
    1176                     0x01,               // Alignment
    1177                     0x08,               // Length
    1178                     )
    1179             })
    1180             Method (_STA, 0, NotSerialized)
    1181             {
    1182                 Return (URTC)
    1183             }
    1184         }
    1185 
    1186        // System Management Controller
    1187        Device (SMC)
    1188        {
    1189             Name (_HID, EisaId ("APP0001"))
    1190             Name (_CID, "smc-napa")
    1191 
    1192             Method (_STA, 0, NotSerialized)
    1193             {
    1194                 Return (USMC)
    1195             }
    1196             Name (_CRS, ResourceTemplate ()
    1197             {
    1198                 IO (Decode16,
    1199                     0x0300,             // Range Minimum
    1200                     0x0300,             // Range Maximum
    1201                     0x01,               // Alignment
    1202                     0x20,               // Length
    1203                     )
    1204                 // This line seriously confuses Windows ACPI driver, so not even try to
    1205                 // enable SMC for Windows guests
    1206                 IRQNoFlags () {8}
    1207             })
    1208         }
    1209 
     1210       
    12101211        // Fields within PIIX3 configuration[0x60..0x63] with
    12111212        // IRQ mappings
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