History log of /haiku/src/kits/device/SerialPort.cpp
Revision Date Author Comments
# 071ff801 09-May-2023 Augustin Cavalier <waddlesplash@gmail.com>

BSerialPort: Implement WaitForInput() using wait_for_objects.

Fixes #17867.

Change-Id: Ib59781128d5d21317c4042f250333b177a0ed91b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6432
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# 9d06690e 11-Jul-2019 Augustin Cavalier <waddlesplash@gmail.com>

userland: Pass more sizes with ioctls where we can.

No "functional" change intended.


# d3e73d45 21-Dec-2013 Adrien Destugues <pulkomandy@pulkomandy.tk>

Use POSIX API to set serial port speed.

POSIX says CBAUD is reserved, and provides an easier way to set the
speed using a dedicated function.


# 327a88fb 12-Sep-2008 Fredrik Modeen <fredrik@modeen.se>

fixes pointed out by Axel, and style changes.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27463 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ee652e3a 12-Sep-2008 Fredrik Modeen <fredrik@modeen.se>

reverted to 11769 and added (std::nothrow)

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27452 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c1d9a877 12-Sep-2008 Fredrik Modeen <fredrik@modeen.se>

Fixed CID 1031: removed check _fDevice for NULL as we do new BList in constructor also removed temp var count as _fDevice->CountItems() should return 0 if empty

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27438 a95241bf-73f2-0310-859d-f6bbb57e9c96


# bdd59139 09-Nov-2004 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Small cleanup, added a comment to some obscure code


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9898 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8af87c1d 16-Apr-2004 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Ok, last time (at least for today). 0 is a valid fd number


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7222 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7d60c514 16-Apr-2004 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Last famous words... Corrected some issues pointed out by Axel


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7221 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2e90a0fc 16-Apr-2004 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Finally BSerialPort works !!
- Fixed I/O Error issue
- switched from sprintf to snprintf where appropriate
- added O_EXCL flag to open()
- added many TODO items (mostly for further investigation, the class should be complete)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7220 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d3769960 21-Jan-2003 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Added doxygen style comments. Fixed a bug in open() return value. The class still doesn't work as it should.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2526 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7cf3b2f4 02-Jan-2003 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Documented the class, some small changes


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2348 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 27a24b9f 11-Dec-2002 beveloper <beveloper@nowhere.fake>

BSerialPort, not very much tested. Written by Jack Burton.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2225 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2e54c164 10-Aug-2002 beveloper <beveloper@nowhere.fake>

start with libdevice.so


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@694 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d3e73d457e74feb381f5984f060595a2a60e835d 21-Dec-2013 Adrien Destugues <pulkomandy@pulkomandy.tk>

Use POSIX API to set serial port speed.

POSIX says CBAUD is reserved, and provides an easier way to set the
speed using a dedicated function.


# 327a88fbc1418fece48ab2a09a55b2b3d2f8b86f 12-Sep-2008 Fredrik Modeen <fredrik@modeen.se>

fixes pointed out by Axel, and style changes.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27463 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ee652e3aabb29ee95714db74be892e16645f3bc2 12-Sep-2008 Fredrik Modeen <fredrik@modeen.se>

reverted to 11769 and added (std::nothrow)

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27452 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c1d9a877a40aa434c47c34d8f6646c9b305e1e5a 12-Sep-2008 Fredrik Modeen <fredrik@modeen.se>

Fixed CID 1031: removed check _fDevice for NULL as we do new BList in constructor also removed temp var count as _fDevice->CountItems() should return 0 if empty

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27438 a95241bf-73f2-0310-859d-f6bbb57e9c96


# bdd5913945e4799bf68708beda502462437d82d2 09-Nov-2004 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Small cleanup, added a comment to some obscure code


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9898 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8af87c1dccb0c8bc9dacd66bec417704d3d4cdb9 16-Apr-2004 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Ok, last time (at least for today). 0 is a valid fd number


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7222 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7d60c514f8d138b3c8d34275fb063737e6a0a343 16-Apr-2004 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Last famous words... Corrected some issues pointed out by Axel


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7221 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2e90a0fca04d994ba0d91326058839866a880d51 16-Apr-2004 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Finally BSerialPort works !!
- Fixed I/O Error issue
- switched from sprintf to snprintf where appropriate
- added O_EXCL flag to open()
- added many TODO items (mostly for further investigation, the class should be complete)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7220 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d376996084f802412eb6d793ac67c6da05408977 21-Jan-2003 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Added doxygen style comments. Fixed a bug in open() return value. The class still doesn't work as it should.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2526 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7cf3b2f4b10ac0c304e6fc71af3b1c9506fa6a00 02-Jan-2003 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Documented the class, some small changes


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2348 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 27a24b9f61919e6d959dba8d4e27cd11eaa3dd0e 11-Dec-2002 beveloper <beveloper@nowhere.fake>

BSerialPort, not very much tested. Written by Jack Burton.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2225 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2e54c16421a77f2268a6477819cea11fe2d10169 10-Aug-2002 beveloper <beveloper@nowhere.fake>

start with libdevice.so


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@694 a95241bf-73f2-0310-859d-f6bbb57e9c96