Changeset 4147 in vbox for trunk/src/VBox/Devices/Serial
- Timestamp:
- Aug 14, 2007 12:01:46 PM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 23633
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Serial/DrvChar.cpp
r4142 r4147 128 128 129 129 /** @copydoc PDMICHAR::pfnSetParameters */ 130 static DECLCALLBACK(int) drvCharSetParameters(PPDMICHAR pInterface, int speed, int parity, int data_bits, int stop_bits)131 { 132 PDRVCHAR pData = PDMICHAR_2_DRVCHAR(pInterface);133 134 LogFlow(("%s: speed=%d parity=%c data_bits=%d stop_bits=%d\n", __FUNCTION__, speed, parity, data_bits, stop_bits));130 static DECLCALLBACK(int) drvCharSetParameters(PPDMICHAR pInterface, unsigned Bps, char chParity, unsigned cDataBits, unsigned cStopBits) 131 { 132 /*PDRVCHAR pData = PDMICHAR_2_DRVCHAR(pInterface); - unused*/ 133 134 LogFlow(("%s: Bps=%u chParity=%c cDataBits=%u cStopBits=%u\n", __FUNCTION__, Bps, chParity, cDataBits, cStopBits)); 135 135 return VINF_SUCCESS; 136 136 } … … 159 159 * Write the character to the attached stream (if present). 160 160 */ 161 if ( !pData->fShutdown 161 if ( !pData->fShutdown 162 162 && pData->pDrvStream) 163 163 { … … 329 329 PDMDrvHlpSTAMRegisterF(pDrvIns, &pData->StatBytesWritten, STAMTYPE_COUNTER, STAMVISIBILITY_USED, STAMUNIT_BYTES, "Nr of bytes written", "/Devices/Char%d/Written", pDrvIns->iInstance); 330 330 PDMDrvHlpSTAMRegisterF(pDrvIns, &pData->StatBytesRead, STAMTYPE_COUNTER, STAMVISIBILITY_USED, STAMUNIT_BYTES, "Nr of bytes read", "/Devices/Char%d/Read", pDrvIns->iInstance); 331 331 332 332 return VINF_SUCCESS; 333 333 }
Note:
See TracChangeset
for help on using the changeset viewer.