#include <linux/platform_device.h>
#ifndef __LLCC_QCOM__
#define __LLCC_QCOM__
#define LLCC_CPUSS …
#define LLCC_VIDSC0 …
#define LLCC_VIDSC1 …
#define LLCC_ROTATOR …
#define LLCC_VOICE …
#define LLCC_AUDIO …
#define LLCC_MDMHPGRW …
#define LLCC_MDM …
#define LLCC_MODHW …
#define LLCC_CMPT …
#define LLCC_GPUHTW …
#define LLCC_GPU …
#define LLCC_MMUHWT …
#define LLCC_CMPTDMA …
#define LLCC_DISP …
#define LLCC_VIDFW …
#define LLCC_MDMHPFX …
#define LLCC_MDMPNG …
#define LLCC_AUDHW …
#define LLCC_NPU …
#define LLCC_WLHW …
#define LLCC_PIMEM …
#define LLCC_ECC …
#define LLCC_CVP …
#define LLCC_MODPE …
#define LLCC_APTCM …
#define LLCC_WRCACHE …
#define LLCC_CVPFW …
#define LLCC_CPUSS1 …
#define LLCC_CAMEXP0 …
#define LLCC_CPUMTE …
#define LLCC_CPUHWT …
#define LLCC_MDMCLAD2 …
#define LLCC_CAMEXP1 …
#define LLCC_CMPTHCP …
#define LLCC_LCPDARE …
#define LLCC_AENPU …
#define LLCC_ISLAND1 …
#define LLCC_ISLAND2 …
#define LLCC_ISLAND3 …
#define LLCC_ISLAND4 …
#define LLCC_CAMEXP2 …
#define LLCC_CAMEXP3 …
#define LLCC_CAMEXP4 …
#define LLCC_DISP_WB …
#define LLCC_DISP_1 …
#define LLCC_VIDVSP …
struct llcc_slice_desc { … };
struct llcc_edac_reg_data { … };
struct llcc_edac_reg_offset { … };
struct llcc_drv_data { … };
#if IS_ENABLED(CONFIG_QCOM_LLCC)
struct llcc_slice_desc *llcc_slice_getd(u32 uid);
void llcc_slice_putd(struct llcc_slice_desc *desc);
int llcc_get_slice_id(struct llcc_slice_desc *desc);
size_t llcc_get_slice_size(struct llcc_slice_desc *desc);
int llcc_slice_activate(struct llcc_slice_desc *desc);
int llcc_slice_deactivate(struct llcc_slice_desc *desc);
#else
static inline struct llcc_slice_desc *llcc_slice_getd(u32 uid)
{
return NULL;
}
static inline void llcc_slice_putd(struct llcc_slice_desc *desc)
{
};
static inline int llcc_get_slice_id(struct llcc_slice_desc *desc)
{
return -EINVAL;
}
static inline size_t llcc_get_slice_size(struct llcc_slice_desc *desc)
{
return 0;
}
static inline int llcc_slice_activate(struct llcc_slice_desc *desc)
{
return -EINVAL;
}
static inline int llcc_slice_deactivate(struct llcc_slice_desc *desc)
{
return -EINVAL;
}
#endif
#endif