hc
2023-12-11 1f93a7dfd1f8d5ff7a5c53246c7534fe2332d6f4
kernel/drivers/rpmsg/rpmsg_internal.h
....@@ -2,6 +2,7 @@
22 /*
33 * remote processor messaging bus internals
44 *
5
+ * Copyright (c) 2020 The Linux Foundation.
56 * Copyright (C) 2011 Texas Instruments, Inc.
67 * Copyright (C) 2011 Google, Inc.
78 *
....@@ -20,7 +21,7 @@
2021
2122 /**
2223 * struct rpmsg_device_ops - indirection table for the rpmsg_device operations
23
- * @create_ept: create backend-specific endpoint, requried
24
+ * @create_ept: create backend-specific endpoint, required
2425 * @announce_create: announce presence of new channel, optional
2526 * @announce_destroy: announce destruction of channel, optional
2627 *
....@@ -39,13 +40,16 @@
3940
4041 /**
4142 * struct rpmsg_endpoint_ops - indirection table for rpmsg_endpoint operations
42
- * @destroy_ept: destroy the given endpoint, required
43
+ * @destroy_ept: see @rpmsg_destroy_ept(), required
4344 * @send: see @rpmsg_send(), required
4445 * @sendto: see @rpmsg_sendto(), optional
4546 * @send_offchannel: see @rpmsg_send_offchannel(), optional
4647 * @trysend: see @rpmsg_trysend(), required
4748 * @trysendto: see @rpmsg_trysendto(), optional
4849 * @trysend_offchannel: see @rpmsg_trysend_offchannel(), optional
50
+ * @poll: see @rpmsg_poll(), optional
51
+ * @get_signals: see @rpmsg_get_signals(), optional
52
+ * @set_signals: see @rpmsg_set_signals(), optional
4953 *
5054 * Indirection table for the operations that a rpmsg backend should implement.
5155 * In addition to @destroy_ept, the backend must at least implement @send and
....@@ -65,6 +69,8 @@
6569 void *data, int len);
6670 __poll_t (*poll)(struct rpmsg_endpoint *ept, struct file *filp,
6771 poll_table *wait);
72
+ int (*get_signals)(struct rpmsg_endpoint *ept);
73
+ int (*set_signals)(struct rpmsg_endpoint *ept, u32 set, u32 clear);
6874 };
6975
7076 int rpmsg_register_device(struct rpmsg_device *rpdev);