aboutsummaryrefslogtreecommitdiff
path: root/kernel/ethosu_device.h
diff options
context:
space:
mode:
authorKristofer Jonsson <kristofer.jonsson@arm.com>2023-01-04 17:09:47 +0100
committerKristofer Jonsson <kristofer.jonsson@arm.com>2023-02-02 16:23:59 +0100
commitd779a08a0f7ca3cdde16941720ddc7af96e74520 (patch)
tree2b05dc35a14f6787568cf92b1ff539afedffecc9 /kernel/ethosu_device.h
parentb42bc0b95dcc5fac60d52e956056fd46bfe2beb9 (diff)
downloadethos-u-linux-driver-stack-d779a08a0f7ca3cdde16941720ddc7af96e74520.tar.gz
Converting Ethos-U driver to rpmsg
The Ethos-U kernel driver has been converted from a platform driver with a custom firmware interface into a rpmsg driver. Change-Id: I9ae449f5e79eb02924e6630611d0893e5fec86be
Diffstat (limited to 'kernel/ethosu_device.h')
-rw-r--r--kernel/ethosu_device.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/kernel/ethosu_device.h b/kernel/ethosu_device.h
index 8e81f91..cc4271d 100644
--- a/kernel/ethosu_device.h
+++ b/kernel/ethosu_device.h
@@ -32,6 +32,7 @@
#include <linux/cdev.h>
#include <linux/io.h>
#include <linux/mutex.h>
+#include <linux/rpmsg.h>
/****************************************************************************
* Types
@@ -42,6 +43,8 @@
*/
struct ethosu_device {
struct device *dev;
+ struct rpmsg_device *rpdev;
+ struct rpmsg_endpoint *ept;
struct cdev cdev;
struct class *class;
dev_t devt;
@@ -59,11 +62,9 @@ struct ethosu_device {
* Return: 0 on success, else error code.
*/
int ethosu_dev_init(struct ethosu_device *edev,
- struct device *dev,
+ struct rpmsg_device *rpdev,
struct class *class,
- dev_t devt,
- struct resource *in_queue,
- struct resource *out_queue);
+ dev_t devt);
/**
* ethosu_dev_deinit() - Initialize the device