1 /* 2 * Copyright (C) 2019-2020 Intel Corporation 3 * 4 * SPDX-License-Identifier: MIT 5 * 6 */ 7 8 #include <stdint.h> 9 #pragma once 10 11 enum InternalMemoryType : uint32_t { 12 NOT_SPECIFIED = 0b0, 13 SVM = 0b1, 14 DEVICE_UNIFIED_MEMORY = 0b10, 15 HOST_UNIFIED_MEMORY = 0b100, 16 SHARED_UNIFIED_MEMORY = 0b1000 17 }; 18 19 struct UnifiedMemoryControls { 20 uint32_t generateMask(); 21 bool indirectDeviceAllocationsAllowed = false; 22 bool indirectHostAllocationsAllowed = false; 23 bool indirectSharedAllocationsAllowed = false; 24 }; 25