| .. | .. |
|---|
| 2 | 2 | /* |
|---|
| 3 | 3 | * remote processor messaging bus internals |
|---|
| 4 | 4 | * |
|---|
| 5 | + * Copyright (c) 2020 The Linux Foundation. |
|---|
| 5 | 6 | * Copyright (C) 2011 Texas Instruments, Inc. |
|---|
| 6 | 7 | * Copyright (C) 2011 Google, Inc. |
|---|
| 7 | 8 | * |
|---|
| .. | .. |
|---|
| 20 | 21 | |
|---|
| 21 | 22 | /** |
|---|
| 22 | 23 | * 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 |
|---|
| 24 | 25 | * @announce_create: announce presence of new channel, optional |
|---|
| 25 | 26 | * @announce_destroy: announce destruction of channel, optional |
|---|
| 26 | 27 | * |
|---|
| .. | .. |
|---|
| 39 | 40 | |
|---|
| 40 | 41 | /** |
|---|
| 41 | 42 | * 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 |
|---|
| 43 | 44 | * @send: see @rpmsg_send(), required |
|---|
| 44 | 45 | * @sendto: see @rpmsg_sendto(), optional |
|---|
| 45 | 46 | * @send_offchannel: see @rpmsg_send_offchannel(), optional |
|---|
| 46 | 47 | * @trysend: see @rpmsg_trysend(), required |
|---|
| 47 | 48 | * @trysendto: see @rpmsg_trysendto(), optional |
|---|
| 48 | 49 | * @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 |
|---|
| 53 | + * @get_mtu: see @rpmsg_get_mtu(), optional |
|---|
| 49 | 54 | * |
|---|
| 50 | 55 | * Indirection table for the operations that a rpmsg backend should implement. |
|---|
| 51 | 56 | * In addition to @destroy_ept, the backend must at least implement @send and |
|---|
| .. | .. |
|---|
| 65 | 70 | void *data, int len); |
|---|
| 66 | 71 | __poll_t (*poll)(struct rpmsg_endpoint *ept, struct file *filp, |
|---|
| 67 | 72 | poll_table *wait); |
|---|
| 73 | + int (*get_signals)(struct rpmsg_endpoint *ept); |
|---|
| 74 | + int (*set_signals)(struct rpmsg_endpoint *ept, u32 set, u32 clear); |
|---|
| 75 | +#ifdef CONFIG_NO_GKI |
|---|
| 76 | + ssize_t (*get_mtu)(struct rpmsg_endpoint *ept); |
|---|
| 77 | +#endif |
|---|
| 68 | 78 | }; |
|---|
| 69 | 79 | |
|---|
| 70 | 80 | int rpmsg_register_device(struct rpmsg_device *rpdev); |
|---|