]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Sample/Platform/Generic/RuntimeDxe/StatusCode/Lib/RtLedStatusCode/RtLedStatusCode.h
Update the copyright notice format
[mirror_edk2.git] / EdkCompatibilityPkg / Sample / Platform / Generic / RuntimeDxe / StatusCode / Lib / RtLedStatusCode / RtLedStatusCode.h
CommitLineData
b38907a6 1/*++\r
2\r
4b1e1121
HT
3Copyright (c) 2004, Intel Corporation. All rights reserved.<BR>\r
4This program and the accompanying materials \r
b38907a6 5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12Module Name:\r
13 \r
14 RtLedStatusCode.h\r
15 \r
16Abstract:\r
17\r
18 Lib to provide status code reporting via LED.\r
19\r
20--*/\r
21\r
22#ifndef _EFI_LED_STATUS_CODE_H_\r
23#define _EFI_LED_STATUS_CODE_H_\r
24\r
25//\r
26// Statements that include other files\r
27//\r
28#include "Tiano.h"\r
29#include "EfiCommonLib.h"\r
30#include "EfiRuntimeLib.h"\r
31#include "EfiStatusCode.h"\r
32\r
33//\r
34// SIOINIT data\r
35//\r
36typedef struct {\r
37 UINT8 RegAddress;\r
38 UINT8 RegValue;\r
39} SIO_INIT_DATA;\r
40\r
41#define LED_DATA_OFFSET 0x0E\r
42#define LED_STROBE_OFFSET 0x0A\r
43\r
44#define LED_MASK_BIT 0x10\r
45#define STROBE_MASK_BIT 0x08\r
46\r
47#define GPIO_BASE(a, b) (UINT16) ((a << 8) | (b))\r
48\r
49#define SIO_GPIO_HIGH 0x08\r
50#define SIO_GPIO_LOW 0x00\r
51\r
52#define CONFIG_PORT0 0x2E\r
53#define DATA_PORT0 0x2F\r
54\r
55//\r
56// logical device in NSPC87417\r
57//\r
58#define SIO_GPIO 0x7\r
59\r
60//\r
61// Global register in NSPC87417\r
62//\r
63#define REG_LOGICAL_DEVICE 0x07\r
64\r
65#define REG_SERVERIO_CNF1 0x21\r
66#define REG_SERVERIO_CNF2 0x22\r
67#define REG_SERVERIO_CNF3 0x23\r
68#define REG_SERVERIO_CNF4 0x24\r
69#define REG_SERVERIO_CNF6 0x26\r
70\r
71#define ACTIVATE 0x30\r
72#define LOGICAL_DEVICE_ON 0x01\r
73#define LOGICAL_DEVICE_OFF 0x00\r
74#define BASE_ADDRESS_HIGH 0x60\r
75#define BASE_ADDRESS_LOW 0x61\r
76\r
77//\r
78// Register for GPIO\r
79//\r
80#define GPIO_GPSEL 0xF0\r
81\r
82#define GPIO_GPCFG1 0xF1\r
83#define PUSH_PULL 0x02\r
84#define OUTPUT_BUFFER_EN 0x01\r
85\r
86#define GPIO_GPEVR 0xF2\r
87#define GPIO_EVENT_OFF 0x00\r
88\r
89#endif\r