mirror of
https://github.com/fumiama/gozel.git
synced 2026-06-08 10:00:27 +08:00
feat(gen): finish parsing ze_api.h
This commit is contained in:
47
core/externalMemMap.go
Normal file
47
core/externalMemMap.go
Normal file
@@ -0,0 +1,47 @@
|
||||
// Code generated by cmd/gen. DO NOT EDIT.
|
||||
|
||||
/*
|
||||
*
|
||||
* Copyright (C) 2019-2025 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
* @file ze_api.h
|
||||
* @version v1.15-r1.15.31
|
||||
*
|
||||
*/
|
||||
|
||||
package core
|
||||
|
||||
import (
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
// ZE_EXTERNAL_MEMORY_MAPPING_EXT_NAME External Memory Mapping Extension Name
|
||||
const ZE_EXTERNAL_MEMORY_MAPPING_EXT_NAME = "ZE_extension_external_memmap_sysmem"
|
||||
|
||||
// ZeExternalMemmapSysmemExtVersion (ze_external_memmap_sysmem_ext_version_t) External Memory Mapping Extension Version(s)
|
||||
type ZeExternalMemmapSysmemExtVersion uintptr
|
||||
const (
|
||||
ZE_EXTERNAL_MEMMAP_SYSMEM_EXT_VERSION_1_0 ZeExternalMemmapSysmemExtVersion = /* ZE_MAKE_VERSION( 1, 0 ) */((( 1 << 16 )|( 0 & 0x0000ffff))) // ZE_EXTERNAL_MEMMAP_SYSMEM_EXT_VERSION_1_0 version 1.0
|
||||
ZE_EXTERNAL_MEMMAP_SYSMEM_EXT_VERSION_CURRENT ZeExternalMemmapSysmemExtVersion = /* ZE_MAKE_VERSION( 1, 0 ) */((( 1 << 16 )|( 0 & 0x0000ffff))) // ZE_EXTERNAL_MEMMAP_SYSMEM_EXT_VERSION_CURRENT latest known version
|
||||
ZE_EXTERNAL_MEMMAP_SYSMEM_EXT_VERSION_FORCE_UINT32 ZeExternalMemmapSysmemExtVersion = 0x7fffffff // ZE_EXTERNAL_MEMMAP_SYSMEM_EXT_VERSION_FORCE_UINT32 Value marking end of ZE_EXTERNAL_MEMMAP_SYSMEM_EXT_VERSION_* ENUMs
|
||||
|
||||
)
|
||||
|
||||
// ZeExternalMemmapSysmemExtDesc (ze_external_memmap_sysmem_ext_desc_t) Maps external system memory for an allocation
|
||||
///
|
||||
/// @details
|
||||
/// - This structure may be passed to ::zeMemAllocHost, via the `pNext`
|
||||
/// member of ::ze_host_mem_alloc_desc_t to map system memory for a host
|
||||
/// allocation.
|
||||
/// - The system memory pointer and size being mapped must be page aligned
|
||||
/// based on the supported page sizes on the device.
|
||||
type ZeExternalMemmapSysmemExtDesc struct {
|
||||
Stype ZeStructureType // Stype [in] type of this structure
|
||||
Pnext unsafe.Pointer // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
|
||||
Psystemmemory unsafe.Pointer // Psystemmemory [in] system memory pointer to map; must be page-aligned.
|
||||
Size uint64 // Size [in] size of the system memory to map; must be page-aligned.
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user