Subject: Re: Multpile serial port adapter on 425?
To: michael smith <mike@smith.net.au>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: port-hp300
Date: 07/10/1997 10:53:25
On Thu, 10 Jul 1997 22:54:20 +0930 (CST) 
 michael smith <mike@smith.net.au> wrote:

 > The device nodes are called whatever you want to call them; you can
 > make them with 'mknod'; the apci driver has major number 31, the
 > ports are probably minors 0 and 1.

BZZT.  :-)

Get the latest version of the hp300 MAKEDEV (src/etc/etc.hp300/MAKEDEV,
revision 1.16), and note:

# Terminal multiplexors: 
#       dca*    HP200/300 single port serial interface
#       dcm*    HP200/300 4 port serial mux interface
#       apci*   HP400     4 port serial mux interface

...

apci*)  
	# There exists only one Frodo ASIC per HP9000/400 SPU.
	unit=${i#apci}
	case $unit in
	0)
		for i in 0 1 2 3; do
			rm -f ttya${i}; mknod ttya${i} c 31 ${i};
		done
		;;
	*)
		echo bad unit for apci in: $i
		;;
	esac
	;;

So, if you "MAKEDEV apci0", it will create:

	/dev/ttya0
	/dev/ttya1
	/dev/ttya2
	/dev/ttya3

Jason R. Thorpe                                       thorpej@nas.nasa.gov
NASA Ames Research Center                               Home: 408.866.1912
NAS: M/S 258-6                                          Work: 415.604.0935
Moffett Field, CA 94035                                Pager: 415.428.6939