9c28005fa2747df38c7bd455c9a80f7545f22a8d
1 /*\r
2 * Copyright (c) 2014, Mentor Graphics Corporation\r
3 * All rights reserved.\r
4 *\r
5 * Redistribution and use in source and binary forms, with or without\r
6 * modification, are permitted provided that the following conditions are met:\r
7 *\r
8 * 1. Redistributions of source code must retain the above copyright notice,\r
9 * this list of conditions and the following disclaimer.\r
10 * 2. Redistributions in binary form must reproduce the above copyright notice,\r
11 * this list of conditions and the following disclaimer in the documentation\r
12 * and/or other materials provided with the distribution.\r
13 * 3. Neither the name of Mentor Graphics Corporation nor the names of its\r
14 * contributors may be used to endorse or promote products derived from this\r
15 * software without specific prior written permission.\r
16 *\r
17 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"\r
18 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
19 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
20 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE\r
21 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\r
22 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\r
23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\r
24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\r
25 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\r
26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\r
27 * POSSIBILITY OF SUCH DAMAGE.\r
28 */\r
29 \r
30 /* This file populates resource table for Nucleus and BM remotes\r
31 * for use by the Linux Master */\r
32 \r
33 #include <stddef.h>\r
34 #include "open_amp.h"\r
35 \r
36 #define NO_RESOURCE_ENTRIES 8\r
37 \r
38 /* Resource table for the given remote */\r
39 struct remote_resource_table {\r
40 unsigned int version;\r
41 unsigned int num;\r
42 unsigned int reserved[2];\r
43 unsigned int offset[NO_RESOURCE_ENTRIES];\r
44 /* text carveout entry */\r
45 struct fw_rsc_carveout elf_cout;\r
46 /* rpmsg vdev entry */\r
47 struct fw_rsc_vdev rpmsg_vdev;\r
48 struct fw_rsc_vdev_vring rpmsg_vring0;\r
49 struct fw_rsc_vdev_vring rpmsg_vring1;\r
50 };\r
51 \r