]>
Commit | Line | Data |
---|---|---|
b303605e MK |
1 | /** @file\r |
2 | Header file for Platform Initialization Driver.\r | |
3 | \r | |
4 | Copyright (c) 2013-2015 Intel Corporation.\r | |
5 | \r | |
6 | This program and the accompanying materials\r | |
7 | are licensed and made available under the terms and conditions of the BSD License\r | |
8 | which accompanies this distribution. The full text of the license may be found at\r | |
9 | http://opensource.org/licenses/bsd-license.php\r | |
10 | \r | |
11 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
12 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
13 | \r | |
14 | **/\r | |
15 | \r | |
16 | #ifndef _SETUP_PLATFORM_H\r | |
17 | #define _SETUP_PLATFORM_H\r | |
18 | \r | |
19 | //\r | |
20 | // Data\r | |
21 | //\r | |
22 | #define PLATFORM_NUM_SMBUS_RSVD_ADDRESSES 4\r | |
23 | #define VAR_OFFSET(Field) ((UINT16) ((UINTN) &(((SYSTEM_CONFIGURATION *) 0)->Field)))\r | |
24 | #define QUESTION_ID(Field) (VAR_OFFSET (Field) + 1)\r | |
25 | \r | |
26 | #define SMBUS_ADDR_CH_A_1 0xA0\r | |
27 | #define SMBUS_ADDR_CK505 0xD2\r | |
28 | #define SMBUS_ADDR_THERMAL_SENSOR1 0x4C\r | |
29 | #define SMBUS_ADDR_THERMAL_SENSOR2 0x4D\r | |
30 | \r | |
31 | ///\r | |
32 | /// HII specific Vendor Device Path Node definition.\r | |
33 | ///\r | |
34 | #pragma pack(1)\r | |
35 | \r | |
36 | typedef struct {\r | |
37 | VENDOR_DEVICE_PATH VendorDevicePath;\r | |
38 | UINT16 UniqueId;\r | |
39 | } HII_VENDOR_DEVICE_PATH_NODE;\r | |
40 | \r | |
41 | ///\r | |
42 | /// HII specific Vendor Device Path definition.\r | |
43 | ///\r | |
44 | typedef struct {\r | |
45 | HII_VENDOR_DEVICE_PATH_NODE Node;\r | |
46 | EFI_DEVICE_PATH_PROTOCOL End;\r | |
47 | } HII_VENDOR_DEVICE_PATH;\r | |
48 | \r | |
49 | #pragma pack()\r | |
50 | \r | |
51 | //\r | |
52 | // Prototypes\r | |
53 | //\r | |
54 | VOID\r | |
55 | ProducePlatformCpuData (\r | |
56 | VOID\r | |
57 | );\r | |
58 | \r | |
59 | VOID\r | |
60 | PlatformInitQNCRegs (\r | |
61 | VOID\r | |
62 | );\r | |
63 | \r | |
64 | EFI_STATUS\r | |
65 | InitKeyboardLayout (\r | |
66 | VOID\r | |
67 | );\r | |
68 | \r | |
69 | //\r | |
70 | // Global externs\r | |
71 | //\r | |
72 | extern UINT8 UefiSetupDxeStrings[];\r | |
73 | \r | |
74 | extern EFI_HII_DATABASE_PROTOCOL *mHiiDataBase;\r | |
75 | extern EFI_HII_CONFIG_ROUTING_PROTOCOL *mHiiConfigRouting;\r | |
76 | \r | |
77 | #endif\r |