/* * Copyright (c) 2019 STMicroelectronics. * All rights reserved. * * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * */ /* This file populates resource table for BM remote * for use by the Linux Master */ #ifndef RSC_TABLE_H_ #define RSC_TABLE_H_ #include "openamp/open_amp.h" #include "openamp_conf.h" /* Place resource table in special ELF section */ //#define __section_t(S) __attribute__((__section__(#S))) //#define __resource __section_t(.resource_table) /* Resource table for the given remote */ struct shared_resource_table { unsigned int version; unsigned int num; unsigned int reserved[2]; unsigned int offset[NUM_RESOURCE_ENTRIES]; /* text carveout entry */ /* rpmsg vdev entry */ struct fw_rsc_vdev vdev; struct fw_rsc_vdev_vring vring0; struct fw_rsc_vdev_vring vring1; struct fw_rsc_trace cm_trace; }; void resource_table_init(int RPMsgRole, void **table_ptr, int *length); #endif /* RSC_TABLE_H_ */