]>
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 | ||
39f7611f SG |
9 | /** |
10 | * struct dm_demo_pdata - configuration data for demo instance | |
11 | * | |
12 | * @colour: Color of the demo | |
13 | * @sides: Numbers of sides | |
14 | * @default_char: Default ASCII character to output (65 = 'A') | |
15 | */ | |
16 | struct dm_demo_pdata { | |
17 | const char *colour; | |
18 | int sides; | |
19 | int default_char; | |
20 | }; | |
21 | ||
22 | struct demo_ops { | |
54c5d08a HS |
23 | int (*hello)(struct udevice *dev, int ch); |
24 | int (*status)(struct udevice *dev, int *status); | |
a02af4ae SG |
25 | int (*set_light)(struct udevice *dev, int light); |
26 | int (*get_light)(struct udevice *dev); | |
39f7611f SG |
27 | }; |
28 | ||
54c5d08a HS |
29 | int demo_hello(struct udevice *dev, int ch); |
30 | int demo_status(struct udevice *dev, int *status); | |
a02af4ae SG |
31 | int demo_set_light(struct udevice *dev, int light); |
32 | int demo_get_light(struct udevice *dev); | |
39f7611f SG |
33 | int demo_list(void); |
34 | ||
54c5d08a | 35 | int demo_parse_dt(struct udevice *dev); |
39f7611f SG |
36 | |
37 | #endif |