3 Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
15 EFI Lpc Driver for a Generic PC Platform
25 #include "LpcIsaAcpi.h"
27 #include "Protocol/IsaAcpi.h"
28 #include "Protocol/PciIo.h"
29 #include "Protocol/DriverBinding.h"
30 #include "Library/UefiBootServicesTableLib.h"
31 #include "IsaAcpiDxe/PcatIsaAcpi.h"
32 #include "IndustryStandard/Pci22.h"
33 #include "Protocol/LpcWpce791Policy.h"
35 #include <Library/DebugLib.h>
37 #define ICH_LPC_BRIDGE_BUS_DEV_FUNC 0x1F0000
40 // LPC device private data structure
42 //#define LPC_DEV_SIGNATURE 'W87X'
43 #define LPC_DEV_SIGNATURE SIGNATURE_32('X', '7', '8', 'W') //'W87X'
44 #define EFI_WPCE791_PS2_KEYBOARD_ENABLE 0x01
45 #define EFI_WPCE791_PS2_KEYBOARD_DISABLE 0x00
47 #define EFI_WPCE791_PS2_MOUSE_ENABLE 0x01
48 #define EFI_WPCE791_PS2_MOUSE_DISABLE 0x00
55 EFI_ISA_ACPI_PROTOCOL IsaAcpi
;
56 EFI_PCI_IO_PROTOCOL
*PciIo
;
60 #define LPC_ISA_ACPI_FROM_THIS(a) BASE_CR (a, LPC_DEV, IsaAcpi)
68 IN EFI_HANDLE ImageHandle
,
69 IN EFI_SYSTEM_TABLE
*SystemTable
73 // Prototypes for Driver model protocol interface
78 IN EFI_DRIVER_BINDING_PROTOCOL
*This
,
79 IN EFI_HANDLE Controller
,
80 IN EFI_DEVICE_PATH_PROTOCOL
*RemainingDevicePath
86 IN EFI_DRIVER_BINDING_PROTOCOL
*This
,
87 IN EFI_HANDLE Controller
,
88 IN EFI_DEVICE_PATH_PROTOCOL
*RemainingDevicePath
94 IN EFI_DRIVER_BINDING_PROTOCOL
*This
,
95 IN EFI_HANDLE Controller
,
96 IN UINTN NumberOfChildren
,
97 IN EFI_HANDLE
*ChildHandleBuffer