summaryrefslogtreecommitdiff
path: root/drivers/staging/greybus/greybus.h
diff options
context:
space:
mode:
authorAlexandre Bailon <abailon@baylibre.com>2015-09-04 16:55:40 +0200
committerGreg Kroah-Hartman <gregkh@google.com>2015-09-04 14:49:09 -0700
commit8afd831ea00822fdc811ff640ef62352619d64c0 (patch)
tree30436645f24303a6d7806b13214f508ab76022c6 /drivers/staging/greybus/greybus.h
parent2111134fe413311ea2e89c7ffc66abb68ada5982 (diff)
greybus: Greybus driver: add a new callbacks to driver
Add connection_create and connection_destroy callbacks. ES2 can map a cport to a pair of endpoints. Because ES2 have only a few pair of endpoints, ES2 need to have access to some high level connection information such as protocol id to effectively map the cports. These callback will provide these information and help ES2 to map cports. Signed-off-by: Alexandre Bailon <abailon@baylibre.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/greybus.h')
-rw-r--r--drivers/staging/greybus/greybus.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/greybus/greybus.h b/drivers/staging/greybus/greybus.h
index 8e215f870c1d..9f2eb1f2e8a9 100644
--- a/drivers/staging/greybus/greybus.h
+++ b/drivers/staging/greybus/greybus.h
@@ -75,6 +75,8 @@ struct greybus_host_device;
struct greybus_host_driver {
size_t hd_priv_size;
+ void (*connection_create)(struct gb_connection *connection);
+ void (*connection_destroy)(struct gb_connection *connection);
int (*message_send)(struct greybus_host_device *hd, u16 dest_cport_id,
struct gb_message *message, gfp_t gfp_mask);
void (*message_cancel)(struct gb_message *message);