You should be able to use
Code:
loadrt hal_parport cfg="0x378 out"
or
Code:
loadrt hal_parport cfg="0 out"
for the on-board parallel port (have you tried using that one?
And
Code:
loadrt hal_parport cfg="0xdc00 out"
or
Code:
loadrt hal_parport cfg="1 out"
for your PCI card.
dmesg might give you some more ideas what is going on.
I will assume that you are using the RTAI live CD
Open 2 terminal windows
In the first run these commands to clear and monitor the dmesg kernel log
Code:
tail -f /var/log/kern.log
This window will show kernel messages from the drivers as they are created (ignore any output in this window up to this point)
In the second window enter an interactive HAL session and try these commands.
Code:
halrun
loadrt hal_parport cfg="0xdc00 out"
Take a note (copy and paste) of any output in either window
you can then exit the HAL session
and repeat the HAL commands in the same window with the other options and addresses.
Before you exit you can also read the parallel port pin states and set pin values, but to do that you need to load and start a realtime thread and add the parport functions to that
Code:
loadrt threads
addf parport.0.read thread1
addf parport.0.write thread1
start
show pin
and set the state of output pins
Code:
setp parport.0.pin-00-out 1
setp parport.0.pin-00-out 0