Lpt1-Address (BIOS-RAM)

How can I access the LPT1-address that is stored in the BIOS-RAM (40:08
hex) from any QNX C++ Application Project?
Low-Level-Access using the command “in16()” after
“ThreadCtl(_NTO_TCTL_IO,NULL)” did not work.

Thanks for helping!

Hans-Christian Schneider
ZESS - University of Siegen
57076 Siegen
GERMANY

I found a solution, thanks:

lp1 = (unsigned*)(mmap_device_memory( 0, 0x2, PROT_READ | PROT_WRITE |
PROT_NOCACHE, 0, 0x408));
printf("%d:\n",*lp1);

Hans-Christian Schneider schrieb:

How can I access the LPT1-address that is stored in the BIOS-RAM (40:08
hex) from any QNX C++ Application Project?
Low-Level-Access using the command “in16()” after
“ThreadCtl(_NTO_TCTL_IO,NULL)” did not work.

Thanks for helping!

Hans-Christian Schneider
ZESS - University of Siegen
57076 Siegen
GERMANY