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 Lpc driver's sio interface
29 #include "Protocol/PciRootBridgeIo.h"
31 #define VARSIOINSTALLED L"VarSIOProcotolInstalled"
36 #define CONFIG_PORT 0x04E
37 #define INDEX_PORT 0x04E
38 #define DATA_PORT INDEX_PORT + 1
46 #define SIO_KEYBOARD 0x6
56 #define REG_LOGICAL_DEVICE 0x07
57 #define REG_DEVICE_ID 0x20
58 #define SIO_CONFIG_1 0x21
59 #define REG_CHIP_REV 0x24
60 #define SIO_CONFIG_5 0x25
61 #define SIO_CONFIG_6 0x26
62 #define REG_DEVICE_REV 0x27
63 #define SIO_CONFIG_9 0x29
64 #define SIO_CONFIG_D 0x2D
67 #define BASE_ADDRESS_HIGH 0x60
68 #define BASE_ADDRESS_LOW 0x61
69 #define BASE_ADDRESS_HIGH2 0x62
70 #define BASE_ADDRESS_LOW2 0x63
71 #define PRIMARY_INTERRUPT_SELECT 0x70
72 #define DMA_CHANNEL_SELECT 0x74
76 IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL
*RootBridgeIo
80 // Prototypes for the sio internal function
86 LPCWPCE791SetDefault (
91 WriteRegisterAndSaveToScript (
102 DisableLogicalDevice (