hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/include/linux/soc/qcom/apr.h
....@@ -79,6 +79,15 @@
7979 #define APR_SVC_MAJOR_VERSION(v) ((v >> 16) & 0xFF)
8080 #define APR_SVC_MINOR_VERSION(v) (v & 0xFF)
8181
82
+struct packet_router;
83
+struct pkt_router_svc {
84
+ struct device *dev;
85
+ struct packet_router *pr;
86
+ spinlock_t lock;
87
+ int id;
88
+ void *priv;
89
+};
90
+
8291 struct apr_device {
8392 struct device dev;
8493 uint16_t svc_id;
....@@ -86,11 +95,12 @@
8695 uint32_t version;
8796 char name[APR_NAME_SIZE];
8897 const char *service_path;
89
- spinlock_t lock;
98
+ struct pkt_router_svc svc;
9099 struct list_head node;
91100 };
92101
93102 #define to_apr_device(d) container_of(d, struct apr_device, dev)
103
+#define svc_to_apr_device(d) container_of(d, struct apr_device, svc)
94104
95105 struct apr_driver {
96106 int (*probe)(struct apr_device *sl);