6d330ca52f
Create controls at their initial layout sizes and reduce system information panel flicker. Recover GPU/NPU monitoring after adapter restarts, correct sensor aggregation, and optimize graph updates. Restrict upload destinations, bound updater downloads, use monotonic transfer timing, and fix resource leaks and firewall cache races.
46 lines
864 B
C
46 lines
864 B
C
/*
|
|
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
|
|
*
|
|
* This file is part of System Informer.
|
|
*
|
|
* Authors:
|
|
*
|
|
* wj32 2011-2015
|
|
* dmex 2016-2023
|
|
* jxy-s 2024
|
|
*
|
|
*/
|
|
|
|
#ifndef NPUMON_H
|
|
#define NPUMON_H
|
|
|
|
// Macros
|
|
|
|
#define BYTES_NEEDED_FOR_BITS(Bits) ((((Bits) + sizeof(ULONG) * 8 - 1) / 8) & ~(SIZE_T)(sizeof(ULONG) - 1)) // divide round up
|
|
|
|
// Functions
|
|
|
|
BOOLEAN EtpNpuInitializeD3DStatistics(
|
|
_In_opt_ PPH_LIST DiscoveredAdapterList
|
|
);
|
|
|
|
PETP_NPU_ADAPTER EtpAllocateNpuAdapter(
|
|
_In_ ULONG NumberOfSegments
|
|
);
|
|
|
|
VOID EtpNpuResetAdapterNodeDeltas(
|
|
_In_ PETP_NPU_ADAPTER NpuAdapter
|
|
);
|
|
|
|
VOID EtpNpuRefreshAdapterLuids(
|
|
VOID
|
|
);
|
|
|
|
_Function_class_(PH_CALLBACK_FUNCTION)
|
|
VOID NTAPI EtNpuProcessesUpdatedCallback(
|
|
_In_opt_ PVOID Parameter,
|
|
_In_opt_ PVOID Context
|
|
);
|
|
|
|
#endif
|