blob: 649093e4025d9a9cb591816b849f6946a97eedbe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
/*
* Greybus endo code
*
* Copyright 2015 Google Inc.
*
* Released under the GPLv2 only.
*/
#ifndef __ENDO_H
#define __ENDO_H
/* Greybus "public" definitions" */
struct gb_svc {
u8 serial_number[10];
u8 version[10];
};
struct gb_endo {
struct device dev;
struct gb_svc svc;
u16 type;
};
#define to_gb_endo(d) container_of(d, struct gb_endo, dev)
/* Greybus "private" definitions */
struct greybus_host_device;
struct gb_endo *gb_endo_create(struct greybus_host_device *hd);
void gb_endo_remove(struct gb_endo *endo);
#endif /* __ENDO_H */
|