3 Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials are licensed and made available under
6 the terms and conditions of the BSD License that accompanies this distribution.
7 The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php.
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
20 EFI Lpc Driver for a Generic PC Platform
30 #include "LpcIsaAcpi.h"
32 #include "Protocol/IsaAcpi.h"
33 #include "Protocol/PciIo.h"
34 #include "Protocol/DriverBinding.h"
35 #include "Library/UefiBootServicesTableLib.h"
36 #include "IsaAcpiDxe/PcatIsaAcpi.h"
37 #include "IndustryStandard/Pci22.h"
38 #include "Protocol/LpcWpce791Policy.h"
40 #include <Library/DebugLib.h>
42 #define ICH_LPC_BRIDGE_BUS_DEV_FUNC 0x1F0000
45 // LPC device private data structure
47 //#define LPC_DEV_SIGNATURE 'W87X'
48 #define LPC_DEV_SIGNATURE SIGNATURE_32('X', '7', '8', 'W') //'W87X'
49 #define EFI_WPCE791_PS2_KEYBOARD_ENABLE 0x01
50 #define EFI_WPCE791_PS2_KEYBOARD_DISABLE 0x00
52 #define EFI_WPCE791_PS2_MOUSE_ENABLE 0x01
53 #define EFI_WPCE791_PS2_MOUSE_DISABLE 0x00
60 EFI_ISA_ACPI_PROTOCOL IsaAcpi
;
61 EFI_PCI_IO_PROTOCOL
*PciIo
;
65 #define LPC_ISA_ACPI_FROM_THIS(a) BASE_CR (a, LPC_DEV, IsaAcpi)
73 IN EFI_HANDLE ImageHandle
,
74 IN EFI_SYSTEM_TABLE
*SystemTable
78 // Prototypes for Driver model protocol interface
83 IN EFI_DRIVER_BINDING_PROTOCOL
*This
,
84 IN EFI_HANDLE Controller
,
85 IN EFI_DEVICE_PATH_PROTOCOL
*RemainingDevicePath
91 IN EFI_DRIVER_BINDING_PROTOCOL
*This
,
92 IN EFI_HANDLE Controller
,
93 IN EFI_DEVICE_PATH_PROTOCOL
*RemainingDevicePath
99 IN EFI_DRIVER_BINDING_PROTOCOL
*This
,
100 IN EFI_HANDLE Controller
,
101 IN UINTN NumberOfChildren
,
102 IN EFI_HANDLE
*ChildHandleBuffer