From 8b2982cd59533486c31f6effae45cdf7899209b8 Mon Sep 17 00:00:00 2001 From: Jiewen Yao Date: Sat, 17 Mar 2018 07:41:44 +0800 Subject: PurleyOpenBoardPkg: Initial version. Cc: Isaac W Oram Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jiewen Yao Reviewed-by: Isaac W Oram --- .../Intel/PurleyOpenBoardPkg/Include/SioRegs.h | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 Platform/Intel/PurleyOpenBoardPkg/Include/SioRegs.h (limited to 'Platform/Intel/PurleyOpenBoardPkg/Include/SioRegs.h') diff --git a/Platform/Intel/PurleyOpenBoardPkg/Include/SioRegs.h b/Platform/Intel/PurleyOpenBoardPkg/Include/SioRegs.h new file mode 100644 index 0000000000..d3ac4c95a5 --- /dev/null +++ b/Platform/Intel/PurleyOpenBoardPkg/Include/SioRegs.h @@ -0,0 +1,41 @@ +/** @file + +Copyright (c) 2018, Intel Corporation. All rights reserved.
+This program and the accompanying materials are licensed and made available under +the terms and conditions of the BSD License that accompanies this distribution. +The full text of the license may be found at +http://opensource.org/licenses/bsd-license.php. + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + +**/ + +#ifndef _SIO_REG_H_ +#define _SIO_REG_H_ + +typedef struct { + UINT8 Index; + UINT8 Value; +} SIO_INDEX_DATA; + +#define REG_LOGICAL_DEVICE 0x07 +#define ACTIVATE 0x30 + +#define BASE_ADDRESS_HIGH0 0x60 +#define BASE_ADDRESS_LOW0 0x61 +#define INTERRUPT_TYPE 0x71 + +#define SIO_INDEX_PORT 0x2E +#define SIO_DATA_PORT 0x2F + +#define SIO_UART1 0x02 +#define SIO_SMI 0x0D +#define SIO_MAILBOX 0x0E + +#define SIO_UNLOCK 0xA5 +#define SIO_LOCK 0xAA + +#define EXIST BIT4 + +#endif -- cgit v1.2.3