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