summaryrefslogtreecommitdiffstats
path: root/src/soc/intel/common/block/include/intelblocks/vtd.h
blob: 222101a2444ea4fc1e01c22d94ff67c66aa2752d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* SPDX-License-Identifier: GPL-2.0-only */

#ifndef SOC_INTEL_COMMON_BLOCK_VTD_H
#define SOC_INTEL_COMMON_BLOCK_VTD_H

#include <stdint.h>

/*
 * Enable DMA protection by setting PMR registers in VT-d for whole DRAM memory.
 */
void vtd_enable_dma_protection(void);
/*
 * Get DMA buffer base and size.
 */
void *vtd_get_dma_buffer(size_t *size);

#endif /* SOC_INTEL_COMMON_BLOCK_VTD_H */