3 Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
15 Lpc driver's sio interface
24 #include "Protocol/PciRootBridgeIo.h"
26 #define VARSIOINSTALLED L"VarSIOProcotolInstalled"
31 #define CONFIG_PORT 0x04E
32 #define INDEX_PORT 0x04E
33 #define DATA_PORT INDEX_PORT + 1
41 #define SIO_KEYBOARD 0x6
51 #define REG_LOGICAL_DEVICE 0x07
52 #define REG_DEVICE_ID 0x20
53 #define SIO_CONFIG_1 0x21
54 #define REG_CHIP_REV 0x24
55 #define SIO_CONFIG_5 0x25
56 #define SIO_CONFIG_6 0x26
57 #define REG_DEVICE_REV 0x27
58 #define SIO_CONFIG_9 0x29
59 #define SIO_CONFIG_D 0x2D
62 #define BASE_ADDRESS_HIGH 0x60
63 #define BASE_ADDRESS_LOW 0x61
64 #define BASE_ADDRESS_HIGH2 0x62
65 #define BASE_ADDRESS_LOW2 0x63
66 #define PRIMARY_INTERRUPT_SELECT 0x70
67 #define DMA_CHANNEL_SELECT 0x74
71 IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL
*RootBridgeIo
75 // Prototypes for the sio internal function
81 LPCWPCE791SetDefault (
86 WriteRegisterAndSaveToScript (
97 DisableLogicalDevice (