blob: 79b3b07f94c4350c623b4045555c92575e51a125 [file] [log] [blame]
Alex Elderc68adb22014-10-01 21:54:14 -05001/*
2 * Greybus connections
3 *
4 * Copyright 2014 Google Inc.
5 *
6 * Released under the GPLv2 only.
7 */
8
9#ifndef __CONNECTION_H
10#define __CONNECTION_H
11
12#include <linux/list.h>
13
14#include "greybus.h"
15#include "function.h"
16
17struct gb_connection {
18 struct gb_function *function;
19 struct greybus_host_device *hd;
20 u16 cport_id; /* Host side */
21
22 struct list_head host_links;
23};
24
25bool gb_connection_setup(struct greybus_host_device *hd, u16 cport_id,
26 struct gb_function *function);
27void gb_connection_teardown(struct gb_connection *connection);
28
29#endif /* __CONNECTION_H */