3 Star 13 Fork 10

Embedfire/ebf_linux_uboot

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
dm-demo.h 863 Bytes
一键复制 编辑 原始数据 按行查看 历史
Simon Glass 提交于 2020-07-20 00:15 +08:00 . dm: core: Drop dm.h header file from dm-demo.h
/* SPDX-License-Identifier: GPL-2.0+ */
/*
* Copyright (c) 2013 Google, Inc
*/
#ifndef __DM_DEMO_H
#define __DM_DEMO_H
/**
* struct dm_demo_pdata - configuration data for demo instance
*
* @colour: Color of the demo
* @sides: Numbers of sides
* @default_char: Default ASCII character to output (65 = 'A')
*/
struct dm_demo_pdata {
const char *colour;
int sides;
int default_char;
};
struct demo_ops {
int (*hello)(struct udevice *dev, int ch);
int (*status)(struct udevice *dev, int *status);
int (*set_light)(struct udevice *dev, int light);
int (*get_light)(struct udevice *dev);
};
int demo_hello(struct udevice *dev, int ch);
int demo_status(struct udevice *dev, int *status);
int demo_set_light(struct udevice *dev, int light);
int demo_get_light(struct udevice *dev);
int demo_list(void);
int demo_parse_dt(struct udevice *dev);
#endif
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Embedfire/ebf_linux_uboot.git
git@gitee.com:Embedfire/ebf_linux_uboot.git
Embedfire
ebf_linux_uboot
ebf_linux_uboot
ebf_v2020_10_imx

搜索帮助