Changeset 72073 in vbox
- Timestamp:
- May 1, 2018 9:46:14 PM (7 years ago)
- Location:
- trunk/src/VBox/Devices/Serial
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Serial/DrvCharNew.cpp
r71987 r72073 11 11 12 12 /* 13 * Copyright (C) 2006-201 7Oracle Corporation13 * Copyright (C) 2006-2018 Oracle Corporation 14 14 * 15 15 * This file is part of VirtualBox Open Source Edition (OSE), as … … 28 28 #define LOG_GROUP LOG_GROUP_DRV_CHAR 29 29 #include <VBox/vmm/pdmdrv.h> 30 #include <VBox/vmm/pdmserialifs.h> 30 31 #include <iprt/asm.h> 31 32 #include <iprt/assert.h> -
trunk/src/VBox/Devices/Serial/DrvHostSerialNew.cpp
r70800 r72073 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox s tream I/Odevices: Host serial driver3 * VBox serial devices: Host serial driver 4 4 */ 5 5 6 6 /* 7 * Copyright (C) 2006-201 7Oracle Corporation7 * Copyright (C) 2006-2018 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 23 23 #define LOG_GROUP LOG_GROUP_DRV_HOST_SERIAL 24 24 #include <VBox/vmm/pdm.h> 25 #include <VBox/vmm/pdmserialifs.h> 25 26 #include <VBox/err.h> 26 27 … … 442 443 | RTSERIALPORT_OPEN_F_DETECT_BREAK_CONDITION; 443 444 rc = RTSerialPortOpen(&pThis->hSerialPort, pThis->pszDevicePath, fOpenFlags); 445 if (rc == VERR_NOT_SUPPORTED) 446 { 447 /* 448 * For certain devices (or pseudo terminals) status line monitoring does not work 449 * so try again without it. 450 */ 451 fOpenFlags &= ~RTSERIALPORT_OPEN_F_SUPPORT_STATUS_LINE_MONITORING; 452 rc = RTSerialPortOpen(&pThis->hSerialPort, pThis->pszDevicePath, fOpenFlags); 453 } 454 444 455 if (RT_FAILURE(rc)) 445 456 { … … 483 494 * Register release statistics. 484 495 */ 485 PDMDrvHlpSTAMRegisterF(pDrvIns, &pThis->StatBytesWritten, STAMTYPE_COUNTER, STAMVISIBILITY_USED, STAMUNIT_BYTES, "Nr of bytes written", "/Devices/HostSerial%d/Written", pDrvIns->iInstance); 486 PDMDrvHlpSTAMRegisterF(pDrvIns, &pThis->StatBytesRead, STAMTYPE_COUNTER, STAMVISIBILITY_USED, STAMUNIT_BYTES, "Nr of bytes read", "/Devices/HostSerial%d/Read", pDrvIns->iInstance); 496 PDMDrvHlpSTAMRegisterF(pDrvIns, &pThis->StatBytesWritten, STAMTYPE_COUNTER, STAMVISIBILITY_USED, STAMUNIT_BYTES, 497 "Nr of bytes written", "/Devices/HostSerial%d/Written", pDrvIns->iInstance); 498 PDMDrvHlpSTAMRegisterF(pDrvIns, &pThis->StatBytesRead, STAMTYPE_COUNTER, STAMVISIBILITY_USED, STAMUNIT_BYTES, 499 "Nr of bytes read", "/Devices/HostSerial%d/Read", pDrvIns->iInstance); 487 500 488 501 return VINF_SUCCESS; … … 498 511 /* szName */ 499 512 "Host Serial", 500 513 /* szRCMod */ 501 514 "", 502 515 /* szR0Mod */
Note:
See TracChangeset
for help on using the changeset viewer.