Re: 8259A initialization with AMD SC520 chip (586)

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Mon May 22 2000 - 08:14:23 EST


> > We have recent technology DEC laptops that require timing delays on the
> > keyboard controllers are honoured for that matter
>
> This is not the keyboard controller.

Odd but the DEC engineer I talked to says it is.

> > You might suggest using udelay() here but unfortunately we cannot calibrate
> > udelay until the TSC is programmed so that is out too.
>
> This is not necessary. Although "xor cx,cx ; loop $" will satisfy
> pedantics during the one-time setup of the chip.

256 clocks. Assuming parallel execution of both instructions 128 clocks. 128
clocks at 1GHz, is 8uS. So for likely future cpus we can assume it gets you
2uS - ok. Providing of course transmeta doesnt code morph it out !

> The IRQ, if it happens, will break everything anyway. You can't do
>
> out 0x20, 0x11 ; Start setup sequence
> ... get interrupted
> out 0x20, 0x20 ; ISR sends EOI to controller.
>
> ... so this is not relavant. The mask registers, 0x21, and 0xA1 have
> been masked off in setup.S anyway.

Good point.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue May 23 2000 - 21:00:21 EST