xref: /linux/drivers/gpu/drm/ttm/ttm_pool_internal.h (revision d53adc244fbf965d7efeefb278ff8f2664bbe20e)
1 /* SPDX-License-Identifier: GPL-2.0 OR MIT */
2 /* Copyright (c) 2025 Valve Corporation */
3 
4 #ifndef _TTM_POOL_INTERNAL_H_
5 #define _TTM_POOL_INTERNAL_H_
6 
7 #include <drm/ttm/ttm_pool.h>
8 
9 static inline bool ttm_pool_uses_dma_alloc(struct ttm_pool *pool)
10 {
11 	return pool->use_dma_alloc;
12 }
13 
14 static inline bool ttm_pool_uses_dma32(struct ttm_pool *pool)
15 {
16 	return pool->use_dma32;
17 }
18 
19 #endif
20