hc
2024-03-22 a0752693d998599af469473b8dc239ef973a012f
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/** @file
  Header file for VtdInfoLib.
 
  Copyright (c) 2021, Intel Corporation. All rights reserved.<BR>
  SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef _VTD_INFO_LIB_H_
#define _VTD_INFO_LIB_H_
 
#include <Base.h>
#include <Uefi/UefiBaseType.h>
#include <Library/HobLib.h>
 
#define VTD_ENGINE_NUMBER             7
 
#pragma pack(1)
 
/**
  Get VTD Engine Base Address from PCD values.
 
  @param[in]  VtdEngineNumber        - Engine number for which VTD Base Adderess is required.
 
  @retval   VTD Engine Base Address
**/
UINT32
GetVtdBaseAddress (
  IN UINT8        VtdEngineNumber
  );
 
/**
  Read VTD Engine Base Address from VTD BAR Offsets.
 
  @param[in]  VtdEngineNumber        - Engine number for which VTD Base Adderess is required.
 
  @retval   VTD Engine Base Address
**/
UINT32
ReadVtdBaseAddress (
  IN UINT8        VtdEngineNumber
  );
 
/**
  GetMaxVtdEngineNumber: Get Maximum Vtd Engine Number
 
  @retval Vtd Engine Number
**/
UINT8
GetMaxVtdEngineNumber(
  VOID
);
 
#pragma pack()
#endif // _VTD_INFO_LIB_H_