diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-02-27 14:16:58 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-02-27 14:20:15 -0500 |
commit | 7c50bd89cffaa6899c963305d5aea8418b23f51b (patch) | |
tree | 960c6d8b026517063a2dc62efa2fa95242cab897 /src/pru/pru0.c | |
parent | c3eb97611900c3ebacf943ad232ba318645e84ce (diff) | |
download | kutter-7c50bd89cffaa6899c963305d5aea8418b23f51b.tar.gz kutter-7c50bd89cffaa6899c963305d5aea8418b23f51b.tar.xz kutter-7c50bd89cffaa6899c963305d5aea8418b23f51b.zip |
pru: Wrap code to 80 columns
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/pru/pru0.c')
-rw-r--r-- | src/pru/pru0.c | 41 |
1 files changed, 21 insertions, 20 deletions
diff --git a/src/pru/pru0.c b/src/pru/pru0.c index 4b60af27..266b9b1f 100644 --- a/src/pru/pru0.c +++ b/src/pru/pru0.c @@ -163,7 +163,8 @@ static void process_io(void) { for (;;) { - CT_INTC.SECR0 = (1 << KICK_PRU0_FROM_ARM_EVENT) | (1 << KICK_PRU0_EVENT); + CT_INTC.SECR0 = ((1 << KICK_PRU0_FROM_ARM_EVENT) + | (1 << KICK_PRU0_EVENT)); check_can_send(); int can_sleep = check_can_read(); if (can_sleep) { @@ -275,31 +276,31 @@ struct my_resource_table { /* rpmsg vdev entry */ { - (uint32_t)TYPE_VDEV, //type - (uint32_t)VIRTIO_ID_RPMSG, //id - (uint32_t)0, //notifyid - (uint32_t)RPMSG_PRU_C0_FEATURES, //dfeatures - (uint32_t)0, //gfeatures - (uint32_t)0, //config_len - (uint8_t)0, //status - (uint8_t)2, //num_of_vrings, only two is supported - {(uint8_t)0, (uint8_t)0 }, //reserved + (uint32_t)TYPE_VDEV, //type + (uint32_t)VIRTIO_ID_RPMSG, //id + (uint32_t)0, //notifyid + (uint32_t)RPMSG_PRU_C0_FEATURES,//dfeatures + (uint32_t)0, //gfeatures + (uint32_t)0, //config_len + (uint8_t)0, //status + (uint8_t)2, //num_of_vrings, only two is supported + {(uint8_t)0, (uint8_t)0 }, //reserved /* no config data */ }, /* the two vrings */ { - 0, //da, will be populated by host, can't pass it in - 16, //align (bytes), - PRU_RPMSG_VQ0_SIZE, //num of descriptors - 0, //notifyid, will be populated, can't pass right now - 0 //reserved + 0, //da, will be populated by host, can't pass it in + 16, //align (bytes), + PRU_RPMSG_VQ0_SIZE, //num of descriptors + 0, //notifyid, will be populated, can't pass right now + 0 //reserved }, { - 0, //da, will be populated by host, can't pass it in - 16, //align (bytes), - PRU_RPMSG_VQ1_SIZE, //num of descriptors - 0, //notifyid, will be populated, can't pass right now - 0 //reserved + 0, //da, will be populated by host, can't pass it in + 16, //align (bytes), + PRU_RPMSG_VQ1_SIZE, //num of descriptors + 0, //notifyid, will be populated, can't pass right now + 0 //reserved }, { |