]> git.proxmox.com Git - mirror_edk2.git/blob - QuarkPlatformPkg/Platform/Dxe/Setup/SetupPlatform.h
a0ea25ca908c01f7ba605f6c894e045f9995a0a4
[mirror_edk2.git] / QuarkPlatformPkg / Platform / Dxe / Setup / SetupPlatform.h
1 /** @file
2 Header file for Platform Initialization Driver.
3
4 Copyright (c) 2013-2015 Intel Corporation.
5
6 SPDX-License-Identifier: BSD-2-Clause-Patent
7
8 **/
9
10 #ifndef _SETUP_PLATFORM_H
11 #define _SETUP_PLATFORM_H
12
13 //
14 // Data
15 //
16 #define PLATFORM_NUM_SMBUS_RSVD_ADDRESSES 4
17 #define VAR_OFFSET(Field) ((UINT16) ((UINTN) &(((SYSTEM_CONFIGURATION *) 0)->Field)))
18 #define QUESTION_ID(Field) (VAR_OFFSET (Field) + 1)
19
20 #define SMBUS_ADDR_CH_A_1 0xA0
21 #define SMBUS_ADDR_CK505 0xD2
22 #define SMBUS_ADDR_THERMAL_SENSOR1 0x4C
23 #define SMBUS_ADDR_THERMAL_SENSOR2 0x4D
24
25 ///
26 /// HII specific Vendor Device Path Node definition.
27 ///
28 #pragma pack(1)
29
30 typedef struct {
31 VENDOR_DEVICE_PATH VendorDevicePath;
32 UINT16 UniqueId;
33 } HII_VENDOR_DEVICE_PATH_NODE;
34
35 ///
36 /// HII specific Vendor Device Path definition.
37 ///
38 typedef struct {
39 HII_VENDOR_DEVICE_PATH_NODE Node;
40 EFI_DEVICE_PATH_PROTOCOL End;
41 } HII_VENDOR_DEVICE_PATH;
42
43 #pragma pack()
44
45 //
46 // Prototypes
47 //
48 VOID
49 ProducePlatformCpuData (
50 VOID
51 );
52
53 VOID
54 PlatformInitQNCRegs (
55 VOID
56 );
57
58 EFI_STATUS
59 InitKeyboardLayout (
60 VOID
61 );
62
63 //
64 // Global externs
65 //
66 extern UINT8 UefiSetupDxeStrings[];
67
68 extern EFI_HII_DATABASE_PROTOCOL *mHiiDataBase;
69 extern EFI_HII_CONFIG_ROUTING_PROTOCOL *mHiiConfigRouting;
70
71 #endif