1. Add Max Try Times check to clear Ps2Kbd status register. If exceed the max try times, the device may be error.

2. To follow PI spec, PciCfg PPI doesn't require ASSERT for the unalign PCI IO access.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6659 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
lgao4
2008-11-21 05:55:40 +00:00
parent d4a20ec9dc
commit 05f89b17b8
4 changed files with 32 additions and 8 deletions

View File

@@ -155,6 +155,7 @@ InstallPs2KeyboardDriver (
#define KEYBOARD_KBEN 0xF4
#define KEYBOARD_CMDECHO_ACK 0xFA
#define KEYBOARD_MAX_TRY 256 // 256
#define KEYBOARD_TIMEOUT 65536 // 0.07s
#define KEYBOARD_WAITFORVALUE_TIMEOUT 1000000 // 1s
#define KEYBOARD_BAT_TIMEOUT 4000000 // 4s