summaryrefslogtreecommitdiffstats
path: root/ArmVirtPkg/Include/Guid/EarlyPL011BaseAddress.h
blob: 43b106f3ff04f7207c613f034c8a99b7615ca42f (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
/** @file
  GUID for the HOB that caches the base address(es) of the PL011 serial port(s),
  for when PCD access is not available.

  Copyright (C) 2014, Red Hat, Inc.

  SPDX-License-Identifier: BSD-2-Clause-Patent

**/

#ifndef __EARLY_PL011_BASE_ADDRESS_H__
#define __EARLY_PL011_BASE_ADDRESS_H__

#define EARLY_PL011_BASE_ADDRESS_GUID  {\
          0xB199DEA9, 0xFD5C, 0x4A84, \
          { 0x80, 0x82, 0x2F, 0x41, 0x70, 0x78, 0x03, 0x05 } \
        }

extern EFI_GUID  gEarlyPL011BaseAddressGuid;

typedef struct {
  //
  // for SerialPortLib and console IO
  //
  UINT64    ConsoleAddress;
  //
  // for DebugLib; may equal ConsoleAddress if there's only one PL011 UART
  //
  UINT64    DebugAddress;
} EARLY_PL011_BASE_ADDRESS;

#endif