Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!rex!ukma!dftsrv!mimsy!nocusuhs!nmrdc1!minixug!arrakis!bert From: bert@arrakis.nl.mugnet.org (Bert Laverman) Newsgroups: comp.os.minix Subject: Re: Minix-ST keyboard / mouse / clock Message-ID: <9105072564@arrakis.nl.mugnet.org> Date: 7 May 91 15:13:41 GMT References: Organization: Alphasoft Nederland Lines: 39 In article , klamer@mi.eltn.utwente.nl (Klamer Schutte) wrote: > The atari ST hardware supplies a keyboard proccessor for the user. This > keyboard proccessor has the following output: > 1) key presses > 2) mouse events > 3) clock output. > 4) joystick output > [ some lines deleted ] > This leaves us with 3). This one can be off use. It has a clock which keeps > counting as long as the hardware is not switched off. This means that its > value is kept between switches between minix and tos. (And thus between > reboots of minix *). Reading the value involves giving the command (easy) > and picking the BCD digits which give the answer from the keyboard processor > (also easy). But what to to with this output? A good choice is IMHO to > make another device (again ...) which reads this data. (And the same device > can be used to set it ). Another choice would be to do the conversion > from BCD to minix time in kernel space and incorporate the device in > the clock. This would be hairy because reading the keyboard clock is not > immediate; it involves one write and than a hardware interrupt to stkbd.c, > which than reads the data, which should go to the clock, which then is > ready. Yechh. > > Comments, anyone??? The PCers use a program called readclock, which reads their hardware RTC, and prints the result in MMDDYYHHMMSS format (or "-q" if the time is found to be zero) to stdout. Maybe something comparable is possible. Hardware level: ikbd interrupt driver Driver level: /dev/kbd, /dev/mouse, /dev/joystick and /dev/rtc. Looks feasable to me. Bert ===================================================================== Bert Laverman email: bert@arrakis.nl.mugnet.org tel.: +31 50 - 733587 or: laverman@cs.rug.nl =====================================================================