Changeset 64274 in vbox
- Timestamp:
- Oct 14, 2016 10:33:43 AM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 111287
- Location:
- trunk
- Files:
-
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/pci.h
r63690 r64274 87 87 * state to reflect this. 88 88 * 89 * @param cb Size of the region in bytes. 89 90 * @param enmType One of the PCI_ADDRESS_SPACE_* values. 90 91 * -
trunk/include/VBox/vd-ifs.h
r64272 r64274 1152 1152 * @retval VERR_NOT_SUPPORTED if the combination of flags is not supported. 1153 1153 * @param fFlags Combination of the VD_INTERFACETCPNET_CONNECT_* \#defines. 1154 * @param p SockWhere to store the handle.1155 */ 1156 DECLR3CALLBACKMEMBER(int, pfnSocketCreate, (uint32_t fFlags, PVDSOCKET p Sock));1154 * @param phVdSock Where to store the handle. 1155 */ 1156 DECLR3CALLBACKMEMBER(int, pfnSocketCreate, (uint32_t fFlags, PVDSOCKET phVdSock)); 1157 1157 1158 1158 /** … … 1160 1160 * 1161 1161 * @return iprt status code. 1162 * @param SockSocket handle (/ pointer).1163 */ 1164 DECLR3CALLBACKMEMBER(int, pfnSocketDestroy, (VDSOCKET Sock));1162 * @param hVdSock Socket handle (/ pointer). 1163 */ 1164 DECLR3CALLBACKMEMBER(int, pfnSocketDestroy, (VDSOCKET hVdSock)); 1165 1165 1166 1166 /** … … 1168 1168 * 1169 1169 * @return iprt status code. 1170 * @param SockSocket handle (/ pointer)..1170 * @param hVdSock Socket handle (/ pointer).. 1171 1171 * @param pszAddress The address to connect to. 1172 1172 * @param uPort The port to connect to. … … 1176 1176 * configured on the running system. 1177 1177 */ 1178 DECLR3CALLBACKMEMBER(int, pfnClientConnect, (VDSOCKET Sock, const char *pszAddress, uint32_t uPort,1178 DECLR3CALLBACKMEMBER(int, pfnClientConnect, (VDSOCKET hVdSock, const char *pszAddress, uint32_t uPort, 1179 1179 RTMSINTERVAL cMillies)); 1180 1180 … … 1183 1183 * 1184 1184 * @return iprt status code. 1185 * @param SockSocket handle (/ pointer).1186 */ 1187 DECLR3CALLBACKMEMBER(int, pfnClientClose, (VDSOCKET Sock));1185 * @param hVdSock Socket handle (/ pointer). 1186 */ 1187 DECLR3CALLBACKMEMBER(int, pfnClientClose, (VDSOCKET hVdSock)); 1188 1188 1189 1189 /** … … 1192 1192 * @returns true if the socket is connected. 1193 1193 * false otherwise. 1194 * @param SockSocket handle (/ pointer).1195 */ 1196 DECLR3CALLBACKMEMBER(bool, pfnIsClientConnected, (VDSOCKET Sock));1194 * @param hVdSock Socket handle (/ pointer). 1195 */ 1196 DECLR3CALLBACKMEMBER(bool, pfnIsClientConnected, (VDSOCKET hVdSock)); 1197 1197 1198 1198 /** … … 1201 1201 * 1202 1202 * @return iprt status code. 1203 * @param SockSocket handle (/ pointer).1203 * @param hVdSock Socket handle (/ pointer). 1204 1204 * @param cMillies Number of milliseconds to wait for the socket. 1205 1205 * Use RT_INDEFINITE_WAIT to wait for ever. 1206 1206 */ 1207 DECLR3CALLBACKMEMBER(int, pfnSelectOne, (VDSOCKET Sock, RTMSINTERVAL cMillies));1207 DECLR3CALLBACKMEMBER(int, pfnSelectOne, (VDSOCKET hVdSock, RTMSINTERVAL cMillies)); 1208 1208 1209 1209 /** … … 1211 1211 * 1212 1212 * @return iprt status code. 1213 * @param SockSocket handle (/ pointer).1213 * @param hVdSock Socket handle (/ pointer). 1214 1214 * @param pvBuffer Where to put the data we read. 1215 1215 * @param cbBuffer Read buffer size. … … 1218 1218 * If not NULL a partial read can be done successfully. 1219 1219 */ 1220 DECLR3CALLBACKMEMBER(int, pfnRead, (VDSOCKET Sock, void *pvBuffer, size_t cbBuffer, size_t *pcbRead));1220 DECLR3CALLBACKMEMBER(int, pfnRead, (VDSOCKET hVdSock, void *pvBuffer, size_t cbBuffer, size_t *pcbRead)); 1221 1221 1222 1222 /** … … 1224 1224 * 1225 1225 * @return iprt status code. 1226 * @param SockSocket handle (/ pointer).1226 * @param hVdSock Socket handle (/ pointer). 1227 1227 * @param pvBuffer Buffer to write data to socket. 1228 1228 * @param cbBuffer How much to write. 1229 1229 */ 1230 DECLR3CALLBACKMEMBER(int, pfnWrite, (VDSOCKET Sock, const void *pvBuffer, size_t cbBuffer));1230 DECLR3CALLBACKMEMBER(int, pfnWrite, (VDSOCKET hVdSock, const void *pvBuffer, size_t cbBuffer)); 1231 1231 1232 1232 /** … … 1234 1234 * 1235 1235 * @return iprt status code. 1236 * @param SockSocket handle (/ pointer).1237 * @param pSgBuf ferScatter/gather buffer to write data to socket.1238 */ 1239 DECLR3CALLBACKMEMBER(int, pfnSgWrite, (VDSOCKET Sock, PCRTSGBUF pSgBuffer));1236 * @param hVdSock Socket handle (/ pointer). 1237 * @param pSgBuf Scatter/gather buffer to write data to socket. 1238 */ 1239 DECLR3CALLBACKMEMBER(int, pfnSgWrite, (VDSOCKET hVdSock, PCRTSGBUF pSgBuf)); 1240 1240 1241 1241 /** … … 1243 1243 * 1244 1244 * @return iprt status code. 1245 * @param SockSocket handle (/ pointer).1245 * @param hVdSock Socket handle (/ pointer). 1246 1246 * @param pvBuffer Where to put the data we read. 1247 1247 * @param cbBuffer Read buffer size. 1248 1248 * @param pcbRead Number of bytes read. 1249 1249 */ 1250 DECLR3CALLBACKMEMBER(int, pfnReadNB, (VDSOCKET Sock, void *pvBuffer, size_t cbBuffer, size_t *pcbRead));1250 DECLR3CALLBACKMEMBER(int, pfnReadNB, (VDSOCKET hVdSock, void *pvBuffer, size_t cbBuffer, size_t *pcbRead)); 1251 1251 1252 1252 /** … … 1254 1254 * 1255 1255 * @return iprt status code. 1256 * @param SockSocket handle (/ pointer).1256 * @param hVdSock Socket handle (/ pointer). 1257 1257 * @param pvBuffer Buffer to write data to socket. 1258 1258 * @param cbBuffer How much to write. 1259 1259 * @param pcbWritten Number of bytes written. 1260 1260 */ 1261 DECLR3CALLBACKMEMBER(int, pfnWriteNB, (VDSOCKET Sock, const void *pvBuffer, size_t cbBuffer, size_t *pcbWritten));1261 DECLR3CALLBACKMEMBER(int, pfnWriteNB, (VDSOCKET hVdSock, const void *pvBuffer, size_t cbBuffer, size_t *pcbWritten)); 1262 1262 1263 1263 /** … … 1265 1265 * 1266 1266 * @return iprt status code. 1267 * @param SockSocket handle (/ pointer).1268 * @param pSgBuf ferScatter/gather buffer to write data to socket.1267 * @param hVdSock Socket handle (/ pointer). 1268 * @param pSgBuf Scatter/gather buffer to write data to socket. 1269 1269 * @param pcbWritten Number of bytes written. 1270 1270 */ 1271 DECLR3CALLBACKMEMBER(int, pfnSgWriteNB, (VDSOCKET Sock, PRTSGBUF pSgBuffer, size_t *pcbWritten));1271 DECLR3CALLBACKMEMBER(int, pfnSgWriteNB, (VDSOCKET hVdSock, PRTSGBUF pSgBuf, size_t *pcbWritten)); 1272 1272 1273 1273 /** … … 1275 1275 * 1276 1276 * @return iprt status code. 1277 * @param SockSocket handle (/ pointer).1278 */ 1279 DECLR3CALLBACKMEMBER(int, pfnFlush, (VDSOCKET Sock));1277 * @param hVdSock Socket handle (/ pointer). 1278 */ 1279 DECLR3CALLBACKMEMBER(int, pfnFlush, (VDSOCKET hVdSock)); 1280 1280 1281 1281 /** … … 1283 1283 * 1284 1284 * @return iprt status code. 1285 * @param SockSocket handle (/ pointer).1285 * @param hVdSock Socket handle (/ pointer). 1286 1286 * @param fEnable When set to true enables coalescing. 1287 1287 */ 1288 DECLR3CALLBACKMEMBER(int, pfnSetSendCoalescing, (VDSOCKET Sock, bool fEnable));1288 DECLR3CALLBACKMEMBER(int, pfnSetSendCoalescing, (VDSOCKET hVdSock, bool fEnable)); 1289 1289 1290 1290 /** … … 1292 1292 * 1293 1293 * @return iprt status code. 1294 * @param SockSocket handle (/ pointer).1294 * @param hVdSock Socket handle (/ pointer). 1295 1295 * @param pAddr Where to store the local address on success. 1296 1296 */ 1297 DECLR3CALLBACKMEMBER(int, pfnGetLocalAddress, (VDSOCKET Sock, PRTNETADDR pAddr));1297 DECLR3CALLBACKMEMBER(int, pfnGetLocalAddress, (VDSOCKET hVdSock, PRTNETADDR pAddr)); 1298 1298 1299 1299 /** … … 1301 1301 * 1302 1302 * @return iprt status code. 1303 * @param SockSocket handle (/ pointer).1303 * @param hVdSock Socket handle (/ pointer). 1304 1304 * @param pAddr Where to store the peer address on success. 1305 1305 */ 1306 DECLR3CALLBACKMEMBER(int, pfnGetPeerAddress, (VDSOCKET Sock, PRTNETADDR pAddr));1306 DECLR3CALLBACKMEMBER(int, pfnGetPeerAddress, (VDSOCKET hVdSock, PRTNETADDR pAddr)); 1307 1307 1308 1308 /** … … 1318 1318 * Use RT_INDEFINITE_WAIT to wait for ever. 1319 1319 */ 1320 DECLR3CALLBACKMEMBER(int, pfnSelectOneEx, (VDSOCKET Sock, uint32_t fEvents,1320 DECLR3CALLBACKMEMBER(int, pfnSelectOneEx, (VDSOCKET hVdSock, uint32_t fEvents, 1321 1321 uint32_t *pfEvents, RTMSINTERVAL cMillies)); 1322 1322 … … 1327 1327 * @param hVdSock VD Socket handle(/pointer). 1328 1328 */ 1329 DECLR3CALLBACKMEMBER(int, pfnPoke, (VDSOCKET Sock));1329 DECLR3CALLBACKMEMBER(int, pfnPoke, (VDSOCKET hVdSock)); 1330 1330 1331 1331 } VDINTERFACETCPNET, *PVDINTERFACETCPNET; -
trunk/include/VBox/vmm/pdmstorageifs.h
r64131 r64274 291 291 * @param enmTxDir Direction of transfer. 292 292 * @param pvBuf Pointer tp the transfer buffer. 293 * @param cbBuf Size of the transfer buffer. 294 * @param pbSenseKey Status of the command (when return value is VERR_DEV_IO_ERROR). 293 * @param pcbBuf Size of the transfer buffer. 294 * @param pabSense Status of the command (when return value is VERR_DEV_IO_ERROR). 295 * @param cbSense Size of the sense buffer in bytes. 295 296 * @param cTimeoutMillies Command timeout in milliseconds. 296 297 * @thread Any thread. 297 298 */ 298 DECLR3CALLBACKMEMBER(int, pfnSendCmd,(PPDMIMEDIA pInterface, const uint8_t *pbCmd, PDMMEDIATXDIR enmTxDir, void *pvBuf, uint32_t *pcbBuf, uint8_t *pabSense, size_t cbSense, uint32_t cTimeoutMillies)); 299 DECLR3CALLBACKMEMBER(int, pfnSendCmd,(PPDMIMEDIA pInterface, const uint8_t *pbCmd, PDMMEDIATXDIR enmTxDir, 300 void *pvBuf, uint32_t *pcbBuf, uint8_t *pabSense, size_t cbSense, 301 uint32_t cTimeoutMillies)); 299 302 300 303 /** -
trunk/include/VBox/vscsi.h
r64132 r64274 119 119 * 120 120 * @returns VBox status code. 121 * @param pInterface Pointer to the interface structure containing the called function pointer. 122 * @param cbIoReqAlloc The size of the allocator specific memory in bytes. 121 * @param hVScsiLun Virtual SCSI LUN handle. 122 * @param pvScsiLunUser Opaque user data which may be used to identify the 123 * medium. 124 * @param cbVScsiIoReqAlloc The size of the allocator specific memory in bytes. 123 125 * @thread EMT. 124 126 */ -
trunk/src/VBox/Devices/Storage/ATAPIPassthrough.cpp
r63369 r64274 307 307 * @returns VBox status code. 308 308 * @param pTrackList The track list to update. 309 * @param iTrack The first track the TOC has data for. 309 310 * @param fMSF Flag whether block addresses are in MSF or LBA format. 310 311 * @param pbBuf Buffer holding the formatted TOC. -
trunk/src/VBox/Devices/Storage/DevAHCI.cpp
r64209 r64274 2020 2020 * Hardware reset used for machine power on and reset. 2021 2021 * 2022 * @param pAhci port The port to reset.2022 * @param pAhciPort The port to reset. 2023 2023 */ 2024 2024 static void ahciPortHwReset(PAHCIPort pAhciPort) … … 2361 2361 * @param pvUser User argument. 2362 2362 * @param Port Port address where the write starts. 2363 * @param pvWhere to fetch the result.2363 * @param u32 Where to fetch the result. 2364 2364 * @param cb Number of bytes to write. 2365 2365 */ … … 2405 2405 * @param pvUser User argument. 2406 2406 * @param Port Port address where the read starts. 2407 * @param p vWhere to fetch the result.2407 * @param pu32 Where to fetch the result. 2408 2408 * @param cb Number of bytes to write. 2409 2409 */ … … 3570 3570 * @returns Whether all active tasks were canceled. 3571 3571 * @param pAhciPort The AHCI port. 3572 * @param pAhciReqExcept The given request is excepted from the cancelling3573 * (used for error page reading).3574 3572 */ 3575 3573 static bool ahciCancelActiveTasks(PAHCIPort pAhciPort) … … 3690 3688 * @returns nothing. 3691 3689 * @param pAhciPort The AHCI port. 3690 * @param pAhciReq The request to free. 3692 3691 */ 3693 3692 static void ahciR3ReqFree(PAHCIPort pAhciPort, PAHCIREQ pAhciReq) … … 4026 4025 * 4027 4026 * @returns The direction of the data transfer 4028 * @param pCmdHdr Pointer to the command header. 4027 * @param pAhciPort The AHCI port of the request. 4028 * @param pAhciReq The AHCI request state. 4029 * @param pCmdFis Pointer to the command FIS. 4029 4030 */ 4030 4031 static PDMMEDIAEXIOREQTYPE ahciProcessCmd(PAHCIPort pAhciPort, PAHCIREQ pAhciReq, uint8_t *pCmdFis) … … 4304 4305 * 4305 4306 * @returns whether the H2D FIS was successfully read from the guest memory. 4306 * @param pAhciReq The state of the actual task. 4307 * @param pAhciPort The AHCI port of the request. 4308 * @param pAhciReq The state of the actual task. 4307 4309 */ 4308 4310 static bool ahciPortTaskGetCommandFis(PAHCIPort pAhciPort, PAHCIREQ pAhciReq) … … 5337 5339 5338 5340 /** 5339 * Callback employed by ahciR3Suspend and ahciR3PowerOff. .5341 * Callback employed by ahciR3Suspend and ahciR3PowerOff. 5340 5342 * 5341 5343 * @returns true if we've quiesced, false if we're still working. … … 5419 5421 * @param pDevIns The device instance. 5420 5422 * @param pAhciPort The attached device. 5421 * @param szNameName of the port to get the CFGM node.5423 * @param pszName Name of the port to get the CFGM node. 5422 5424 */ 5423 5425 static int ahciR3VpdInit(PPDMDEVINS pDevIns, PAHCIPort pAhciPort, const char *pszName) … … 5661 5663 * @param pDevIns The device instance data. 5662 5664 */ 5663 static int ahciR3ResetCommon(PPDMDEVINS pDevIns, bool fConstructor) 5664 { 5665 RT_NOREF(fConstructor); 5665 static int ahciR3ResetCommon(PPDMDEVINS pDevIns) 5666 { 5666 5667 PAHCI pAhci = PDMINS_2_DATA(pDevIns, PAHCI); 5667 5668 … … 5688 5689 ASMAtomicWriteBool(&pThis->fSignalIdle, false); 5689 5690 5690 ahciR3ResetCommon(pDevIns , false /*fConstructor*/);5691 ahciR3ResetCommon(pDevIns); 5691 5692 return true; 5692 5693 } … … 5707 5708 { 5708 5709 ASMAtomicWriteBool(&pThis->fSignalIdle, false); 5709 ahciR3ResetCommon(pDevIns , false /*fConstructor*/);5710 ahciR3ResetCommon(pDevIns); 5710 5711 } 5711 5712 } … … 6132 6133 PDMDevHlpDBGFInfoRegister(pDevIns, szTmp, "AHCI info", ahciR3Info); 6133 6134 6134 return ahciR3ResetCommon(pDevIns , true /*fConstructor*/);6135 return ahciR3ResetCommon(pDevIns); 6135 6136 } 6136 6137 -
trunk/src/VBox/Devices/Storage/DevATA.cpp
r64093 r64274 6118 6118 * I/O port, else it's a physical address. 6119 6119 * This address is *NOT* relative to pci_mem_base like earlier! 6120 * @param cb Size of the region in bytes. 6120 6121 * @param enmType One of the PCI_ADDRESS_SPACE_* values. 6121 6122 */ … … 6645 6646 * @returns true on success. 6646 6647 * @returns false when one or more threads is still processing. 6647 * @param p This Pointer to the instance data.6648 * @param pDevIns Pointer to the PDM device instance. 6648 6649 */ 6649 6650 static bool ataR3AllAsyncIOIsIdle(PPDMDEVINS pDevIns) -
trunk/src/VBox/Devices/Storage/DevBusLogic.cpp
r64225 r64274 1016 1016 * @param pBusLogic Pointer to the BusLogic device instance. 1017 1017 * @param fSuppressIrq Flag to suppress IRQ generation regardless of fIRQEnabled 1018 * @param u FlagType of interrupt being generated.1018 * @param uIrqType Type of interrupt being generated. 1019 1019 */ 1020 1020 static void buslogicSetInterrupt(PBUSLOGIC pBusLogic, bool fSuppressIrq, uint8_t uIrqType) … … 1047 1047 * Deasserts the interrupt line of the BusLogic adapter. 1048 1048 * 1049 * @returns nothing 1050 * @param pBus logic Pointer to the BusLogic device instance.1049 * @returns nothing. 1050 * @param pBusLogic Pointer to the BusLogic device instance. 1051 1051 */ 1052 1052 static void buslogicClearInterrupt(PBUSLOGIC pBusLogic) … … 1068 1068 /** 1069 1069 * Advances the mailbox pointer to the next slot. 1070 * 1071 * @returns nothing. 1072 * @param pBusLogic The BusLogic controller instance. 1070 1073 */ 1071 1074 DECLINLINE(void) buslogicR3OutgoingMailboxAdvance(PBUSLOGIC pBusLogic) … … 1078 1081 * 1079 1082 * @returns nothing. 1080 * @param pBusLogic .1083 * @param pBusLogic The BusLogic controller instance. 1081 1084 */ 1082 1085 static void buslogicR3InitializeLocalRam(PBUSLOGIC pBusLogic) … … 1202 1205 * @param pBusLogic Pointer to the BusLogic device instance. 1203 1206 * @param GCPhysAddrCCB The physical guest address of the CCB the mailbox is for. 1204 * @param pCCBGue tThe command control block.1207 * @param pCCBGuest The command control block. 1205 1208 * @param uHostAdapterStatus The host adapter status code to set. 1206 1209 * @param uDeviceStatus The target device status to set. … … 1381 1384 * @param pCCBGuest The CCB of the guest. 1382 1385 * @param fIs24Bit Flag whether the 24bit SG format is used. 1383 * @para cbSGEntry Size of one SG entry in bytes.1384 1386 * @param pcbBuf Where to store the size of the guest data buffer on success. 1385 1387 */ … … 2496 2498 * @param cb Number of bytes read. 2497 2499 */ 2498 PDMBOTHCBDECL(int) buslogicIOPortRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb)2500 PDMBOTHCBDECL(int) buslogicIOPortRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT uPort, uint32_t *pu32, unsigned cb) 2499 2501 { 2500 2502 PBUSLOGIC pBusLogic = PDMINS_2_DATA(pDevIns, PBUSLOGIC); 2501 unsigned iRegister = Port % 4;2503 unsigned iRegister = uPort % 4; 2502 2504 RT_NOREF_PV(pvUser); RT_NOREF_PV(cb); 2503 2505 … … 2518 2520 * @param cb The value size in bytes. 2519 2521 */ 2520 PDMBOTHCBDECL(int) buslogicIOPortWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb)2522 PDMBOTHCBDECL(int) buslogicIOPortWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT uPort, uint32_t u32, unsigned cb) 2521 2523 { 2522 2524 PBUSLOGIC pBusLogic = PDMINS_2_DATA(pDevIns, PBUSLOGIC); 2523 unsigned iRegister = Port % 4;2525 unsigned iRegister = uPort % 4; 2524 2526 uint8_t uVal = (uint8_t)u32; 2525 2527 RT_NOREF2(pvUser, cb); … … 2529 2531 int rc = buslogicRegisterWrite(pBusLogic, iRegister, (uint8_t)uVal); 2530 2532 2531 Log2(("#%d %s: pvUser=%#p cb=%d u32=%#x Port=%#x rc=%Rrc\n",2532 pDevIns->iInstance, __FUNCTION__, pvUser, cb, u32, Port, rc));2533 Log2(("#%d %s: pvUser=%#p cb=%d u32=%#x uPort=%#x rc=%Rrc\n", 2534 pDevIns->iInstance, __FUNCTION__, pvUser, cb, u32, uPort, rc)); 2533 2535 2534 2536 return rc; … … 2610 2612 * @param cb Number of bytes read. 2611 2613 */ 2612 static DECLCALLBACK(int) buslogicR3BiosIoPortRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb)2614 static DECLCALLBACK(int) buslogicR3BiosIoPortRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT uPort, uint32_t *pu32, unsigned cb) 2613 2615 { 2614 2616 RT_NOREF(pvUser, cb); … … 2617 2619 Assert(cb == 1); 2618 2620 2619 int rc = vboxscsiReadRegister(&pBusLogic->VBoxSCSI, ( Port - BUSLOGIC_BIOS_IO_PORT), pu32);2621 int rc = vboxscsiReadRegister(&pBusLogic->VBoxSCSI, (uPort - BUSLOGIC_BIOS_IO_PORT), pu32); 2620 2622 2621 2623 //Log2(("%s: pu32=%p:{%.*Rhxs} iRegister=%d rc=%Rrc\n", 2622 // __FUNCTION__, pu32, 1, pu32, ( Port - BUSLOGIC_BIOS_IO_PORT), rc));2624 // __FUNCTION__, pu32, 1, pu32, (uPort - BUSLOGIC_BIOS_IO_PORT), rc)); 2623 2625 2624 2626 return rc; … … 2636 2638 * @param cb The value size in bytes. 2637 2639 */ 2638 static DECLCALLBACK(int) buslogicR3BiosIoPortWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb)2640 static DECLCALLBACK(int) buslogicR3BiosIoPortWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT uPort, uint32_t u32, unsigned cb) 2639 2641 { 2640 2642 RT_NOREF(pvUser, cb); 2641 2643 PBUSLOGIC pThis = PDMINS_2_DATA(pDevIns, PBUSLOGIC); 2642 Log2(("#%d %s: pvUser=%#p cb=%d u32=%#x Port=%#x\n", pDevIns->iInstance, __FUNCTION__, pvUser, cb, u32,Port));2644 Log2(("#%d %s: pvUser=%#p cb=%d u32=%#x uPort=%#x\n", pDevIns->iInstance, __FUNCTION__, pvUser, cb, u32, uPort)); 2643 2645 2644 2646 /* … … 2651 2653 Assert(cb == 1); 2652 2654 2653 int rc = vboxscsiWriteRegister(&pThis->VBoxSCSI, ( Port - BUSLOGIC_BIOS_IO_PORT), (uint8_t)u32);2655 int rc = vboxscsiWriteRegister(&pThis->VBoxSCSI, (uPort - BUSLOGIC_BIOS_IO_PORT), (uint8_t)u32); 2654 2656 if (rc == VERR_MORE_DATA) 2655 2657 { … … 3746 3748 3747 3749 /** 3748 * Callback employed by buslogicR3Suspend and buslogicR3PowerOff. .3750 * Callback employed by buslogicR3Suspend and buslogicR3PowerOff. 3749 3751 * 3750 3752 * @returns true if we've quiesced, false if we're still working. -
trunk/src/VBox/Devices/Storage/DevFdc.cpp
r63562 r64274 2406 2406 * @callback_method_impl{FNIOMIOPORTOUT} 2407 2407 */ 2408 static DECLCALLBACK(int) fdcIoPortWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb)2408 static DECLCALLBACK(int) fdcIoPortWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT uPort, uint32_t u32, unsigned cb) 2409 2409 { 2410 2410 RT_NOREF(pDevIns); 2411 2411 if (cb == 1) 2412 fdctrl_write (pvUser, Port & 7, u32);2412 fdctrl_write (pvUser, uPort & 7, u32); 2413 2413 else 2414 AssertMsgFailed((" Port=%#x cb=%d u32=%#x\n",Port, cb, u32));2414 AssertMsgFailed(("uPort=%#x cb=%d u32=%#x\n", uPort, cb, u32)); 2415 2415 return VINF_SUCCESS; 2416 2416 } … … 2418 2418 2419 2419 /** 2420 * @callback_method_impl{FNIOMIOPORT OUT}2420 * @callback_method_impl{FNIOMIOPORTIN} 2421 2421 */ 2422 static DECLCALLBACK(int) fdcIoPortRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb)2422 static DECLCALLBACK(int) fdcIoPortRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT uPort, uint32_t *pu32, unsigned cb) 2423 2423 { 2424 2424 RT_NOREF(pDevIns); 2425 2425 if (cb == 1) 2426 2426 { 2427 *pu32 = fdctrl_read (pvUser, Port & 7);2427 *pu32 = fdctrl_read (pvUser, uPort & 7); 2428 2428 return VINF_SUCCESS; 2429 2429 } -
trunk/src/VBox/Devices/Storage/DevLsiLogicSCSI.cpp
r64225 r64274 1688 1688 * @callback_method_impl{FNIOMIOPORTOUT} 1689 1689 */ 1690 PDMBOTHCBDECL(int) lsilogicIOPortWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb)1690 PDMBOTHCBDECL(int) lsilogicIOPortWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT uPort, uint32_t u32, unsigned cb) 1691 1691 { 1692 1692 PLSILOGICSCSI pThis = PDMINS_2_DATA(pDevIns, PLSILOGICSCSI); 1693 uint32_t offReg = Port - pThis->IOPortBase;1693 uint32_t offReg = uPort - pThis->IOPortBase; 1694 1694 int rc; 1695 1695 RT_NOREF2(pvUser, cb); … … 1713 1713 * @callback_method_impl{FNIOMIOPORTIN} 1714 1714 */ 1715 PDMBOTHCBDECL(int) lsilogicIOPortRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb)1715 PDMBOTHCBDECL(int) lsilogicIOPortRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT uPort, uint32_t *pu32, unsigned cb) 1716 1716 { 1717 1717 PLSILOGICSCSI pThis = PDMINS_2_DATA(pDevIns, PLSILOGICSCSI); 1718 uint32_t offReg = Port - pThis->IOPortBase;1718 uint32_t offReg = uPort - pThis->IOPortBase; 1719 1719 RT_NOREF_PV(pvUser); 1720 1720 RT_NOREF_PV(cb); … … 2311 2311 2312 2312 /** 2313 * @interface_method_impl{PDMIMEDIA ,pfnQueryDeviceLocation}2313 * @interface_method_impl{PDMIMEDIAPORT,pfnQueryDeviceLocation} 2314 2314 */ 2315 2315 static DECLCALLBACK(int) lsilogicR3QueryDeviceLocation(PPDMIMEDIAPORT pInterface, const char **ppcszController, … … 2427 2427 * @returns VINF_SUCCESS if successful 2428 2428 * VERR_NOT_FOUND if the requested page could be found. 2429 * @param pThis The LsiLogic controller instance data. 2430 * @param pPages The pages supported by the controller. 2429 2431 * @param u8PageNumber Number of the page to get. 2430 2432 * @param ppPageHeader Where to store the pointer to the page header. 2431 2433 * @param ppbPageData Where to store the pointer to the page data. 2434 * @param pcbPage Where to store the size of the page data in bytes on success. 2432 2435 */ 2433 2436 static int lsilogicR3ConfigurationIOUnitPageGetFromNumber(PLSILOGICSCSI pThis, … … 2482 2485 * @returns VINF_SUCCESS if successful 2483 2486 * VERR_NOT_FOUND if the requested page could be found. 2487 * @param pThis The LsiLogic controller instance data. 2488 * @param pPages The pages supported by the controller. 2484 2489 * @param u8PageNumber Number of the page to get. 2485 2490 * @param ppPageHeader Where to store the pointer to the page header. 2486 2491 * @param ppbPageData Where to store the pointer to the page data. 2492 * @param pcbPage Where to store the size of the page data in bytes on success. 2487 2493 */ 2488 2494 static int lsilogicR3ConfigurationIOCPageGetFromNumber(PLSILOGICSCSI pThis, … … 2542 2548 * @returns VINF_SUCCESS if successful 2543 2549 * VERR_NOT_FOUND if the requested page could be found. 2550 * @param pThis The LsiLogic controller instance data. 2551 * @param pPages The pages supported by the controller. 2544 2552 * @param u8PageNumber Number of the page to get. 2545 2553 * @param ppPageHeader Where to store the pointer to the page header. 2546 2554 * @param ppbPageData Where to store the pointer to the page data. 2555 * @param pcbPage Where to store the size of the page data in bytes on success. 2547 2556 */ 2548 2557 static int lsilogicR3ConfigurationManufacturingPageGetFromNumber(PLSILOGICSCSI pThis, … … 2631 2640 * @returns VINF_SUCCESS if successful 2632 2641 * VERR_NOT_FOUND if the requested page could be found. 2642 * @param pThis The LsiLogic controller instance data. 2643 * @param pPages The pages supported by the controller. 2633 2644 * @param u8PageNumber Number of the page to get. 2634 2645 * @param ppPageHeader Where to store the pointer to the page header. 2635 2646 * @param ppbPageData Where to store the pointer to the page data. 2647 * @param pcbPage Where to store the size of the page data in bytes on success. 2636 2648 */ 2637 2649 static int lsilogicR3ConfigurationBiosPageGetFromNumber(PLSILOGICSCSI pThis, … … 2676 2688 * @returns VINF_SUCCESS if successful 2677 2689 * VERR_NOT_FOUND if the requested page could be found. 2690 * @param pThis The LsiLogic controller instance data. 2691 * @param pPages The pages supported by the controller. 2692 * @param u8Port The port to retrieve the page for. 2678 2693 * @param u8PageNumber Number of the page to get. 2679 2694 * @param ppPageHeader Where to store the pointer to the page header. 2680 2695 * @param ppbPageData Where to store the pointer to the page data. 2696 * @param pcbPage Where to store the size of the page data in bytes on success. 2681 2697 */ 2682 2698 static int lsilogicR3ConfigurationSCSISPIPortPageGetFromNumber(PLSILOGICSCSI pThis, … … 2725 2741 * @returns VINF_SUCCESS if successful 2726 2742 * VERR_NOT_FOUND if the requested page could be found. 2743 * @param pThis The LsiLogic controller instance data. 2744 * @param pPages The pages supported by the controller. 2745 * @param u8Bus The bus the device is on the page should be returned. 2746 * @param u8TargetID The target ID of the device to return the page for. 2727 2747 * @param u8PageNumber Number of the page to get. 2728 2748 * @param ppPageHeader Where to store the pointer to the page header. 2729 2749 * @param ppbPageData Where to store the pointer to the page data. 2750 * @param pcbPage Where to store the size of the page data in bytes on success. 2730 2751 */ 2731 2752 static int lsilogicR3ConfigurationSCSISPIDevicePageGetFromNumber(PLSILOGICSCSI pThis, … … 2975 2996 * @param pThis Pointer to the LsiLogic device state. 2976 2997 * @param pConfigurationReq The configuration request. 2977 * @param u8PageNumber Number of the page to get. 2978 * @param ppPageHeader Where to store the pointer to the page header. 2998 * @param ppPageHeader Where to return the pointer to the page header on success. 2979 2999 * @param ppbPageData Where to store the pointer to the page data. 3000 * @param pcbPage Where to store the size of the page in bytes. 2980 3001 */ 2981 3002 static int lsilogicR3ConfigurationPageGetExtended(PLSILOGICSCSI pThis, PMptConfigurationRequest pConfigurationReq, … … 4957 4978 4958 4979 /** 4959 * @interface_method_impl{PDMILEDPORTS,pfnQuery Interface, For a SCSI device.}4980 * @interface_method_impl{PDMILEDPORTS,pfnQueryStatusLed, For a SCSI device.} 4960 4981 * 4961 4982 * @remarks Called by the scsi driver, proxying the main calls. -
trunk/src/VBox/Devices/Storage/DrvDiskIntegrity.cpp
r64019 r64274 375 375 * @param cSeg Number of segments. 376 376 * @param off Start offset. 377 * @param cb WriteNumber of bytes to verify.377 * @param cbRead Number of bytes to verify. 378 378 */ 379 379 static int drvdiskintReadVerify(PDRVDISKINTEGRITY pThis, PCRTSGSEG paSeg, unsigned cSeg, -
trunk/src/VBox/Devices/Storage/DrvHostBase.cpp
r64252 r64274 133 133 /* -=-=-=-=- IBlock -=-=-=-=- */ 134 134 135 /** @interface_method_impl{PDMI BLOCK,pfnRead} */135 /** @interface_method_impl{PDMIMEDIA,pfnRead} */ 136 136 static DECLCALLBACK(int) drvHostBaseRead(PPDMIMEDIA pInterface, uint64_t off, void *pvBuf, size_t cbRead) 137 137 { … … 171 171 172 172 173 /** @interface_method_impl{PDMI BLOCK,pfnWrite} */173 /** @interface_method_impl{PDMIMEDIA,pfnWrite} */ 174 174 static DECLCALLBACK(int) drvHostBaseWrite(PPDMIMEDIA pInterface, uint64_t off, const void *pvBuf, size_t cbWrite) 175 175 { … … 212 212 213 213 214 /** @interface_method_impl{PDMI BLOCK,pfnFlush} */214 /** @interface_method_impl{PDMIMEDIA,pfnFlush} */ 215 215 static DECLCALLBACK(int) drvHostBaseFlush(PPDMIMEDIA pInterface) 216 216 { … … 232 232 233 233 234 /** @interface_method_impl{PDMI BLOCK,pfnIsReadOnly} */234 /** @interface_method_impl{PDMIMEDIA,pfnIsReadOnly} */ 235 235 static DECLCALLBACK(bool) drvHostBaseIsReadOnly(PPDMIMEDIA pInterface) 236 236 { … … 248 248 249 249 250 /** @interface_method_impl{PDMI BLOCK,pfnGetSize} */250 /** @interface_method_impl{PDMIMEDIA,pfnGetSize} */ 251 251 static DECLCALLBACK(uint64_t) drvHostBaseGetSize(PPDMIMEDIA pInterface) 252 252 { … … 264 264 265 265 266 /** @interface_method_impl{PDMI BLOCK,pfnGetType} */266 /** @interface_method_impl{PDMIMEDIA,pfnGetType} */ 267 267 static DECLCALLBACK(PDMMEDIATYPE) drvHostBaseGetType(PPDMIMEDIA pInterface) 268 268 { … … 273 273 274 274 275 /** @interface_method_impl{PDMI BLOCK,pfnGetUuid} */275 /** @interface_method_impl{PDMIMEDIA,pfnGetUuid} */ 276 276 static DECLCALLBACK(int) drvHostBaseGetUuid(PPDMIMEDIA pInterface, PRTUUID pUuid) 277 277 { … … 285 285 286 286 287 /** @interface_method_impl{PDMI BLOCKBIOS,pfnBiosGetPCHSGeometry} */287 /** @interface_method_impl{PDMIMEDIA,pfnBiosGetPCHSGeometry} */ 288 288 static DECLCALLBACK(int) drvHostBaseGetPCHSGeometry(PPDMIMEDIA pInterface, PPDMMEDIAGEOMETRY pPCHSGeometry) 289 289 { … … 313 313 314 314 315 /** @interface_method_impl{PDMI BLOCKBIOS,pfnBiosSetPCHSGeometry} */315 /** @interface_method_impl{PDMIMEDIA,pfnBiosSetPCHSGeometry} */ 316 316 static DECLCALLBACK(int) drvHostBaseSetPCHSGeometry(PPDMIMEDIA pInterface, PCPDMMEDIAGEOMETRY pPCHSGeometry) 317 317 { … … 337 337 338 338 339 /** @interface_method_impl{PDMI BLOCKBIOS,pfnGetLCHSGeometry} */339 /** @interface_method_impl{PDMIMEDIA,pfnBiosGetLCHSGeometry} */ 340 340 static DECLCALLBACK(int) drvHostBaseGetLCHSGeometry(PPDMIMEDIA pInterface, PPDMMEDIAGEOMETRY pLCHSGeometry) 341 341 { … … 365 365 366 366 367 /** @interface_method_impl{PDMI BLOCKBIOS,pfnSetLCHSGeometry} */367 /** @interface_method_impl{PDMIMEDIA,pfnBiosSetLCHSGeometry} */ 368 368 static DECLCALLBACK(int) drvHostBaseSetLCHSGeometry(PPDMIMEDIA pInterface, PCPDMMEDIAGEOMETRY pLCHSGeometry) 369 369 { … … 389 389 390 390 391 /** @interface_method_impl{PDMI BLOCKBIOS,pfnIsVisible} */391 /** @interface_method_impl{PDMIMEDIA,pfnBiosIsVisible} */ 392 392 static DECLCALLBACK(bool) drvHostBaseIsVisible(PPDMIMEDIA pInterface) 393 393 { -
trunk/src/VBox/Devices/Storage/DrvRamDisk.cpp
r64019 r64274 309 309 310 310 /** 311 * Verifies a read request.311 * Read data from the ram disk. 312 312 * 313 313 * @returns VBox status code. 314 * @param pThis Disk integritydriver instance data.314 * @param pThis RAM disk driver instance data. 315 315 * @param pSgBuf The S/G buffer to store the data. 316 316 * @param off Start offset. 317 * @param cb Write Number of bytes to verify.317 * @param cbRead Number of bytes to read. 318 318 */ 319 319 static int drvramdiskReadWorker(PDRVRAMDISK pThis, PRTSGBUF pSgBuf, … … 872 872 * 873 873 * @returns VBox status code. 874 * @ paramVINF_PDM_MEDIAEX_IOREQ_IN_PROGRESS if there is no I/O memory available to allocate and874 * @retval VINF_PDM_MEDIAEX_IOREQ_IN_PROGRESS if there is no I/O memory available to allocate and 875 875 * the request was placed on a waiting list. 876 876 * @param pThis VBox disk container instance data. … … 1445 1445 1446 1446 /** 1447 * @interface_method_impl{PDMIMEDIAEX,pfnIoReqQuerySuspended First}1447 * @interface_method_impl{PDMIMEDIAEX,pfnIoReqQuerySuspendedStart} 1448 1448 */ 1449 1449 static DECLCALLBACK(int) drvramdiskIoReqQuerySuspendedStart(PPDMIMEDIAEX pInterface, PPDMMEDIAEXIOREQ phIoReq, -
trunk/src/VBox/Devices/Storage/DrvVD.cpp
r64093 r64274 71 71 * useful for those nasty problems with the ultra-slow host filesystems. 72 72 * If this is enabled, it can be configured via the CFGM key 73 * "VBoxInternal/Devices/piix3ide/0/LUN#<x>/Config/FlushInterval". <x>73 * "VBoxInternal/Devices/piix3ide/0/LUN#<x>/Config/FlushInterval". @verbatim<x>@endverbatim 74 74 * must be replaced with the correct LUN number of the disk that should 75 75 * do the periodic flushes. The value of the key is the number of bytes … … 83 83 * the periodic flush cache feature above. 84 84 * If this feature is enabled, it can be configured via the CFGM key 85 * "VBoxInternal/Devices/piix3ide/0/LUN#<x>/Config/IgnoreFlush". <x>85 * "VBoxInternal/Devices/piix3ide/0/LUN#<x>/Config/IgnoreFlush". @verbatim<x>@endverbatim 86 86 * must be replaced with the correct LUN number of the disk that should 87 87 * ignore flush requests. The value of the key is a boolean. The default … … 1349 1349 1350 1350 /** @interface_method_impl{VDINTERFACETCPNET,pfnSocketCreate} */ 1351 static DECLCALLBACK(int) drvvdTcpSocketCreate(uint32_t fFlags, PVDSOCKET p Sock)1351 static DECLCALLBACK(int) drvvdTcpSocketCreate(uint32_t fFlags, PVDSOCKET phVdSock) 1352 1352 { 1353 1353 int rc = VINF_SUCCESS; … … 1379 1379 if (RT_SUCCESS(rc)) 1380 1380 { 1381 *p Sock = pSockInt;1381 *phVdSock = pSockInt; 1382 1382 return VINF_SUCCESS; 1383 1383 } … … 1396 1396 else 1397 1397 { 1398 *p Sock = pSockInt;1398 *phVdSock = pSockInt; 1399 1399 return VINF_SUCCESS; 1400 1400 } … … 1406 1406 1407 1407 /** @interface_method_impl{VDINTERFACETCPNET,pfnSocketDestroy} */ 1408 static DECLCALLBACK(int) drvvdTcpSocketDestroy(VDSOCKET Sock)1408 static DECLCALLBACK(int) drvvdTcpSocketDestroy(VDSOCKET hVdSock) 1409 1409 { 1410 1410 int rc = VINF_SUCCESS; 1411 PVDSOCKETINT pSockInt = (PVDSOCKETINT) Sock;1411 PVDSOCKETINT pSockInt = (PVDSOCKETINT)hVdSock; 1412 1412 1413 1413 /* Destroy the pipe and pollset if necessary. */ … … 1438 1438 1439 1439 /** @interface_method_impl{VDINTERFACETCPNET,pfnClientConnect} */ 1440 static DECLCALLBACK(int) drvvdTcpClientConnect(VDSOCKET Sock, const char *pszAddress, uint32_t uPort,1440 static DECLCALLBACK(int) drvvdTcpClientConnect(VDSOCKET hVdSock, const char *pszAddress, uint32_t uPort, 1441 1441 RTMSINTERVAL cMillies) 1442 1442 { 1443 1443 int rc = VINF_SUCCESS; 1444 PVDSOCKETINT pSockInt = (PVDSOCKETINT) Sock;1444 PVDSOCKETINT pSockInt = (PVDSOCKETINT)hVdSock; 1445 1445 1446 1446 rc = RTTcpClientConnectEx(pszAddress, uPort, &pSockInt->hSocket, cMillies, NULL); … … 1466 1466 1467 1467 /** @interface_method_impl{VDINTERFACETCPNET,pfnClientClose} */ 1468 static DECLCALLBACK(int) drvvdTcpClientClose(VDSOCKET Sock)1468 static DECLCALLBACK(int) drvvdTcpClientClose(VDSOCKET hVdSock) 1469 1469 { 1470 1470 int rc = VINF_SUCCESS; 1471 PVDSOCKETINT pSockInt = (PVDSOCKETINT) Sock;1471 PVDSOCKETINT pSockInt = (PVDSOCKETINT)hVdSock; 1472 1472 1473 1473 if (pSockInt->hPollSet != NIL_RTPOLLSET) … … 1484 1484 1485 1485 /** @interface_method_impl{VDINTERFACETCPNET,pfnIsClientConnected} */ 1486 static DECLCALLBACK(bool) drvvdTcpIsClientConnected(VDSOCKET Sock)1487 { 1488 PVDSOCKETINT pSockInt = (PVDSOCKETINT) Sock;1486 static DECLCALLBACK(bool) drvvdTcpIsClientConnected(VDSOCKET hVdSock) 1487 { 1488 PVDSOCKETINT pSockInt = (PVDSOCKETINT)hVdSock; 1489 1489 1490 1490 return pSockInt->hSocket != NIL_RTSOCKET; … … 1492 1492 1493 1493 /** @interface_method_impl{VDINTERFACETCPNET,pfnSelectOne} */ 1494 static DECLCALLBACK(int) drvvdTcpSelectOne(VDSOCKET Sock, RTMSINTERVAL cMillies)1495 { 1496 PVDSOCKETINT pSockInt = (PVDSOCKETINT) Sock;1494 static DECLCALLBACK(int) drvvdTcpSelectOne(VDSOCKET hVdSock, RTMSINTERVAL cMillies) 1495 { 1496 PVDSOCKETINT pSockInt = (PVDSOCKETINT)hVdSock; 1497 1497 1498 1498 return RTTcpSelectOne(pSockInt->hSocket, cMillies); … … 1500 1500 1501 1501 /** @interface_method_impl{VDINTERFACETCPNET,pfnRead} */ 1502 static DECLCALLBACK(int) drvvdTcpRead(VDSOCKET Sock, void *pvBuffer, size_t cbBuffer, size_t *pcbRead)1503 { 1504 PVDSOCKETINT pSockInt = (PVDSOCKETINT) Sock;1502 static DECLCALLBACK(int) drvvdTcpRead(VDSOCKET hVdSock, void *pvBuffer, size_t cbBuffer, size_t *pcbRead) 1503 { 1504 PVDSOCKETINT pSockInt = (PVDSOCKETINT)hVdSock; 1505 1505 1506 1506 return RTTcpRead(pSockInt->hSocket, pvBuffer, cbBuffer, pcbRead); … … 1508 1508 1509 1509 /** @interface_method_impl{VDINTERFACETCPNET,pfnWrite} */ 1510 static DECLCALLBACK(int) drvvdTcpWrite(VDSOCKET Sock, const void *pvBuffer, size_t cbBuffer)1511 { 1512 PVDSOCKETINT pSockInt = (PVDSOCKETINT) Sock;1510 static DECLCALLBACK(int) drvvdTcpWrite(VDSOCKET hVdSock, const void *pvBuffer, size_t cbBuffer) 1511 { 1512 PVDSOCKETINT pSockInt = (PVDSOCKETINT)hVdSock; 1513 1513 1514 1514 return RTTcpWrite(pSockInt->hSocket, pvBuffer, cbBuffer); … … 1516 1516 1517 1517 /** @interface_method_impl{VDINTERFACETCPNET,pfnSgWrite} */ 1518 static DECLCALLBACK(int) drvvdTcpSgWrite(VDSOCKET Sock, PCRTSGBUF pSgBuf)1519 { 1520 PVDSOCKETINT pSockInt = (PVDSOCKETINT) Sock;1518 static DECLCALLBACK(int) drvvdTcpSgWrite(VDSOCKET hVdSock, PCRTSGBUF pSgBuf) 1519 { 1520 PVDSOCKETINT pSockInt = (PVDSOCKETINT)hVdSock; 1521 1521 1522 1522 return RTTcpSgWrite(pSockInt->hSocket, pSgBuf); … … 1524 1524 1525 1525 /** @interface_method_impl{VDINTERFACETCPNET,pfnReadNB} */ 1526 static DECLCALLBACK(int) drvvdTcpReadNB(VDSOCKET Sock, void *pvBuffer, size_t cbBuffer, size_t *pcbRead)1527 { 1528 PVDSOCKETINT pSockInt = (PVDSOCKETINT) Sock;1526 static DECLCALLBACK(int) drvvdTcpReadNB(VDSOCKET hVdSock, void *pvBuffer, size_t cbBuffer, size_t *pcbRead) 1527 { 1528 PVDSOCKETINT pSockInt = (PVDSOCKETINT)hVdSock; 1529 1529 1530 1530 return RTTcpReadNB(pSockInt->hSocket, pvBuffer, cbBuffer, pcbRead); … … 1532 1532 1533 1533 /** @interface_method_impl{VDINTERFACETCPNET,pfnWriteNB} */ 1534 static DECLCALLBACK(int) drvvdTcpWriteNB(VDSOCKET Sock, const void *pvBuffer, size_t cbBuffer, size_t *pcbWritten)1535 { 1536 PVDSOCKETINT pSockInt = (PVDSOCKETINT) Sock;1534 static DECLCALLBACK(int) drvvdTcpWriteNB(VDSOCKET hVdSock, const void *pvBuffer, size_t cbBuffer, size_t *pcbWritten) 1535 { 1536 PVDSOCKETINT pSockInt = (PVDSOCKETINT)hVdSock; 1537 1537 1538 1538 return RTTcpWriteNB(pSockInt->hSocket, pvBuffer, cbBuffer, pcbWritten); … … 1540 1540 1541 1541 /** @interface_method_impl{VDINTERFACETCPNET,pfnSgWriteNB} */ 1542 static DECLCALLBACK(int) drvvdTcpSgWriteNB(VDSOCKET Sock, PRTSGBUF pSgBuf, size_t *pcbWritten)1543 { 1544 PVDSOCKETINT pSockInt = (PVDSOCKETINT) Sock;1542 static DECLCALLBACK(int) drvvdTcpSgWriteNB(VDSOCKET hVdSock, PRTSGBUF pSgBuf, size_t *pcbWritten) 1543 { 1544 PVDSOCKETINT pSockInt = (PVDSOCKETINT)hVdSock; 1545 1545 1546 1546 return RTTcpSgWriteNB(pSockInt->hSocket, pSgBuf, pcbWritten); … … 1548 1548 1549 1549 /** @interface_method_impl{VDINTERFACETCPNET,pfnFlush} */ 1550 static DECLCALLBACK(int) drvvdTcpFlush(VDSOCKET Sock)1551 { 1552 PVDSOCKETINT pSockInt = (PVDSOCKETINT) Sock;1550 static DECLCALLBACK(int) drvvdTcpFlush(VDSOCKET hVdSock) 1551 { 1552 PVDSOCKETINT pSockInt = (PVDSOCKETINT)hVdSock; 1553 1553 1554 1554 return RTTcpFlush(pSockInt->hSocket); … … 1556 1556 1557 1557 /** @interface_method_impl{VDINTERFACETCPNET,pfnSetSendCoalescing} */ 1558 static DECLCALLBACK(int) drvvdTcpSetSendCoalescing(VDSOCKET Sock, bool fEnable)1559 { 1560 PVDSOCKETINT pSockInt = (PVDSOCKETINT) Sock;1558 static DECLCALLBACK(int) drvvdTcpSetSendCoalescing(VDSOCKET hVdSock, bool fEnable) 1559 { 1560 PVDSOCKETINT pSockInt = (PVDSOCKETINT)hVdSock; 1561 1561 1562 1562 return RTTcpSetSendCoalescing(pSockInt->hSocket, fEnable); … … 1564 1564 1565 1565 /** @interface_method_impl{VDINTERFACETCPNET,pfnGetLocalAddress} */ 1566 static DECLCALLBACK(int) drvvdTcpGetLocalAddress(VDSOCKET Sock, PRTNETADDR pAddr)1567 { 1568 PVDSOCKETINT pSockInt = (PVDSOCKETINT) Sock;1566 static DECLCALLBACK(int) drvvdTcpGetLocalAddress(VDSOCKET hVdSock, PRTNETADDR pAddr) 1567 { 1568 PVDSOCKETINT pSockInt = (PVDSOCKETINT)hVdSock; 1569 1569 1570 1570 return RTTcpGetLocalAddress(pSockInt->hSocket, pAddr); … … 1572 1572 1573 1573 /** @interface_method_impl{VDINTERFACETCPNET,pfnGetPeerAddress} */ 1574 static DECLCALLBACK(int) drvvdTcpGetPeerAddress(VDSOCKET Sock, PRTNETADDR pAddr)1575 { 1576 PVDSOCKETINT pSockInt = (PVDSOCKETINT) Sock;1574 static DECLCALLBACK(int) drvvdTcpGetPeerAddress(VDSOCKET hVdSock, PRTNETADDR pAddr) 1575 { 1576 PVDSOCKETINT pSockInt = (PVDSOCKETINT)hVdSock; 1577 1577 1578 1578 return RTTcpGetPeerAddress(pSockInt->hSocket, pAddr); 1579 1579 } 1580 1580 1581 static DECLCALLBACK(int) drvvdTcpSelectOneExPoll(VDSOCKET Sock, uint32_t fEvents,1581 static DECLCALLBACK(int) drvvdTcpSelectOneExPoll(VDSOCKET hVdSock, uint32_t fEvents, 1582 1582 uint32_t *pfEvents, RTMSINTERVAL cMillies) 1583 1583 { … … 1585 1585 uint32_t id = 0; 1586 1586 uint32_t fEventsRecv = 0; 1587 PVDSOCKETINT pSockInt = (PVDSOCKETINT) Sock;1587 PVDSOCKETINT pSockInt = (PVDSOCKETINT)hVdSock; 1588 1588 1589 1589 *pfEvents = 0; … … 1654 1654 1655 1655 /** @interface_method_impl{VDINTERFACETCPNET,pfnSelectOneEx} */ 1656 static DECLCALLBACK(int) drvvdTcpSelectOneExNoPoll(VDSOCKET Sock, uint32_t fEvents, uint32_t *pfEvents, RTMSINTERVAL cMillies)1656 static DECLCALLBACK(int) drvvdTcpSelectOneExNoPoll(VDSOCKET hVdSock, uint32_t fEvents, uint32_t *pfEvents, RTMSINTERVAL cMillies) 1657 1657 { 1658 1658 RT_NOREF(cMillies); /** @todo timeouts */ 1659 1659 int rc = VINF_SUCCESS; 1660 PVDSOCKETINT pSockInt = (PVDSOCKETINT) Sock;1660 PVDSOCKETINT pSockInt = (PVDSOCKETINT)hVdSock; 1661 1661 1662 1662 *pfEvents = 0; … … 1794 1794 1795 1795 /** @interface_method_impl{VDINTERFACETCPNET,pfnPoke} */ 1796 static DECLCALLBACK(int) drvvdTcpPoke(VDSOCKET Sock)1796 static DECLCALLBACK(int) drvvdTcpPoke(VDSOCKET hVdSock) 1797 1797 { 1798 1798 int rc = VINF_SUCCESS; 1799 1799 size_t cbWritten = 0; 1800 PVDSOCKETINT pSockInt = (PVDSOCKETINT) Sock;1800 PVDSOCKETINT pSockInt = (PVDSOCKETINT)hVdSock; 1801 1801 1802 1802 ASMAtomicXchgBool(&pSockInt->fWokenUp, true); … … 2465 2465 2466 2466 /** @copydoc FNPDMBLKCACHEXFERCOMPLETEDRV */ 2467 static DECLCALLBACK(void) drvvdBlkCacheXferCompleteIoReq(PPDMDRVINS pDrvIns, void *pvUser, int rc Req)2467 static DECLCALLBACK(void) drvvdBlkCacheXferCompleteIoReq(PPDMDRVINS pDrvIns, void *pvUser, int rc) 2468 2468 { 2469 2469 PVBOXDISK pThis = PDMINS_2_DATA(pDrvIns, PVBOXDISK); 2470 2470 2471 drvvdMediaExIoReqCompleteWorker(pThis, (PPDMMEDIAEXIOREQINT)pvUser, rc Req, true /* fUpNotify */);2471 drvvdMediaExIoReqCompleteWorker(pThis, (PPDMMEDIAEXIOREQINT)pvUser, rc, true /* fUpNotify */); 2472 2472 } 2473 2473 … … 2476 2476 PDMBLKCACHEXFERDIR enmXferDir, 2477 2477 uint64_t off, size_t cbXfer, 2478 PCRTSGBUF p cSgBuf, PPDMBLKCACHEIOXFER hIoXfer)2478 PCRTSGBUF pSgBuf, PPDMBLKCACHEIOXFER hIoXfer) 2479 2479 { 2480 2480 int rc = VINF_SUCCESS; … … 2486 2486 { 2487 2487 case PDMBLKCACHEXFERDIR_READ: 2488 rc = VDAsyncRead(pThis->pDisk, off, cbXfer, p cSgBuf, drvvdBlkCacheReqComplete,2488 rc = VDAsyncRead(pThis->pDisk, off, cbXfer, pSgBuf, drvvdBlkCacheReqComplete, 2489 2489 pThis, hIoXfer); 2490 2490 break; 2491 2491 case PDMBLKCACHEXFERDIR_WRITE: 2492 rc = VDAsyncWrite(pThis->pDisk, off, cbXfer, p cSgBuf, drvvdBlkCacheReqComplete,2492 rc = VDAsyncWrite(pThis->pDisk, off, cbXfer, pSgBuf, drvvdBlkCacheReqComplete, 2493 2493 pThis, hIoXfer); 2494 2494 break; … … 2892 2892 * 2893 2893 * @returns VBox status code. 2894 * @ paramVINF_PDM_MEDIAEX_IOREQ_IN_PROGRESS if there is no I/O memory available to allocate and2894 * @retval VINF_PDM_MEDIAEX_IOREQ_IN_PROGRESS if there is no I/O memory available to allocate and 2895 2895 * the request was placed on a waiting list. 2896 2896 * @param pThis VBox disk container instance data. … … 3684 3684 3685 3685 /** 3686 * @interface_method_impl{PDMIMEDIAEX,pfnIoReqQuerySuspended First}3686 * @interface_method_impl{PDMIMEDIAEX,pfnIoReqQuerySuspendedStart} 3687 3687 */ 3688 3688 static DECLCALLBACK(int) drvvdIoReqQuerySuspendedStart(PPDMIMEDIAEX pInterface, PPDMMEDIAEXIOREQ phIoReq, -
trunk/src/VBox/Devices/Storage/HBDMgmt-darwin.cpp
r63470 r64274 242 242 * @returns Reference to a DADissenter object which contains the result. 243 243 * @param hDiskRef The disk that is about to be mounted. 244 * @param pvC Ontext Pointer to the block device manager.244 * @param pvContext Pointer to the block device manager. 245 245 */ 246 246 static DADissenterRef hbdMgrDAMountApprovalCallback(DADiskRef hDiskRef, void *pvContext) -
trunk/src/VBox/Devices/Storage/HBDMgmt-win.cpp
r62679 r64274 187 187 * 188 188 * @returns VBox status code. 189 * @param pwszDriveWin32 The Win32 path to the block device (e.g. \\.\PhysicalDrive0for example)189 * @param pwszDriveWin32 The Win32 path to the block device (e.g. "\\.\PhysicalDrive0" for example) 190 190 * @param ppwszDriveNt Where to store the NT path to the volume on success. 191 191 * Must be freed with RTUtf16Free(). -
trunk/src/VBox/Devices/Storage/IOBufMgmt.h
r59452 r64274 73 73 * 74 74 * @returns VBox status code. 75 * @ paramVERR_INVALID_STATE if there is still memory allocated by the given manager.75 * @retval VERR_INVALID_STATE if there is still memory allocated by the given manager. 76 76 * @param hIoBufMgr The I/O buffer manager. 77 77 */ -
trunk/src/VBox/Devices/Storage/UsbMsd.cpp
r64223 r64274 1939 1939 1940 1940 /** 1941 * @interface_method_impl{PDMUSBREG,pfn Queue}1941 * @interface_method_impl{PDMUSBREG,pfnUrbQueue} 1942 1942 */ 1943 1943 static DECLCALLBACK(int) usbMsdQueue(PPDMUSBINS pUsbIns, PVUSBURB pUrb) -
trunk/src/VBox/Devices/Storage/VBoxSCSI.cpp
r64224 r64274 277 277 * @returns VBox status code. 278 278 * @param pVBoxSCSI Pointer to the SCSI state. 279 * @pa ampuLun Where to store the LUN on success.279 * @param puLun Where to store the LUN on success. 280 280 * @param ppbCdb Where to store the pointer to the CDB on success. 281 281 * @param pcbCdb Where to store the size of the CDB on success.
Note:
See TracChangeset
for help on using the changeset viewer.