Menu

#165 POSIX(/Linux) directserial Implementation

closed
Qbix
None
5
2012-09-07
2006-05-29
No

Hi,

I implemented a POSIX (should be POSIX conform I hope,
had just the chance to test it under Linux atm though)
implementation for the directserial stuff. It works
pretty well with Settlers 2 (hadn't enough
time/motivation to try another game).

Things TODO:
- adds checks in configure script to enable it (atm it
needs to be enabled in the config.h file directly,
since I have no knowledge about autoconf maybe someone
could do this)
- implement the missing parity settings
- maybe rework 'realport' setting to use
devicefilenames (see later)

I add a tar file which needs to be extracted in the
dosbox root dir, after that cd to the src dir and apply
the directserial_posix_v1.patch. To setup the
directserial do: "serial1=directserial realport:0" in
[serial] there realport:0 stands for /dev/ttyS0,
realport:1 for /dev/ttyS1 and so on. (could be changed,
the problem atm is that the config parser seems only to
return uppercase filenames).

// Johannes

Discussion

  • Johannes Schickel

    v1 of the patch

     
  • Johannes Schickel

    Logged In: YES
    user_id=991728

    Ok h-a-l-9000 found some things I fixed them, here's the new
    patch. (apply it again to a clean cvs checkout)

     
  • Johannes Schickel

    v2 of the patch

     
  • Qbix

    Qbix - 2006-08-17

    Logged In: YES
    user_id=535630

    I'm not fond of the non-default copyright line.
    It may be standard in other GPL projects, but not in dosbox.

     

Log in to post a comment.