checking number of parallel ports installed and their port adresses

Alexander Best alexbestms at math.uni-muenster.de
Tue Jul 21 22:43:23 UTC 2009


hi there,

i've written an app in c (and a bit of asm) which needs to do raw parallel
port io using the i386 opcodes in/out. to get the number of available parallel
ports installed and their addresses i open and mmap /dev/mem and read the
address-values from the BIOS area @ 0x408. is there a better way to find out
the number of parallel ports installed and their addresses?

cheers.


More information about the freebsd-hackers mailing list