From 748e4f3d702def1a4bff191e0cf93b6a05340f01 Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Fri, 10 May 2024 07:41:34 +0000 Subject: [PATCH] add gpio led uart --- kernel/include/linux/soc/qcom/apr.h | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/kernel/include/linux/soc/qcom/apr.h b/kernel/include/linux/soc/qcom/apr.h index c5d52e2..6374763 100644 --- a/kernel/include/linux/soc/qcom/apr.h +++ b/kernel/include/linux/soc/qcom/apr.h @@ -79,17 +79,28 @@ #define APR_SVC_MAJOR_VERSION(v) ((v >> 16) & 0xFF) #define APR_SVC_MINOR_VERSION(v) (v & 0xFF) +struct packet_router; +struct pkt_router_svc { + struct device *dev; + struct packet_router *pr; + spinlock_t lock; + int id; + void *priv; +}; + struct apr_device { struct device dev; uint16_t svc_id; uint16_t domain_id; uint32_t version; char name[APR_NAME_SIZE]; - spinlock_t lock; + const char *service_path; + struct pkt_router_svc svc; struct list_head node; }; #define to_apr_device(d) container_of(d, struct apr_device, dev) +#define svc_to_apr_device(d) container_of(d, struct apr_device, svc) struct apr_driver { int (*probe)(struct apr_device *sl); -- Gitblit v1.6.2