summaryrefslogtreecommitdiff
path: root/Platform/Intel/BoardModulePkg/Library/CmosAccessLib/CmosAccessLibInternal.h
blob: 61baec3f9276dc80baf670141253f0a0c2875018 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/** @file
  CmosAccessLib internal header file.

Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent

**/

#ifndef _CMOS_ACCESS_LIB_INTERNALS_
#define _CMOS_ACCESS_LIB_INTERNALS_

#include <Base.h>
#include <Uefi.h>
#include <Library/IoLib.h>
#include <Library/DebugLib.h>
#include <Library/CmosAccessLib.h>
#include <Library/PlatformCmosAccessLib.h>

// CMOS access Port address

#define PORT_70            0x70
#define PORT_71            0x71
#define PORT_72            0x72
#define PORT_73            0x73

#define CMOS_BANK0_LIMIT   0x7F
#define CMOS_BANK1_LIMIT   0xFF

typedef struct {
   UINT8  Length;
   UINT8  LowByteAddress;
   UINT8  HighByteAddress;
} CMOS_CHECKSUM_LOCATION_INFO;

#endif // _CMOS_ACCESS_LIB_INTERNALS_