mirror of https://github.com/acidanthera/audk.git
Add more status code in drivers.
Signed-off-by: li-elvin Reviewed-by: jyao1 Reviewed-by: lgao4 Reviewed-by: erictian git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11705 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
4b0f378c19
commit
4bb5fd6754
|
@ -230,6 +230,12 @@ PS2MouseAbsolutePointerDriverStart (
|
||||||
//
|
//
|
||||||
// Initialize keyboard controller if necessary
|
// Initialize keyboard controller if necessary
|
||||||
//
|
//
|
||||||
|
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
|
||||||
|
EFI_PROGRESS_CODE,
|
||||||
|
EFI_PERIPHERAL_MOUSE | EFI_P_MOUSE_PC_SELF_TEST,
|
||||||
|
ParentDevicePath
|
||||||
|
);
|
||||||
|
|
||||||
IsaIo->Io.Read (IsaIo, EfiIsaIoWidthUint8, KBC_CMD_STS_PORT, 1, &Data);
|
IsaIo->Io.Read (IsaIo, EfiIsaIoWidthUint8, KBC_CMD_STS_PORT, 1, &Data);
|
||||||
if ((Data & KBC_SYSF) != KBC_SYSF) {
|
if ((Data & KBC_SYSF) != KBC_SYSF) {
|
||||||
Status = KbcSelfTest (IsaIo);
|
Status = KbcSelfTest (IsaIo);
|
||||||
|
|
|
@ -240,6 +240,13 @@ PS2MouseDriverStart (
|
||||||
StatusCode = EFI_PERIPHERAL_MOUSE | EFI_P_EC_NOT_DETECTED;
|
StatusCode = EFI_PERIPHERAL_MOUSE | EFI_P_EC_NOT_DETECTED;
|
||||||
goto ErrorExit;
|
goto ErrorExit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
|
||||||
|
EFI_PROGRESS_CODE,
|
||||||
|
EFI_PERIPHERAL_MOUSE | EFI_P_MOUSE_PC_SELF_TEST,
|
||||||
|
ParentDevicePath
|
||||||
|
);
|
||||||
|
|
||||||
if ((Data & KBC_SYSF) != KBC_SYSF) {
|
if ((Data & KBC_SYSF) != KBC_SYSF) {
|
||||||
Status = KbcSelfTest (IsaIo);
|
Status = KbcSelfTest (IsaIo);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
|
|
Loading…
Reference in New Issue