QNX Technical Articles
QNX® Momentics® 6.3.0 SP1 Character Driver Development Kit Release Notes
Date of this edition: October 03, 2005
Target OS: QNX® Neutrino® 6.3.0 SP1 or later
Host OS: Microsoft Windows XP SP1 or SP2, 2000 SP4, NT SP6a; Sun Solaris 7, 8, or 9; QNX® Neutrino® 6.3.0 SP1 or later; Linux Red Hat 8, 9, or Enterprise WS 3 or 4
![]() |
|
Contents
- What's in this DDK?
- Location of source and documentation
- Changes in this version
- Known issues for this DDK
- Technical support
![]() |
Throughout this document, you may see reference numbers associated with particular issues, changes, etc. When corresponding with our Technical Support staff about a given issue, please quote the relevant reference number. You might also find the reference numbers useful for tracking issues as they become fixed. |
What's in this DDK?
This DDK contains source code for the following drivers:
- devc-ser8250
Location of source and documentation
When you install DDKs, you'll find the source code and documentation in the following locations:
Windows hosts
| Component | Location |
|---|---|
| Source code | $QNX_TARGET\usr\src\archives\qnx\ |
| Documentation | $QNX_TARGET\usr\help\product\ddk_en\bookset.html |
| Release notes | $QNX_TARGET\etc\readme\ddk |
QNX Neutrino, Linux, and Solaris hosts
| Component | Location |
|---|---|
| Source code | $QNX_TARGET/usr/src/archives/qnx/ |
| Documentation | $QNX_TARGET/usr/help/product/ddk_en/bookset.html |
| Release notes | $QNX_TARGET/etc/readme/ddk |
![]() |
The "roadmap" page (e.g. from the Windows XP start menu: All Programs-->QNX Momentics 6.3.0-->Documentation) contains links to the various HTML booksets that accompany the OS: System Architecture, Programmer's Guide, Library Reference, Utilities Reference, etc.. |
Changes in this version
- If you've written a character-device driver that links against the
libio-char.a library, note that there has been a change
in the API to accomodate power management.
You need to update
any driver source code originally written for 6.3.0 and earlier
if you plan to compile it against the new library in 6.3.0 SP1.

You don't need to regenerate any binaries. This is an issue only if you're rebuilding old source code on the new 6.3.0 SP1 system.
The ttc() function call with the TTC_INIT_ATTACH parameter originally created the device's name, based on the unit number passed in and then attached the driver's resource-manager interface:
ttc(TTC_INIT_ATTACH, &tty, unit);
This call has been split up into:
ttc(TTC_INIT_TTYNAME, &tty, unit); ttc(TTC_INIT_POWER, &tty, 0); ttc(TTC_INIT_ATTACH, &tty, 0);
You need to call ttc() with these arguments in this order, but not necessarily in direct sequence:
- TTC_INIT_TTYNAME to create the device's name, based on the unit number passed in.
- TTC_INIT_POWER to initialize the data structures related to power management. Even if your driver doesn't implement power management, you must still make the call with TTC_INIT_POWER.
- TTY_INIT_ATTACH to attach the driver's resource-manager interface.

You must make the calls with TTC_INIT_TTYNAME and TTC_INIT_POWER before you attach any interrupt handlers.
Here's the code for devc-ser403 before making this change:
create_device() { ... // Initialize termios cc codes to an ANSI terminal. ttc(TTC_INIT_CC, dev, 0); ... // Set up the IRQ handler ser_stty(dev); ser_attach_intr(dev); //Assume that the basename is set in the device name. This will attach //to the path assigned by the unit number/minor number combination unit = SET_NAME_NUMBER(unit) | NUMBER_DEV_FROM_USER; ttc(TTC_INIT_ATTACH, dev, unit); }Here's the code after the changes:
create_device() { ... // Initialize termios cc codes to an ANSI terminal. ttc(TTC_INIT_CC, dev, 0); // Initialize the device's name. // Assume that the basename is set in device name. This will attach // to the path assigned by the unit number/minor number combination unit = SET_NAME_NUMBER(unit) | NUMBER_DEV_FROM_USER; ttc(TTC_INIT_TTYNAME, dev, unit); // Initialize power management structures before attaching ISR ttc(TTC_INIT_POWER, dev, 0); ... // Set up the IRQ handler ser_stty(dev); ser_attach_intr(dev); //Assume that the basename is set in the device name. This will attach //to the path assigned by the unit number/minor number combination unit = SET_NAME_NUMBER(unit) | NUMBER_DEV_FROM_USER; ttc(TTC_INIT_ATTACH, dev, unit); } - To take advantage of the software flow control updates (Ref# 21272), you
must update your custom serial driver's tto.c file to check
if the OSW_PAGED_OVERRIDE flag is asserted.
If this flag is asserted, allow the transmission of one (and only one)
character, and then clear this flag.
This allows the transmission of software flow control characters when
io-char is in a suspended state.
For example:
if(dev->flags & (OHW_PAGED|OSW_PAGED) && !(dev->xflags & OSW_PAGED_OVERRIDE)) return(0); . . . write_8250(port[REG_TX], c); if (dev->tty.xflags & OSW_PAGED_OVERRIDE) atomic_clr(&dev->tty.xflags, OSW_PAGED_OVERRIDE);For more information, see the description of the TTYDEV structure in the Character DDK documentation.
- You must also edit the common.mk file in
hardware/devc and change the setting of LIBS
to this:
LIBS=io-char pm ps
Known issues for this DDK
![]() |
On Windows, you must run the Bash shell (bash.exe) before you run the . ./setenv.sh command. If you fail to run the . ./setenv.sh shell script prior to building the DDK, you can overwrite existing binaries or libs that are installed in $QNX_TARGET. |
Technical support
If you have any questions, comments, or problems with a QNX product, please contact Technical Support. For more information, see the How to Get Help chapter of the Welcome to QNX Momentics guide or visit our website, www.qnx.com.