ff605594dd
emulated by BIOS using SMI interrupt. On those chipsets reading from the status port may be thousand times slower than usually. Sometimes this emilation is not working properly resulting in commands timing out and since we assume that inb() operation takes very little time to complete we need to adjust number of retries to keep waiting time within a designed limits (100ms). Measure time it takes to make read_status() call and adjust number of retries accordingly. To keep it simple, use TSC to measure inb() performance and keep it to amd64-only, since TSC may not available on older CPUs. Also enable detection of the AT controller absence on amd64. Reviewed by: jhb MFC after: 1 month |
||
---|---|---|
.. | ||
atkbd_atkbdc.c | ||
atkbd.c | ||
atkbdc_ebus.c | ||
atkbdc_isa.c | ||
atkbdc_subr.c | ||
atkbdc_subr.h | ||
atkbdc.c | ||
atkbdcreg.h | ||
atkbdreg.h | ||
psm.c | ||
psm.h |