TX vring block #449
Unanswered
Minerro886
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Now I use opneamp for communication (zynqmp platform). But when I send data to rpu on the Linux side, I can only send the same amount as VRING_SIZE. After this number is exceeded, no more data can be sent. what should i do
`/*
*/
/* This file populates resource table for BM remote
#include <openamp/open_amp.h>
#include "rsc_table.h"
/* Place resource table in special ELF section */
#define __section_t(S) attribute((section(#S)))
#define __resource __section_t(.resource_table)
#define RPMSG_IPU_C0_FEATURES 1
/* VirtIO rpmsg device id */
#define VIRTIO_ID_RPMSG_ 7
/* Remote supports Name Service announcement */
#define VIRTIO_RPMSG_F_NS 0
#define NUM_VRINGS 0x02
#define VRING_ALIGN 0x1000
#define RING_TX FW_RSC_U32_ADDR_ANY
#define RING_RX FW_RSC_U32_ADDR_ANY
#define VRING_SIZE 50 //begin: 256
#define NUM_TABLE_ENTRIES 1
struct remote_resource_table __resource resources = {
/* Version */
1,
};
void *get_resource_table (int rsc_id, int *len)
{
(void) rsc_id;
*len = sizeof(resources);
return &resources;
}
`
Beta Was this translation helpful? Give feedback.
All reactions