1 /*
2  * Copyright (C) 2019-2020 Intel Corporation
3  *
4  * SPDX-License-Identifier: MIT
5  *
6  */
7 
8 #pragma once
9 
10 #include <cstdint>
11 
12 namespace NEO {
13 
14 using UnifiedSharingMemoryProperties = uint64_t;
15 
16 enum class UnifiedSharingContextType {
17     DeviceHandle = 0x300B,
18     DeviceGroup = 0x300C
19 };
20 
21 enum class UnifiedSharingHandleType {
22     LinuxFd = 1,
23     Win32Shared = 2,
24     Win32Nt = 3
25 };
26 
27 struct UnifiedSharingMemoryDescription {
28     UnifiedSharingHandleType type;
29     void *handle;
30     unsigned long long size;
31 };
32 
33 } // namespace NEO
34