]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - include/dm-demo.h
sunxi: non-FEL SPL boot support for sun7i
[karo-tx-uboot.git] / include / dm-demo.h
1 /*
2  * Copyright (c) 2013 Google, Inc
3  *
4  * SPDX-License-Identifier:     GPL-2.0+
5  */
6
7 #ifndef __DM_DEMO_H
8 #define __DM_DEMO_H
9
10 #include <dm.h>
11
12 /**
13  * struct dm_demo_pdata - configuration data for demo instance
14  *
15  * @colour: Color of the demo
16  * @sides: Numbers of sides
17  * @default_char: Default ASCII character to output (65 = 'A')
18  */
19 struct dm_demo_pdata {
20         const char *colour;
21         int sides;
22         int default_char;
23 };
24
25 struct demo_ops {
26         int (*hello)(struct device *dev, int ch);
27         int (*status)(struct device *dev, int *status);
28 };
29
30 int demo_hello(struct device *dev, int ch);
31 int demo_status(struct device *dev, int *status);
32 int demo_list(void);
33
34 int demo_parse_dt(struct device *dev);
35
36 #endif