Changeset 64276 in vbox
- Timestamp:
- Oct 14, 2016 11:16:06 AM (8 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
-
include/VBox/vmm/pdmifs.h (modified) (2 diffs)
-
src/VBox/Devices/Parallel/DevParallel.cpp (modified) (6 diffs)
-
src/VBox/Devices/Parallel/DrvHostParallel.cpp (modified) (2 diffs)
-
src/VBox/Devices/Serial/DevSerial.cpp (modified) (4 diffs)
-
src/VBox/Devices/Serial/DrvHostSerial.cpp (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/pdmifs.h
r63606 r64276 1249 1249 * @param pInterface Pointer to the interface structure containing the called function pointer. 1250 1250 * @param pvBuf Where to store the read bits. 1251 * @param cbReadNumber of bytes to read/bytes actually read.1251 * @param pcbRead Number of bytes to read/bytes actually read. 1252 1252 * @thread Any thread. 1253 1253 */ 1254 DECLR3CALLBACKMEMBER(int, pfnRead,(PPDMISTREAM pInterface, void *pvBuf, size_t * cbRead));1254 DECLR3CALLBACKMEMBER(int, pfnRead,(PPDMISTREAM pInterface, void *pvBuf, size_t *pcbRead)); 1255 1255 1256 1256 /** … … 1260 1260 * @param pInterface Pointer to the interface structure containing the called function pointer. 1261 1261 * @param pvBuf Where to store the write bits. 1262 * @param cbWriteNumber of bytes to write/bytes actually written.1262 * @param pcbWrite Number of bytes to write/bytes actually written. 1263 1263 * @thread Any thread. 1264 1264 */ 1265 DECLR3CALLBACKMEMBER(int, pfnWrite,(PPDMISTREAM pInterface, const void *pvBuf, size_t * cbWrite));1265 DECLR3CALLBACKMEMBER(int, pfnWrite,(PPDMISTREAM pInterface, const void *pvBuf, size_t *pcbWrite)); 1266 1266 } PDMISTREAM; 1267 1267 /** PDMISTREAM interface ID. */ -
trunk/src/VBox/Devices/Parallel/DevParallel.cpp
r62925 r64276 160 160 *********************************************************************************************************************************/ 161 161 RT_C_DECLS_BEGIN 162 PDMBOTHCBDECL(int) parallelIOPortRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb);163 PDMBOTHCBDECL(int) parallelIOPortWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb);162 PDMBOTHCBDECL(int) parallelIOPortRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT uPort, uint32_t *pu32, unsigned cb); 163 PDMBOTHCBDECL(int) parallelIOPortWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT uPort, uint32_t u32, unsigned cb); 164 164 #if 0 165 165 PDMBOTHCBDECL(int) parallelIOPortReadECP(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb); … … 319 319 * @callback_method_impl{FNIOMIOPORTOUT} 320 320 */ 321 PDMBOTHCBDECL(int) parallelIOPortWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb)321 PDMBOTHCBDECL(int) parallelIOPortWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT uPort, uint32_t u32, unsigned cb) 322 322 { 323 323 PARALLELPORT *pThis = PDMINS_2_DATA(pDevIns, PPARALLELPORT); … … 329 329 uint8_t u8 = u32; 330 330 331 Log2(("%s: port %#06x val %#04x\n", __FUNCTION__, Port, u32));332 333 Port &= 7;334 switch ( Port)331 Log2(("%s: port %#06x val %#04x\n", __FUNCTION__, uPort, u32)); 332 333 uPort &= 7; 334 switch (uPort) 335 335 { 336 336 case 0: … … 417 417 } 418 418 else 419 AssertMsgFailed(("Port=%#x cb=%d u32=%#x\n", Port, cb, u32));419 AssertMsgFailed(("Port=%#x cb=%d u32=%#x\n", uPort, cb, u32)); 420 420 421 421 return rc; … … 426 426 * @callback_method_impl{FNIOMIOPORTIN} 427 427 */ 428 PDMBOTHCBDECL(int) parallelIOPortRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb)428 PDMBOTHCBDECL(int) parallelIOPortRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT uPort, uint32_t *pu32, unsigned cb) 429 429 { 430 430 PARALLELPORT *pThis = PDMINS_2_DATA(pDevIns, PARALLELPORT *); … … 434 434 if (cb == 1) 435 435 { 436 Port &= 7;437 switch ( Port)436 uPort &= 7; 437 switch (uPort) 438 438 { 439 439 case 0: -
trunk/src/VBox/Devices/Parallel/DrvHostParallel.cpp
r64010 r64276 47 47 #endif 48 48 49 /** @def VBOX_WITH_WIN_PARPORT_SUP *49 /** @def VBOX_WITH_WIN_PARPORT_SUP 50 50 * Indicates whether to use the generic direct hardware access or host specific 51 51 * code to access the parallel port. 52 52 */ 53 #if defined(DOXYGEN_RUNNING) 54 # define VBOX_WITH_WIN_PARPORT_SUP 55 #endif 53 56 #if defined(RT_OS_LINUX) 54 57 # undef VBOX_WITH_WIN_PARPORT_SUP … … 270 273 271 274 /** 272 * @ interface_method_impl{FNPDMDRVREQHANDLERR0}275 * @callback_method_impl{FNPDMDRVREQHANDLERR0} 273 276 */ 274 277 PDMBOTHCBDECL(int) drvR0HostParallelReqHandler(PPDMDRVINS pDrvIns, uint32_t uOperation, uint64_t u64Arg) -
trunk/src/VBox/Devices/Serial/DevSerial.cpp
r63690 r64276 856 856 * @callback_method_impl{FNIOMIOPORTOUT} 857 857 */ 858 PDMBOTHCBDECL(int) serialIOPortWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb)858 PDMBOTHCBDECL(int) serialIOPortWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT uPort, uint32_t u32, unsigned cb) 859 859 { 860 860 PDEVSERIAL pThis = PDMINS_2_DATA(pDevIns, PDEVSERIAL); … … 865 865 if (cb == 1) 866 866 { 867 Log2(("%s: port %#06x val %#04x\n", __FUNCTION__, Port, u32));868 rc = serial_ioport_write(pThis, Port, u32);867 Log2(("%s: port %#06x val %#04x\n", __FUNCTION__, uPort, u32)); 868 rc = serial_ioport_write(pThis, uPort, u32); 869 869 } 870 870 else 871 871 { 872 AssertMsgFailed((" Port=%#x cb=%d u32=%#x\n",Port, cb, u32));872 AssertMsgFailed(("uPort=%#x cb=%d u32=%#x\n", uPort, cb, u32)); 873 873 rc = VINF_SUCCESS; 874 874 } … … 881 881 * @callback_method_impl{FNIOMIOPORTIN} 882 882 */ 883 PDMBOTHCBDECL(int) serialIOPortRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb)883 PDMBOTHCBDECL(int) serialIOPortRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT uPort, uint32_t *pu32, unsigned cb) 884 884 { 885 885 PDEVSERIAL pThis = PDMINS_2_DATA(pDevIns, PDEVSERIAL); … … 890 890 if (cb == 1) 891 891 { 892 *pu32 = serial_ioport_read(pThis, Port, &rc);893 Log2(("%s: port %#06x val %#04x\n", __FUNCTION__, Port, *pu32));892 *pu32 = serial_ioport_read(pThis, uPort, &rc); 893 Log2(("%s: port %#06x val %#04x\n", __FUNCTION__, uPort, *pu32)); 894 894 } 895 895 else -
trunk/src/VBox/Devices/Serial/DrvHostSerial.cpp
r63591 r64276 450 450 * 451 451 * @returns VINF_SUCCESS. 452 * @param ThreadSelf Thread handle to this thread.453 * @param p vUser User argument.452 * @param pDrvIns PDM driver instance data. 453 * @param pThread The PDM thread data. 454 454 */ 455 455 static DECLCALLBACK(int) drvHostSerialSendThread(PPDMDRVINS pDrvIns, PPDMTHREAD pThread) … … 566 566 * @param pThread The send thread. 567 567 */ 568 static DECLCALLBACK(int) drvHostSerialWakeupSendThread(PPDMDRVINS pDrvIns, PPDMTHREAD /*pThread*/)568 static DECLCALLBACK(int) drvHostSerialWakeupSendThread(PPDMDRVINS pDrvIns, PPDMTHREAD pThread) 569 569 { 570 RT_NOREF(pThread); 570 571 PDRVHOSTSERIAL pThis = PDMINS_2_DATA(pDrvIns, PDRVHOSTSERIAL); 571 572 int rc; … … 592 593 * 593 594 * @returns VINF_SUCCESS. 594 * @param ThreadSelf Thread handle to this thread.595 * @param p vUser User argument.595 * @param pDrvIns PDM driver instance data. 596 * @param pThread The PDM thread data. 596 597 */ 597 598 static DECLCALLBACK(int) drvHostSerialRecvThread(PPDMDRVINS pDrvIns, PPDMTHREAD pThread) … … 855 856 856 857 /** 857 * Unblock the sendthread so it can respond to a state change.858 * Unblock the receive thread so it can respond to a state change. 858 859 * 859 860 * @returns a VBox status code. 860 861 * @param pDrvIns The driver instance. 861 * @param pThread The sendthread.862 */ 863 static DECLCALLBACK(int) drvHostSerialWakeupRecvThread(PPDMDRVINS pDrvIns, PPDMTHREAD /*pThread*/)862 * @param pThread The receive thread. 863 */ 864 static DECLCALLBACK(int) drvHostSerialWakeupRecvThread(PPDMDRVINS pDrvIns, PPDMTHREAD pThread) 864 865 { 866 RT_NOREF(pThread); 865 867 PDRVHOSTSERIAL pThis = PDMINS_2_DATA(pDrvIns, PDRVHOSTSERIAL); 866 868 #if defined(RT_OS_LINUX) || defined(RT_OS_DARWIN) || defined(RT_OS_SOLARIS) || defined(RT_OS_FREEBSD) … … 887 889 * 888 890 * @returns VINF_SUCCESS. 889 * @param ThreadSelf Thread handle to this thread.890 * @param p vUser User argument.891 * @param pDrvIns PDM driver instance data. 892 * @param pThread The PDM thread data. 891 893 */ 892 894 static DECLCALLBACK(int) drvHostSerialMonitorThread(PPDMDRVINS pDrvIns, PPDMTHREAD pThread) … … 1151 1153 * @copydoc FNPDMDRVCONSTRUCT 1152 1154 */ 1153 static DECLCALLBACK(int) drvHostSerialConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t /*fFlags*/)1155 static DECLCALLBACK(int) drvHostSerialConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags) 1154 1156 { 1157 RT_NOREF1(fFlags); 1155 1158 PDRVHOSTSERIAL pThis = PDMINS_2_DATA(pDrvIns, PDRVHOSTSERIAL); 1156 1159 LogFlow(("%s: iInstance=%d\n", __FUNCTION__, pDrvIns->iInstance));
Note:
See TracChangeset
for help on using the changeset viewer.

