aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew F. Davis2016-05-08 11:57:51 -0500
committerJason Reeder2016-05-09 13:41:16 -0500
commit740cb210a6ce1bd85a4a67e5c4ae9796d6cf05a9 (patch)
tree132fda710e2f2e1e374eb530284dab6a391d119f /examples/am335x/PRU_RPMsg_Echo_Interrupt0
parent2b1353d932c790e3f6baff261ca72aa4480cc4ef (diff)
downloadpru-software-support-package-740cb210a6ce1bd85a4a67e5c4ae9796d6cf05a9.tar.gz
pru-software-support-package-740cb210a6ce1bd85a4a67e5c4ae9796d6cf05a9.tar.xz
pru-software-support-package-740cb210a6ce1bd85a4a67e5c4ae9796d6cf05a9.zip
Reformat code and remove whitespace errors
Changes here include: - Remove trailing whitespace from files - Move function open brace to next line - Normalize line endings - Fix mixed spaces and tabs - Normalize statement spaceing - Remove space at the begining of lines - Various other code formatting fixes Signed-off-by: Andrew F. Davis <afd@ti.com>
Diffstat (limited to 'examples/am335x/PRU_RPMsg_Echo_Interrupt0')
-rw-r--r--examples/am335x/PRU_RPMsg_Echo_Interrupt0/AM335x_PRU.cmd2
-rw-r--r--examples/am335x/PRU_RPMsg_Echo_Interrupt0/main.c67
-rw-r--r--examples/am335x/PRU_RPMsg_Echo_Interrupt0/resource_table_0.h296
3 files changed, 183 insertions, 182 deletions
diff --git a/examples/am335x/PRU_RPMsg_Echo_Interrupt0/AM335x_PRU.cmd b/examples/am335x/PRU_RPMsg_Echo_Interrupt0/AM335x_PRU.cmd
index 55fbb06..b62f044 100644
--- a/examples/am335x/PRU_RPMsg_Echo_Interrupt0/AM335x_PRU.cmd
+++ b/examples/am335x/PRU_RPMsg_Echo_Interrupt0/AM335x_PRU.cmd
@@ -21,7 +21,7 @@ MEMORY
21 21
22 PRU_DMEM_0_1 : org = 0x00000000 len = 0x00002000 CREGISTER=24 /* 8kB PRU Data RAM 0_1 */ 22 PRU_DMEM_0_1 : org = 0x00000000 len = 0x00002000 CREGISTER=24 /* 8kB PRU Data RAM 0_1 */
23 PRU_DMEM_1_0 : org = 0x00002000 len = 0x00002000 CREGISTER=25 /* 8kB PRU Data RAM 1_0 */ 23 PRU_DMEM_1_0 : org = 0x00002000 len = 0x00002000 CREGISTER=25 /* 8kB PRU Data RAM 1_0 */
24 24
25 PAGE 2: 25 PAGE 2:
26 PRU_SHAREDMEM : org = 0x00010000 len = 0x00003000 CREGISTER=28 /* 12kB Shared RAM */ 26 PRU_SHAREDMEM : org = 0x00010000 len = 0x00003000 CREGISTER=28 /* 12kB Shared RAM */
27 27
diff --git a/examples/am335x/PRU_RPMsg_Echo_Interrupt0/main.c b/examples/am335x/PRU_RPMsg_Echo_Interrupt0/main.c
index c95dc27..a0a023f 100644
--- a/examples/am335x/PRU_RPMsg_Echo_Interrupt0/main.c
+++ b/examples/am335x/PRU_RPMsg_Echo_Interrupt0/main.c
@@ -1,33 +1,33 @@
1/* 1/*
2 * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com/ 2 * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com/
3 * 3 *
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
11 * 11 *
12 * * Redistributions in binary form must reproduce the above copyright 12 * * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the 13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the 14 * documentation and/or other materials provided with the
15 * distribution. 15 * distribution.
16 * 16 *
17 * * Neither the name of Texas Instruments Incorporated nor the names of 17 * * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived 18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission. 19 * from this software without specific prior written permission.
20 * 20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 */ 32 */
33 33
@@ -66,7 +66,7 @@ volatile register uint32_t __R31;
66#define CHAN_DESC "Channel 30" 66#define CHAN_DESC "Channel 30"
67#define CHAN_PORT 30 67#define CHAN_PORT 30
68 68
69/* 69/*
70 * Used to make sure the Linux drivers are ready for RPMsg communication 70 * Used to make sure the Linux drivers are ready for RPMsg communication
71 * Found at linux-x.y.z/include/uapi/linux/virtio_config.h 71 * Found at linux-x.y.z/include/uapi/linux/virtio_config.h
72 */ 72 */
@@ -77,7 +77,8 @@ uint8_t payload[RPMSG_BUF_SIZE];
77/* 77/*
78 * main.c 78 * main.c
79 */ 79 */
80void main() { 80void main(void)
81{
81 struct pru_rpmsg_transport transport; 82 struct pru_rpmsg_transport transport;
82 uint16_t src, dst, len; 83 uint16_t src, dst, len;
83 volatile uint8_t *status; 84 volatile uint8_t *status;
@@ -100,20 +101,20 @@ void main() {
100 pru_virtqueue_init(&transport.virtqueue1, &resourceTable.rpmsg_vring1, &CT_MBX.MESSAGE[MB_TO_ARM_HOST], &CT_MBX.MESSAGE[MB_FROM_ARM_HOST]); 101 pru_virtqueue_init(&transport.virtqueue1, &resourceTable.rpmsg_vring1, &CT_MBX.MESSAGE[MB_TO_ARM_HOST], &CT_MBX.MESSAGE[MB_FROM_ARM_HOST]);
101 102
102 /* Create the RPMsg channel between the PRU and ARM user space using the transport structure. */ 103 /* Create the RPMsg channel between the PRU and ARM user space using the transport structure. */
103 while(pru_rpmsg_channel(RPMSG_NS_CREATE, &transport, CHAN_NAME, CHAN_DESC, CHAN_PORT) != PRU_RPMSG_SUCCESS); 104 while (pru_rpmsg_channel(RPMSG_NS_CREATE, &transport, CHAN_NAME, CHAN_DESC, CHAN_PORT) != PRU_RPMSG_SUCCESS);
104 while(1){ 105 while (1) {
105 /* Check bit 30 of register R31 to see if the mailbox interrupt has occurred */ 106 /* Check bit 30 of register R31 to see if the mailbox interrupt has occurred */
106 if(__R31 & HOST_INT){ 107 if (__R31 & HOST_INT) {
107 /* Clear the mailbox interrupt */ 108 /* Clear the mailbox interrupt */
108 CT_MBX.IRQ[MB_USER].STATUS_CLR |= 1 << (MB_FROM_ARM_HOST * 2); 109 CT_MBX.IRQ[MB_USER].STATUS_CLR |= 1 << (MB_FROM_ARM_HOST * 2);
109 /* Clear the event status, event MB_INT_NUMBER corresponds to the mailbox interrupt */ 110 /* Clear the event status, event MB_INT_NUMBER corresponds to the mailbox interrupt */
110 CT_INTC.SICR_bit.STS_CLR_IDX = MB_INT_NUMBER; 111 CT_INTC.SICR_bit.STS_CLR_IDX = MB_INT_NUMBER;
111 /* Use a while loop to read all of the current messages in the mailbox */ 112 /* Use a while loop to read all of the current messages in the mailbox */
112 while(CT_MBX.MSGSTATUS_bit[MB_FROM_ARM_HOST].NBOFMSG > 0){ 113 while (CT_MBX.MSGSTATUS_bit[MB_FROM_ARM_HOST].NBOFMSG > 0) {
113 /* Check to see if the message corresponds to a receive event for the PRU */ 114 /* Check to see if the message corresponds to a receive event for the PRU */
114 if(CT_MBX.MESSAGE[MB_FROM_ARM_HOST] == 1){ 115 if (CT_MBX.MESSAGE[MB_FROM_ARM_HOST] == 1) {
115 /* Receive the message */ 116 /* Receive the message */
116 if(pru_rpmsg_receive(&transport, &src, &dst, payload, &len) == PRU_RPMSG_SUCCESS){ 117 if (pru_rpmsg_receive(&transport, &src, &dst, payload, &len) == PRU_RPMSG_SUCCESS) {
117 /* Echo the message back to the same address from which we just received */ 118 /* Echo the message back to the same address from which we just received */
118 pru_rpmsg_send(&transport, dst, src, payload, len); 119 pru_rpmsg_send(&transport, dst, src, payload, len);
119 } 120 }
diff --git a/examples/am335x/PRU_RPMsg_Echo_Interrupt0/resource_table_0.h b/examples/am335x/PRU_RPMsg_Echo_Interrupt0/resource_table_0.h
index 177b7c1..6c6eab1 100644
--- a/examples/am335x/PRU_RPMsg_Echo_Interrupt0/resource_table_0.h
+++ b/examples/am335x/PRU_RPMsg_Echo_Interrupt0/resource_table_0.h
@@ -1,148 +1,148 @@
1/* 1/*
2 * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com/ 2 * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com/
3 * 3 *
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
11 * 11 *
12 * * Redistributions in binary form must reproduce the above copyright 12 * * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the 13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the 14 * documentation and/or other materials provided with the
15 * distribution. 15 * distribution.
16 * 16 *
17 * * Neither the name of Texas Instruments Incorporated nor the names of 17 * * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived 18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission. 19 * from this software without specific prior written permission.
20 * 20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 */ 32 */
33 33
34/* 34/*
35 * ======== rsc_table_am335x_pru.h ======== 35 * ======== rsc_table_am335x_pru.h ========
36 * 36 *
37 * Define the resource table entries for all PRU cores. This will be 37 * Define the resource table entries for all PRU cores. This will be
38 * incorporated into corresponding base images, and used by the remoteproc 38 * incorporated into corresponding base images, and used by the remoteproc
39 * on the host-side to allocated/reserve resources. 39 * on the host-side to allocated/reserve resources.
40 * 40 *
41 */ 41 */
42 42
43 43
44#ifndef _RSC_TABLE_PRU_H_ 44#ifndef _RSC_TABLE_PRU_H_
45#define _RSC_TABLE_PRU_H_ 45#define _RSC_TABLE_PRU_H_
46 46
47#include <stddef.h> 47#include <stddef.h>
48#include <rsc_types.h> 48#include <rsc_types.h>
49#include "pru_virtio_ids.h" 49#include "pru_virtio_ids.h"
50 50
51/* 51/*
52 * Sizes of the virtqueues (expressed in number of buffers supported, 52 * Sizes of the virtqueues (expressed in number of buffers supported,
53 * and must be power of 2) 53 * and must be power of 2)
54 */ 54 */
55#define PRU_RPMSG_VQ0_SIZE 16 55#define PRU_RPMSG_VQ0_SIZE 16
56#define PRU_RPMSG_VQ1_SIZE 16 56#define PRU_RPMSG_VQ1_SIZE 16
57 57
58/* 58/*
59 * The feature bitmap for virtio rpmsg 59 * The feature bitmap for virtio rpmsg
60 */ 60 */
61#define VIRTIO_RPMSG_F_NS 0 //name service notifications 61#define VIRTIO_RPMSG_F_NS 0 //name service notifications
62 62
63/* This firmware supports name service notifications as one of its features */ 63/* This firmware supports name service notifications as one of its features */
64#define RPMSG_PRU_C0_FEATURES (1 << VIRTIO_RPMSG_F_NS) 64#define RPMSG_PRU_C0_FEATURES (1 << VIRTIO_RPMSG_F_NS)
65 65
66/* Definition for unused interrupts */ 66/* Definition for unused interrupts */
67#define HOST_UNUSED 255 67#define HOST_UNUSED 255
68 68
69/* Mapping sysevts to a channel. Each pair contains a sysevt, channel 69/* Mapping sysevts to a channel. Each pair contains a sysevt, channel
70 * Mapping event 60 (Mbox0 mailbox interrupt for pru0) to channel 0 70 * Mapping event 60 (Mbox0 mailbox interrupt for pru0) to channel 0
71 * */ 71 * */
72struct ch_map pru_intc_map[] = { {60, 0}, 72struct ch_map pru_intc_map[] = { {60, 0},
73 }; 73};
74 74
75struct my_resource_table { 75struct my_resource_table {
76 struct resource_table base; 76 struct resource_table base;
77 77
78 uint32_t offset[2]; /* Should match 'num' in actual definition */ 78 uint32_t offset[2]; /* Should match 'num' in actual definition */
79 79
80 /* rpmsg vdev entry */ 80 /* rpmsg vdev entry */
81 struct fw_rsc_vdev rpmsg_vdev; 81 struct fw_rsc_vdev rpmsg_vdev;
82 struct fw_rsc_vdev_vring rpmsg_vring0; 82 struct fw_rsc_vdev_vring rpmsg_vring0;
83 struct fw_rsc_vdev_vring rpmsg_vring1; 83 struct fw_rsc_vdev_vring rpmsg_vring1;
84 84
85 /* intc definition */ 85 /* intc definition */
86 struct fw_rsc_custom pru_ints; 86 struct fw_rsc_custom pru_ints;
87}; 87};
88 88
89#pragma DATA_SECTION(resourceTable, ".resource_table") 89#pragma DATA_SECTION(resourceTable, ".resource_table")
90#pragma RETAIN(resourceTable) 90#pragma RETAIN(resourceTable)
91struct my_resource_table resourceTable = { 91struct my_resource_table resourceTable = {
92 1, /* Resource table version: only version 1 is supported by the current driver */ 92 1, /* Resource table version: only version 1 is supported by the current driver */
93 2, /* number of entries in the table */ 93 2, /* number of entries in the table */
94 0, 0, /* reserved, must be zero */ 94 0, 0, /* reserved, must be zero */
95 /* offsets to entries */ 95 /* offsets to entries */
96 { 96 {
97 offsetof(struct my_resource_table, rpmsg_vdev), 97 offsetof(struct my_resource_table, rpmsg_vdev),
98 offsetof(struct my_resource_table, pru_ints), 98 offsetof(struct my_resource_table, pru_ints),
99 }, 99 },
100 100
101 /* rpmsg vdev entry */ 101 /* rpmsg vdev entry */
102 { 102 {
103 (uint32_t)TYPE_VDEV, //type 103 (uint32_t)TYPE_VDEV, //type
104 (uint32_t)VIRTIO_ID_RPMSG, //id 104 (uint32_t)VIRTIO_ID_RPMSG, //id
105 (uint32_t)0, //notifyid 105 (uint32_t)0, //notifyid
106 (uint32_t)RPMSG_PRU_C0_FEATURES, //dfeatures 106 (uint32_t)RPMSG_PRU_C0_FEATURES, //dfeatures
107 (uint32_t)0, //gfeatures 107 (uint32_t)0, //gfeatures
108 (uint32_t)0, //config_len 108 (uint32_t)0, //config_len
109 (uint8_t)0, //status 109 (uint8_t)0, //status
110 (uint8_t)2, //num_of_vrings, only two is supported 110 (uint8_t)2, //num_of_vrings, only two is supported
111 { (uint8_t)0, (uint8_t)0 }, //reserved 111 { (uint8_t)0, (uint8_t)0 }, //reserved
112 /* no config data */ 112 /* no config data */
113 }, 113 },
114 /* the two vrings */ 114 /* the two vrings */
115 { 115 {
116 0, //da, will be populated by host, can't pass it in 116 0, //da, will be populated by host, can't pass it in
117 16, //align (bytes), 117 16, //align (bytes),
118 PRU_RPMSG_VQ0_SIZE, //num of descriptors 118 PRU_RPMSG_VQ0_SIZE, //num of descriptors
119 0, //notifyid, will be populated, can't pass right now 119 0, //notifyid, will be populated, can't pass right now
120 0 //reserved 120 0 //reserved
121 }, 121 },
122 { 122 {
123 0, //da, will be populated by host, can't pass it in 123 0, //da, will be populated by host, can't pass it in
124 16, //align (bytes), 124 16, //align (bytes),
125 PRU_RPMSG_VQ1_SIZE, //num of descriptors 125 PRU_RPMSG_VQ1_SIZE, //num of descriptors
126 0, //notifyid, will be populated, can't pass right now 126 0, //notifyid, will be populated, can't pass right now
127 0 //reserved 127 0 //reserved
128 }, 128 },
129 129
130 { 130 {
131 TYPE_CUSTOM, TYPE_PRU_INTS, 131 TYPE_CUSTOM, TYPE_PRU_INTS,
132 sizeof(struct fw_rsc_custom_ints), 132 sizeof(struct fw_rsc_custom_ints),
133 { /* PRU_INTS version */ 133 { /* PRU_INTS version */
134 0x0000, 134 0x0000,
135 /* Channel-to-host mapping, 255 for unused 135 /* Channel-to-host mapping, 255 for unused
136 * Mapping Channel-0 to Host-0 (PRU0/1 R31 bit 30) 136 * Mapping Channel-0 to Host-0 (PRU0/1 R31 bit 30)
137 * */ 137 * */
138 0, HOST_UNUSED, HOST_UNUSED, HOST_UNUSED, HOST_UNUSED, 138 0, HOST_UNUSED, HOST_UNUSED, HOST_UNUSED, HOST_UNUSED,
139 HOST_UNUSED, HOST_UNUSED, HOST_UNUSED, HOST_UNUSED, HOST_UNUSED, 139 HOST_UNUSED, HOST_UNUSED, HOST_UNUSED, HOST_UNUSED, HOST_UNUSED,
140 /* Number of evts being mapped to channels */ 140 /* Number of evts being mapped to channels */
141 (sizeof(pru_intc_map) / sizeof(struct ch_map)), 141 (sizeof(pru_intc_map) / sizeof(struct ch_map)),
142 /* Pointer to the structure containing mapped events */ 142 /* Pointer to the structure containing mapped events */
143 pru_intc_map, 143 pru_intc_map,
144 }, 144 },
145 }, 145 },
146}; 146};
147 147
148#endif /* _RSC_TABLE_PRU_H_ */ 148#endif /* _RSC_TABLE_PRU_H_ */