Changeset 25986 in vbox
- Timestamp:
- Jan 23, 2010 1:32:03 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 56851
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/pdmifs.h
r25984 r25986 55 55 * PDMIBASE::pfnQueryInterface respectively. 56 56 * 57 * In most interface descriptions the orientation of the interface is given as 58 * 'down' or 'up'. This refers to a model with the device on the top and the 59 * drivers stacked below it. Sometimes there is mention of 'main' or 'external' 60 * which normally means the same, i.e. the Main or VBoxBFE API. Pickture the 61 * orientation of 'main' as horisontal. 62 * 57 63 * @{ 58 64 */ 59 60 61 /** @name Common Driver Interface Identficators.62 * @todo Convert all these to _IID.63 * @{64 */65 66 /* gsrc -r PDMINTERFACE */67 68 69 /** @} */70 65 71 66 -
trunk/src/VBox/Devices/Network/DevE1000.cpp
r25985 r25986 5070 5070 } 5071 5071 pState->pDrv = PDMIBASE_QUERY_INTERFACE(pState->pDrvBase, PDMINETWORKCONNECTOR); 5072 if (!pState->pDrv) 5073 { 5074 AssertMsgFailed(("%s Failed to obtain the PDMINTERFACE_NETWORK_CONNECTOR interface!\n")); 5075 return VERR_PDM_MISSING_INTERFACE_BELOW; 5076 } 5072 AssertMsgReturn(pState->pDrv, ("Failed to obtain the PDMINETWORKCONNECTOR interface!\n"), 5073 VERR_PDM_MISSING_INTERFACE_BELOW); 5077 5074 } 5078 5075 else if (rc == VERR_PDM_NO_ATTACHED_DRIVER) … … 5287 5284 } 5288 5285 pState->pDrv = PDMIBASE_QUERY_INTERFACE(pState->pDrvBase, PDMINETWORKCONNECTOR); 5289 if (!pState->pDrv) 5290 { 5291 AssertMsgFailed(("Failed to obtain the PDMINTERFACE_NETWORK_CONNECTOR interface!\n")); 5292 rc = VERR_PDM_MISSING_INTERFACE_BELOW; 5293 } 5286 AssertMsgStmt(pState->pDrv, ("Failed to obtain the PDMINETWORKCONNECTOR interface!\n"), 5287 rc = VERR_PDM_MISSING_INTERFACE_BELOW); 5294 5288 } 5295 5289 else if (rc == VERR_PDM_NO_ATTACHED_DRIVER) -
trunk/src/VBox/Devices/Network/DevINIP.cpp
r25985 r25986 531 531 if (!pThis->pDrv) 532 532 { 533 AssertMsgFailed(("Failed to obtain the PDMIN TERFACE_NETWORK_CONNECTOR interface!\n"));533 AssertMsgFailed(("Failed to obtain the PDMINETWORKCONNECTOR interface!\n")); 534 534 rc = VERR_PDM_MISSING_INTERFACE_BELOW; 535 535 goto out; -
trunk/src/VBox/Devices/Network/DevPCNet.cpp
r25985 r25986 4821 4821 } 4822 4822 pThis->pDrv = PDMIBASE_QUERY_INTERFACE(pThis->pDrvBase, PDMINETWORKCONNECTOR); 4823 if (!pThis->pDrv) 4824 { 4825 AssertMsgFailed(("Failed to obtain the PDMINTERFACE_NETWORK_CONNECTOR interface!\n")); 4826 rc = VERR_PDM_MISSING_INTERFACE_BELOW; 4827 } 4823 AssertMsgStmt(pThis->pDrv, ("Failed to obtain the PDMINETWORKCONNECTOR interface!\n"), 4824 rc = VERR_PDM_MISSING_INTERFACE_BELOW); 4828 4825 } 4829 4826 else if (rc == VERR_PDM_NO_ATTACHED_DRIVER) … … 5213 5210 } 5214 5211 pThis->pDrv = PDMIBASE_QUERY_INTERFACE(pThis->pDrvBase, PDMINETWORKCONNECTOR); 5215 if (!pThis->pDrv) 5216 { 5217 AssertMsgFailed(("Failed to obtain the PDMINTERFACE_NETWORK_CONNECTOR interface!\n")); 5218 return VERR_PDM_MISSING_INTERFACE_BELOW; 5219 } 5212 AssertMsgReturn(pThis->pDrv, ("Failed to obtain the PDMINETWORKCONNECTOR interface!\n"), 5213 VERR_PDM_MISSING_INTERFACE_BELOW); 5220 5214 } 5221 5215 else if (rc == VERR_PDM_NO_ATTACHED_DRIVER) -
trunk/src/VBox/Devices/Network/DevVirtioNet.cpp
r25981 r25986 1563 1563 } 1564 1564 pState->pDrv = PDMIBASE_QUERY_INTERFACE(pState->pDrvBase, PDMINETWORKCONNECTOR); 1565 if (!pState->pDrv) 1566 { 1567 AssertMsgFailed(("%s Failed to obtain the PDMINTERFACE_NETWORK_CONNECTOR interface!\n")); 1568 return VERR_PDM_MISSING_INTERFACE_BELOW; 1569 } 1565 AssertMsgReturn(pState->pDrv, ("Failed to obtain the PDMINETWORKCONNECTOR interface!\n"), 1566 VERR_PDM_MISSING_INTERFACE_BELOW); 1570 1567 } 1571 1568 else if (rc == VERR_PDM_NO_ATTACHED_DRIVER) … … 1744 1741 } 1745 1742 pState->pDrv = PDMIBASE_QUERY_INTERFACE(pState->pDrvBase, PDMINETWORKCONNECTOR); 1746 if (!pState->pDrv) 1747 { 1748 AssertMsgFailed(("Failed to obtain the PDMINTERFACE_NETWORK_CONNECTOR interface!\n")); 1749 rc = VERR_PDM_MISSING_INTERFACE_BELOW; 1750 } 1743 AssertMsgStmt(pState->pDrv, ("Failed to obtain the PDMINETWORKCONNECTOR interface!\n"), 1744 rc = VERR_PDM_MISSING_INTERFACE_BELOW); 1751 1745 } 1752 1746 else if (rc == VERR_PDM_NO_ATTACHED_DRIVER) -
trunk/src/VBox/Devices/Storage/ATAController.cpp
r25974 r25986 4590 4590 4591 4591 /** 4592 * Queries an interface to the driver. 4593 * 4594 * @returns Pointer to interface. 4595 * @returns NULL if the interface was not supported by the device. 4596 * @param pInterface Pointer to AHCIATADevState::IBase. 4597 * @param enmInterface The requested interface identification. 4592 * @interface_method_impl{PDMIBASE,pfnQueryInterface} 4598 4593 */ 4599 static DECLCALLBACK(void *) ataQueryInterface(PPDMIBASE pInterface, PDMINTERFACE enmInterface) 4600 { 4601 AHCIATADevState *pIf = PDMIBASE_2_ATASTATE(pInterface); 4602 switch (enmInterface) 4603 { 4604 case PDMINTERFACE_BASE: 4605 return &pIf->IBase; 4606 case PDMINTERFACE_BLOCK_PORT: 4607 return &pIf->IPort; 4608 case PDMINTERFACE_MOUNT_NOTIFY: 4609 return &pIf->IMountNotify; 4610 default: 4611 return NULL; 4612 } 4594 static DECLCALLBACK(void *) ataQueryInterface(PPDMIBASE pInterface, const char *pszIID) 4595 { 4596 ATADevState *pIf = PDMIBASE_2_ATASTATE(pInterface); 4597 PDMIBASE_RETURN_INTERFACE(pszIID, PDMIBASE, &pIf->IBase); 4598 PDMIBASE_RETURN_INTERFACE(pszIID, PDMIBLOCKPORT, &pIf->IPort); 4599 PDMIBASE_RETURN_INTERFACE(pszIID, PDMIMOUNTNOTIFY, &pIf->IMountNotify); 4600 return NULL; 4613 4601 } 4614 4602 #endif -
trunk/src/VBox/Devices/Storage/DrvHostBase.cpp
r25985 r25986 818 818 */ 819 819 CFMutableDictionaryRef PropsRef = 0; 820 k ern_return_t krc = IORegistryEntryCreateCFProperties(DVDService, &PropsRef, kCFAllocatorDefault, kNilOptions);820 krc = IORegistryEntryCreateCFProperties(DVDService, &PropsRef, kCFAllocatorDefault, kNilOptions); 821 821 if (krc == KERN_SUCCESS) 822 822 {
Note:
See TracChangeset
for help on using the changeset viewer.