nt9856x/BSP/linux-kernel/arch/arm/plat-novatek/include/plat-na51055/dma_protected.h
2023-03-28 15:07:53 +08:00

45 lines
977 B
C
Executable File

/*
Novatek protected header file
The header file for Novatek protected APIs
@file efuse_protected.h
@ingroup mIDriver
@note For Novatek internal reference, don't export to agent or customer.
Copyright Novatek Microelectronics Corp. 2018. All rights reserved
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
*/
#ifndef _NVT_DMA_PROTECTED_H
#define _NVT_DMA_PROTECTED_H
#include <mach/nvt_type.h>
/**
DMA controller ID
*/
typedef enum {
DMA_ID_1, ///< DMA Controller
DMA_ID_2, ///< DMA Controller 2
DMA_ID_COUNT, //< DMA controller count
ENUM_DUMMY4WORD(DMA_ID)
} DMA_ID;
/*
Get DRAM utilization
Get DRAM bandwidth utilization
@return DRAM utilization X %
*/
extern UINT32 dma_get_utilization(DMA_ID id);
#endif