Changeset 82410 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Dec 5, 2019 12:06:44 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 135247
- Location:
- trunk/src/VBox/Devices/PC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DevACPI.cpp
r82329 r82410 195 195 SYSTEM_INFO_INDEX_PARALLEL1_IRQ = 29, 196 196 SYSTEM_INFO_INDEX_PREF64_MEMORY_MAX = 30, 197 SYSTEM_INFO_INDEX_END = 31, 197 SYSTEM_INFO_INDEX_NVME_ADDRESS = 31, /**< First NVMe controller PCI address, or 0 */ 198 SYSTEM_INFO_INDEX_END = 32, 198 199 SYSTEM_INFO_INDEX_INVALID = 0x80, 199 200 SYSTEM_INFO_INDEX_VALID = 0x200 … … 365 366 /** Primary NIC PCI address. */ 366 367 uint32_t u32NicPciAddress; 367 /** Primary audio cardPCI address. */368 /** HD Audio PCI address. */ 368 369 uint32_t u32AudioPciAddress; 370 /** Primary NVMe controller PCI address. */ 371 uint32_t u32NvmePciAddress; 369 372 /** Flag whether S1 power state is enabled. */ 370 373 bool fS1Enabled; … … 1439 1442 break; 1440 1443 1444 case SYSTEM_INFO_INDEX_NVME_ADDRESS: 1445 *pu32 = pThis->u32NvmePciAddress; 1446 break; 1447 1441 1448 case SYSTEM_INFO_INDEX_POWER_STATES: 1442 1449 *pu32 = RT_BIT(0) | RT_BIT(5); /* S1 and S5 always exposed */ … … 1447 1454 break; 1448 1455 1449 case SYSTEM_INFO_INDEX_IOC_ADDRESS:1456 case SYSTEM_INFO_INDEX_IOC_ADDRESS: 1450 1457 *pu32 = pThis->u32IocPciAddress; 1451 1458 break; … … 3690 3697 "|NicPciAddress" 3691 3698 "|AudioPciAddress" 3699 "|NvmePciAddress" 3692 3700 "|IocPciAddress" 3693 3701 "|HostBusPciAddress" … … 3773 3781 return PDMDEV_SET_ERROR(pDevIns, rc, N_("Configuration error: Failed to read \"ShowCpu\"")); 3774 3782 3775 /* query primary NIC PCI address */3783 /* query primary NIC PCI address (GIGE) */ 3776 3784 rc = pHlp->pfnCFGMQueryU32Def(pCfg, "NicPciAddress", &pThis->u32NicPciAddress, 0); 3777 3785 if (RT_FAILURE(rc)) 3778 3786 return PDMDEV_SET_ERROR(pDevIns, rc, N_("Configuration error: Failed to read \"NicPciAddress\"")); 3779 3787 3780 /* query primary NIC PCI address*/3788 /* query HD Audio PCI address (HDAA) */ 3781 3789 rc = pHlp->pfnCFGMQueryU32Def(pCfg, "AudioPciAddress", &pThis->u32AudioPciAddress, 0); 3782 3790 if (RT_FAILURE(rc)) 3783 3791 return PDMDEV_SET_ERROR(pDevIns, rc, N_("Configuration error: Failed to read \"AudioPciAddress\"")); 3792 3793 /* query NVMe PCI address (NVMA) */ 3794 rc = pHlp->pfnCFGMQueryU32Def(pCfg, "NvmePciAddress", &pThis->u32NvmePciAddress, 0); 3795 if (RT_FAILURE(rc)) 3796 return PDMDEV_SET_ERROR(pDevIns, rc, N_("Configuration error: Failed to read \"NvmePciAddress\"")); 3784 3797 3785 3798 /* query IO controller (southbridge) PCI address */ -
trunk/src/VBox/Devices/PC/vbox.dsl
r76553 r82410 371 371 PP1I, 32, // Parallel1 IRQ 372 372 PMNX, 32, // limit of 64-bit prefetch window (64KB units) 373 NVMA, 32, // Primary NVMe controller PCI address 373 374 Offset (0x80), 374 375 ININ, 32, … … 1220 1221 } 1221 1222 } 1223 1224 // NVMe controller. Required to convince OS X that 1225 // the controller is an internal (built-in) device. 1226 Device (SSD0) 1227 { 1228 Method(_ADR, 0, NotSerialized) 1229 { 1230 Return (NVMA) 1231 } 1232 Method (_STA, 0, NotSerialized) 1233 { 1234 if (LEqual (NVMA, Zero)) { 1235 Return (0x00) 1236 } 1237 else { 1238 Return (0x0F) 1239 } 1240 } 1241 // Port 0 1242 Device (PRT0) 1243 { 1244 Name (_ADR, 0xffff) 1245 } 1246 } 1222 1247 1223 1248 // NIC
Note:
See TracChangeset
for help on using the changeset viewer.