home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / linux / 21137 < prev    next >
Encoding:
Text File  |  1992-12-21  |  2.0 KB  |  49 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!mcsun!Germany.EU.net!urmel.informatik.rwth-aachen.de!solaris.rz.tu-clausthal.de!news!ifwsn4!riepe
  3. From: riepe@ifwsn4.ifw.uni-hannover.de (Michael Riepe)
  4. Subject: Re: keyboard problems - v.99
  5. Message-ID: <1992Dec20.022211.13865@newsserver.rrzn.uni-hannover.de>
  6. Sender: news@newsserver.rrzn.uni-hannover.de (News Service)
  7. Reply-To: riepe@ifwsn4.ifw.uni-hannover.de
  8. Organization: University of Hannover (Germany), IFW
  9. References: <JEM.92Dec16212729@lk-hp-6.hut.fi>
  10. Date: Sun, 20 Dec 1992 02:22:11 GMT
  11. Lines: 36
  12.  
  13. In article 92Dec16212729@lk-hp-6.hut.fi, jem@snakemail.hut.fi (Johan Myreen) writes:
  14. |>In article <1992Dec15.022727.27072@cc.gatech.edu> ammo@cc.gatech.edu (Ammo Goettsch) writes:
  15. |>
  16. |>[lines deleted]
  17. |>
  18. |>On a related note: does anybody know what the following lines in
  19. |>keyboard.c are good for? The same code (in assembler) is in
  20. |>boot/setup.S, too. Is this some kind of standard practice?
  21. |>
  22. |>         pt_regs = (struct pt_regs *) int_pt_regs;
  23. |>         scancode=inb_p(0x60);
  24. |>!        x=inb_p(0x61);
  25. |>!        outb_p(x|0x80, 0x61);
  26. |>!        outb_p(x&0x7f, 0x61);
  27. |>         if (scancode == 0xe0)
  28. |>                 set_kbd_flag(KG_E0);
  29. |>
  30. |>The ins and outs toggle a bit in the keyboard controller's RAM. This
  31. |>RAM location is not documented by IBM, or at least I haven't been able
  32. |>to find it in the Technical References. The only documented i/o
  33. |>addresses are 0x60 (data) and 0x64 (status), and the keyboard driver
  34. |>should work perfectly without this bit fiddling. In fact, I even tried
  35. |>removing them, with no ill effects.
  36.  
  37. IMHO, this piece of code is of no use; it was used to reset the
  38. keyboard strobe on ancient PC's and XT's which had no keyboard
  39. controller but just a shift register for serial->parallel conversion.
  40.  
  41. Michael.
  42. -- 
  43.  Michael Riepe               <riepe@ifwsn4.ifw.uni-hannover.de>
  44.  Universit"at Hannover
  45.  Institut f"ur Fertigungstechnik und Spanende Werkzeugmaschinen
  46.  Schlosswender Str. 5               W-3000 Hannover 1 (Germany)
  47.  ...life is a sexually transmitted desease !
  48.  
  49.