]>
Commit | Line | Data |
---|---|---|
83d290c5 | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
39f7611f SG |
2 | /* |
3 | * Copyright (c) 2013 Google, Inc | |
39f7611f SG |
4 | */ |
5 | ||
6 | #ifndef __DM_DEMO_H | |
7 | #define __DM_DEMO_H | |
8 | ||
9 | #include <dm.h> | |
10 | ||
11 | /** | |
12 | * struct dm_demo_pdata - configuration data for demo instance | |
13 | * | |
14 | * @colour: Color of the demo | |
15 | * @sides: Numbers of sides | |
16 | * @default_char: Default ASCII character to output (65 = 'A') | |
17 | */ | |
18 | struct dm_demo_pdata { | |
19 | const char *colour; | |
20 | int sides; | |
21 | int default_char; | |
22 | }; | |
23 | ||
24 | struct demo_ops { | |
54c5d08a HS |
25 | int (*hello)(struct udevice *dev, int ch); |
26 | int (*status)(struct udevice *dev, int *status); | |
a02af4ae SG |
27 | int (*set_light)(struct udevice *dev, int light); |
28 | int (*get_light)(struct udevice *dev); | |
39f7611f SG |
29 | }; |
30 | ||
54c5d08a HS |
31 | int demo_hello(struct udevice *dev, int ch); |
32 | int demo_status(struct udevice *dev, int *status); | |
a02af4ae SG |
33 | int demo_set_light(struct udevice *dev, int light); |
34 | int demo_get_light(struct udevice *dev); | |
39f7611f SG |
35 | int demo_list(void); |
36 | ||
54c5d08a | 37 | int demo_parse_dt(struct udevice *dev); |
39f7611f SG |
38 | |
39 | #endif |