diff options
author | 2015-09-17 13:17:26 +0200 | |
---|---|---|
committer | 2015-09-17 14:35:47 -0700 | |
commit | d7ea30a57145d13a6e74c90e4f7277cb8705bcc1 (patch) | |
tree | c3e886cd571f61c95f945d9947c82fc2db1c01e0 /drivers/staging/greybus/greybus.h | |
parent | greybus: connection: add protocol-version helper (diff) | |
download | linux-dev-d7ea30a57145d13a6e74c90e4f7277cb8705bcc1.tar.xz linux-dev-d7ea30a57145d13a6e74c90e4f7277cb8705bcc1.zip |
greybus: hd: add optional cport enable and disable callbacks
Add optional cport enable and disable callbacks to the greybus host
drivers, that can be used to initialise and allocate/release resources
associated with a cport during connection setup/teardown (e.g. software
queues and hardware state).
Signed-off-by: Johan Hovold <johan@hovoldconsulting.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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/greybus/greybus.h b/drivers/staging/greybus/greybus.h index 9f2eb1f2e8a9..a320d58a219a 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; + int (*cport_enable)(struct greybus_host_device *hd, u16 cport_id); + int (*cport_disable)(struct greybus_host_device *hd, u16 cport_id); 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, |