Files
kernel_common_drivers/include/linux/amlogic/dmc_dev_access.h
T
xing.xu 8b94b653b7 bandwidth: CF1 Single-frame Bandwidth Sampling [1/1]
PD#SWPL-179304

Problem:
Single-frame Bandwidth Sampling

Solution:
Chips before s6 use the DMC method to get the bandwidth
value of a single frame, chips after s6 use the decoder
internal method to get the bandwidth value of a single frame.

Verify:
s6.s7

Change-Id: I135d98a0087733c5df34c7e8f9be39f8f2c96741
Signed-off-by: xing.xu <xing.xu@amlogic.com>
2024-11-04 23:36:13 -07:00

36 lines
836 B
C

/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
/*
* Copyright (c) 2019 Amlogic, Inc. All rights reserved.
*/
#ifndef __DMC_DEV_ACCESS_H__
#define __DMC_DEV_ACCESS_H__
#define MAX_NAME 15
struct dmc_dev_access_data {
unsigned long addr;
unsigned long size;
};
struct dmc_notifier_list {
char port_name[MAX_NAME];
char port_id;
struct list_head list;
};
void dmc_dev_access(unsigned char id, unsigned long addr, unsigned long size);
int show_dmc_notifier_list(char *buf);
int register_dmc_dev_access_notifier(char *dev_name, struct notifier_block *nb);
int unregister_dmc_dev_access_notifier(char *dev_name, struct notifier_block *nb);
#if IS_ENABLED(CONFIG_AMLOGIC_DDR_BANDWIDTH)
void aml_get_all_channel_grant(u64 *channel_grant);
#else
static inline void aml_get_all_channel_grant(u64 *channel_grant)
{
}
#endif
#endif