Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 0 additions & 42 deletions include/uapi/linux/xlnx-ai-engine.h
Original file line number Diff line number Diff line change
Expand Up @@ -783,47 +783,5 @@ struct aie_rsc_user_stat_array {
*/
#define AIE_UPDATE_SHIMDMA_DMABUF_BD_ADDR_IOCTL _IOW(AIE_IOCTL_BASE, 0x1e, \
struct aie_dmabuf_bd_args)
#if IS_ENABLED(CONFIG_XILINX_AIE)

int aie_partition_write_privileged_mem(struct device *dev, size_t offset, size_t len, void *data);
int aie_partition_read_privileged_mem(struct device *dev, size_t offset, size_t len, void *data);
bool aie_partition_check_noc_aximm(struct device *dev, struct aie_location *loc);
int aie_partition_check_uc_aximm(struct device *dev, struct aie_location *loc);
int aie_partition_uc_zeroize_mem(struct device *dev, struct aie_location *loc, u32 regval);
int aie_load_cert(struct device *dev, unsigned char *elf_addr);

#else /* IS_ENABLED(CONFIG_XILINX_AIE) */

int aie_partition_write_privileged_mem(struct device *dev, size_t offset, size_t len, void *data)
{
return -EINVAL;
}

int aie_partition_read_privileged_mem(struct device *dev, size_t offset, size_t len, void *data)
{
return -EINVAL;
}

bool aie_partition_check_noc_aximm(struct device *dev, struct aie_location *loc)
{
return false;
}

int aie_partition_check_uc_aximm(struct device *dev, struct aie_location *loc)
{
return 0;
}

int aie_partition_uc_zeroize_mem(struct device *dev, struct aie_location *loc, u32 regval)
{
return -EINVAL;
}

int aie_load_cert(struct device *dev, unsigned char *elf_addr)
{
return -EINVAL;
}

#endif /* IS_ENABLED(CONFIG_XILINX_AIE) */

#endif
Loading