drivers/rptun: replace 'rxbuf_size' and 'txbuf_size' to 'buf_size' in struct 'rptun_rsc_s'.

Change-Id: I7c9da4bd985712a3fde4c56999901434740b33f7
Signed-off-by: zhongan <zhongan@xiaomi.com>
This commit is contained in:
zhongan
2020-04-26 19:11:25 +08:00
committed by patacongo
parent bd7217e21e
commit 546e35fc98
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -441,8 +441,8 @@ static int rptun_dev_start(FAR struct remoteproc *rproc)
rsc->rpmsg_vring1.da = da1;
shbuf = (FAR char *)rsc + tbsz + v0sz + v1sz;
shbufsz = rsc->buf_size *
(rsc->rpmsg_vring0.num + rsc->rpmsg_vring1.num);
shbufsz = rsc->config.txbuf_size * rsc->rpmsg_vring0.num +
rsc->config.rxbuf_size * rsc->rpmsg_vring1.num;
rpmsg_virtio_init_shm_pool(&priv->shm_pool, shbuf, shbufsz);
+1 -1
View File
@@ -260,7 +260,7 @@ struct __attribute__((aligned(B2C(8)))) rptun_rsc_s
struct fw_rsc_vdev rpmsg_vdev;
struct fw_rsc_vdev_vring rpmsg_vring0;
struct fw_rsc_vdev_vring rpmsg_vring1;
unsigned int buf_size;
struct fw_rsc_config config;
};
struct rptun_dev_s;