mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
32 lines
885 B
C++
32 lines
885 B
C++
/*
|
|
* Copyright (C) 2019-2025 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "neo_igfxfmid.h"
|
|
|
|
#include <cstdint>
|
|
#include <stddef.h>
|
|
|
|
#ifndef _WIN32
|
|
#define __stdcall
|
|
#endif
|
|
|
|
namespace NEO {
|
|
using NotifyAubCaptureFunc = long(__stdcall *)(void *csrHandle, uint64_t gfxAddress, size_t gfxSize, bool allocate);
|
|
using WriteL3AddressFunc = int(__stdcall *)(void *queueHandle, uint64_t l3GfxAddress, uint64_t regOffset);
|
|
|
|
extern NotifyAubCaptureFunc notifyAubCaptureFuncFactory[IGFX_MAX_CORE];
|
|
extern WriteL3AddressFunc writeL3AddressFuncFactory[IGFX_MAX_CORE];
|
|
|
|
template <typename GfxFamily>
|
|
struct GmmCallbacks {
|
|
static long __stdcall notifyAubCapture(void *csrHandle, uint64_t gfxAddress, size_t gfxSize, bool allocate);
|
|
static int __stdcall writeL3Address(void *queueHandle, uint64_t l3GfxAddress, uint64_t regOffset);
|
|
};
|
|
|
|
} // namespace NEO
|