- Timestamp:
- Feb 2, 2017 8:27:16 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/vbox.dsl
r65581 r65582 135 135 // Local7 is the minimum of Str1 or Str2 length. 136 136 // 137 137 138 138 Store(Arg0, Local0) 139 139 Store(S2BF(Local0), Local0) 140 140 141 141 Store(S2BF(Arg1), Local1) 142 142 Store(Zero, Local4) 143 143 144 144 Store(SLEN(Arg0), Local5) 145 145 Store(SLEN(Arg1), Local6) 146 146 Store(MIN(Local5, Local6), Local7) 147 147 148 148 While (LLess(Local4, Local7)) 149 149 { … … 161 161 } 162 162 } 163 163 164 164 Increment(Local4) 165 165 } 166 166 167 167 If (LLess(Local4, Local5)) 168 168 { … … 242 242 // OS returns non-zero value in response to _OSI query if it 243 243 // supports the interface. Newer Windows releases support older 244 // versions of the ACPI interface. 244 // versions of the ACPI interface. 245 245 If (_OSI("Windows 2001")) 246 246 { … … 343 343 USMC, 32, // if SMC enabled 344 344 UFDC, 32, // if floppy controller enabled 345 SL2B, 32, // Serial2 base IO address 345 SL2B, 32, // Serial2 base IO address 346 346 SL2I, 32, // Serial2 IRQ 347 SL3B, 32, // Serial3 base IO address 347 SL3B, 32, // Serial3 base IO address 348 348 SL3I, 32, // Serial3 IRQ 349 349 PMEM, 32, … … 360 360 PCIB, 32, // PCI MCFG base start 361 361 PCIL, 32, // PCI MCFG length 362 SL0B, 32, // Serial0 base IO address 362 SL0B, 32, // Serial0 base IO address 363 363 SL0I, 32, // Serial0 IRQ 364 SL1B, 32, // Serial1 base IO address 364 SL1B, 32, // Serial1 base IO address 365 365 SL1I, 32, // Serial1 IRQ 366 PP0B, 32, // Parallel0 base IO address 366 PP0B, 32, // Parallel0 base IO address 367 367 PP0I, 32, // Parallel0 IRQ 368 PP1B, 32, // Parallel1 base IO address 368 PP1B, 32, // Parallel1 base IO address 369 369 PP1I, 32, // Parallel1 IRQ 370 370 Offset (0x80), … … 730 730 Device (PCI0) 731 731 { 732 732 733 733 Name (_HID, EisaId ("PNP0A03")) // PCI bus PNP id 734 734 Method(_ADR, 0, NotSerialized) // PCI address … … 739 739 Name (_UID, 0x00) 740 740 741 // Method that returns routing table; also opens PCI to I/O APIC 741 // Method that returns routing table; also opens PCI to I/O APIC 742 742 // interrupt routing backdoor by writing 0xdead 0xbeef signature 743 743 // to ISA bridge config space. See DevPCI.cpp/pciSetIrqInternal(). … … 774 774 APDE, 8, 775 775 } 776 776 777 777 // PCI MCFG MMIO ranges 778 778 Device (^PCIE) … … 804 804 } 805 805 } 806 } 806 } 807 807 808 808 // Keyboard device … … 966 966 Name (CRS, ResourceTemplate () 967 967 { 968 IO (Decode16, 0x03F8, 0x03F8, 0x01, 0x08, _Y14) 968 IO (Decode16, 0x03F8, 0x03F8, 0x01, 0x08, _Y14) 969 969 IRQNoFlags (_Y15) {4} 970 970 }) … … 980 980 } 981 981 } 982 982 983 983 // Serial port 1 984 984 Device (^SRL1) … … 999 999 Name (CRS, ResourceTemplate () 1000 1000 { 1001 IO (Decode16, 0x02F8, 0x02F8, 0x01, 0x08, _Y16) 1001 IO (Decode16, 0x02F8, 0x02F8, 0x01, 0x08, _Y16) 1002 1002 IRQNoFlags (_Y17) {3} 1003 1003 }) … … 1032 1032 Name (CRS, ResourceTemplate () 1033 1033 { 1034 IO (Decode16, 0x03E8, 0x03E8, 0x01, 0x08, _Y22) 1034 IO (Decode16, 0x03E8, 0x03E8, 0x01, 0x08, _Y22) 1035 1035 IRQNoFlags (_Y23) {3} 1036 1036 }) … … 1128 1128 1129 1129 // Real Time Clock and CMOS (MC146818) 1130 Device (RTC) 1130 Device (RTC) 1131 1131 { 1132 1132 Name (_HID, EisaId ("PNP0B00")) … … 1147 1147 1148 1148 // High Precision Event Timer 1149 Device(HPET) 1149 Device(HPET) 1150 1150 { 1151 1151 Name (_HID, EISAID("PNP0103")) … … 1153 1153 Name(_UID, 0) 1154 1154 1155 Method (_STA, 0, NotSerialized) 1155 Method (_STA, 0, NotSerialized) 1156 1156 { 1157 1157 Return(UHPT) 1158 1158 } 1159 1159 1160 Name(CRS, ResourceTemplate() 1160 Name(CRS, ResourceTemplate() 1161 1161 { 1162 1162 IRQNoFlags () … … 1169 1169 ) 1170 1170 }) 1171 1171 1172 1172 Method (_CRS, 0, NotSerialized) 1173 1173 { … … 1192 1192 0x0300, // Range Maximum 1193 1193 0x01, // Alignment 1194 0x20) // Length 1194 0x20) // Length 1195 1195 IRQNoFlags () 1196 1196 {6} … … 1201 1201 Return (CRS) 1202 1202 } 1203 } 1203 } 1204 1204 } 1205 1205 … … 1298 1298 Method(_DSM, 4, NotSerialized) 1299 1299 { 1300 Store (Package (0x04) 1301 { 1302 "layout-id", 1303 Buffer (0x04) 1304 { 1305 /* 04 */ 0x04, 0x00, 0x00, 0x00 1306 }, 1307 1308 "PinConfigurations", 1309 Buffer (Zero) {} 1310 }, Local0) 1300 Store (Package (0x04) 1301 { 1302 "layout-id", 1303 Buffer (0x04) 1304 { 1305 /* 04 */ 0x04, 0x00, 0x00, 0x00 1306 }, 1307 1308 "PinConfigurations", 1309 Buffer (Zero) {} 1310 }, Local0) 1311 1311 if (LEqual (Arg0, ToUUID("a0b5b7c6-1318-441c-b0c9-fe695eaf949b"))) 1312 1312 { … … 1315 1315 if (LEqual(Arg2, Zero)) 1316 1316 { 1317 Store (Buffer (0x01) 1318 { 1317 Store (Buffer (0x01) 1318 { 1319 1319 0x03 1320 1320 } 1321 , Local0) 1322 Return (Local0) 1321 , Local0) 1322 Return (Local0) 1323 1323 } 1324 1324 if (LEqual(Arg2, One)) 1325 1325 { 1326 Return (Local0) 1326 Return (Local0) 1327 1327 } 1328 1328 } 1329 1329 } 1330 Store (Buffer (0x01) 1331 { 1330 Store (Buffer (0x01) 1331 { 1332 1332 0x0 1333 1333 } 1334 , Local0) 1335 Return (Local0) 1334 , Local0) 1335 Return (Local0) 1336 1336 } 1337 1337 … … 1350 1350 } 1351 1351 } 1352 } 1352 } 1353 1353 1354 1354
Note:
See TracChangeset
for help on using the changeset viewer.