Subject: Re: Apollo keyboard, serial drivers (announce)
To: mike smith <miff@spam.frisbee.net.au>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: port-hp300
Date: 04/15/1997 12:41:52
On Wed, 16 Apr 1997 01:49:27 +0930 
 mike smith <miff@spam.frisbee.net.au> wrote:

 > Well, I just blew the evening playing with this as an idea.  I'm not
 > quite so sure I like it, unfortunately.

...Oh, I think you looked at the wrong one... see below :-)

 > Firstly, I couldn't actually find an MI "zs" driver, only the one
 > in the sparc port.  It, and the sparc keyboard driver, are made much
 > cleaner by virtue of there being a working prom console interface, so
 > that there's no need for the keyboard driver to be involved with
 > cngetc() and the like.

...The MI zs driver is located in:

	sys/dev/ic/z8530*
...including a "zstty" driver.

The drivers for the sun3 keyboard and mice, which are children of the
"zsc" (zs chip) driver are in sys/dev/sun.  The mvme68k port uses
the MI "zs" driver, but attaches 4 ttys.  See sys/arch/mvme68k/dev.

 > Making the apci driver talk up to the keyboard handler, by 
 > contrast, was pretty easy - this was using the 'pseudo-device dnkbd'
 > approach, again as per the sparc port.

...well, I want to avoid the "pseudo-device" approach, because with
that approach, you can't specifiy the location of the dnkbd when it's
a pseudo-device.

 > Perhaps it's something to pursue a little further down the track,
 > perhaps after you've converted the scsi driver over to use the
 > MI scsi code?  It'd be nice to be able to use my CDrom on the
 > 425 8)

Well, CD-ROM drives work for data (no audio yet) with the current
hp300 SCSI code:

oscsi0 at dio0 scode 14 ipl 3: 32 bit dma, async, scsi id 7
sd0 at oscsi0 targ 0 lun 0: <SEAGATE, ST43400N, 1022> (SCSI-2)
sd0: 2737 cylinders, 21 heads, 5688447 blocks, 512 bytes/block
sd1 at oscsi0 targ 1 lun 0: <COMPAQ, M2694ES-512, 952B>
sd1: 1819 cylinders, 15 heads, 2051000 blocks, 512 bytes/block
sd2 at oscsi0 targ 2 lun 0: <HITACHI, DK516C, NO34> (SCSI-2)
sd2: 2179 cylinders, 15 heads, 2606400 blocks, 512 bytes/block
st0 at oscsi0 targ 3 lun 0: <ARCHIVE, VIPER 60   21116, -007>
sd3 at oscsi0 targ 4 lun 0: <TOSHIBA, CD-ROM XM-3301TA, 0272> (SCSI-2)
sd3: CD-ROM, 249596 blocks, 2048 bytes/block
     ^^^^^^
     I use this all the time :-)
st1 at oscsi0 targ 5 lun 0: <ARCHIVE, Python 28849-XXX, 4.98> (SCSI-2)

 > If you wish, I'll clean up and rename the apkbd driver
 > (de-cruft it in particular) and post the diffs in a day or two.

Sure... That'd be fine... I don't anticipate being able to do any
serious integration work until this weekend (at which time I want
to rework the HIL a little bit), and probably not until Sunday
in any event.

Ciao.

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