uboot 设备驱动之设备描述
来源:互联网 发布:实景地图制作软件 编辑:程序博客网 时间:2024/05/17 02:21
include/dm/device.h
/** * struct udevice - An instance of a driver * * This holds information about a device, which is a driver bound to a * particular port or peripheral (essentially a driver instance). * * A device will come into existence through a 'bind' call, either due to * a U_BOOT_DEVICE() macro (in which case platdata is non-NULL) or a node * in the device tree (in which case of_offset is >= 0). In the latter case * we translate the device tree information into platdata in a function * implemented by the driver ofdata_to_platdata method (called just before the * probe method if the device has a device tree node. * * All three of platdata, priv and uclass_priv can be allocated by the * driver, or you can use the auto_alloc_size members of struct driver and * struct uclass_driver to have driver model do this automatically. * * @driver: The driver used by this device * @name: Name of device, typically the FDT node name * @platdata: Configuration data for this device * @parent_platdata: The parent bus's configuration data for this device * @uclass_platdata: The uclass's configuration data for this device * @of_offset: Device tree node offset for this device (- for none) * @driver_data: Driver data word for the entry that matched this device with * its driver * @parent: Parent of this device, or NULL for the top level device * @priv: Private data for this device * @uclass: Pointer to uclass for this device * @uclass_priv: The uclass's private data for this device * @parent_priv: The parent's private data for this device * @uclass_node: Used by uclass to link its devices * @child_head: List of children of this device * @sibling_node: Next device in list of all devices * @flags: Flags for this device DM_FLAG_... * @req_seq: Requested sequence number for this device (-1 = any) * @seq: Allocated sequence number for this device (-1 = none). This is set up * when the device is probed and will be unique within the device's uclass. * @devres_head: List of memory allocations associated with this device. * When CONFIG_DEVRES is enabled, devm_kmalloc() and friends will * add to this list. Memory so-allocated will be freed * automatically when the device is removed / unbound */struct udevice { const struct driver *driver; const char *name; void *platdata; void *parent_platdata; void *uclass_platdata; int of_offset; ulong driver_data; struct udevice *parent; void *priv; struct uclass *uclass; void *uclass_priv; void *parent_priv; struct list_head uclass_node; struct list_head child_head; struct list_head sibling_node; uint32_t flags; int req_seq; int seq;#ifdef CONFIG_DEVRES struct list_head devres_head;#endif};
0 0
- uboot 设备驱动之设备驱动描述
- uboot 设备驱动之设备描述
- uboot 设备驱动之 驱动申明
- uboot下设备id描述
- UVC设备驱动之描述符分析
- UVC设备驱动之描述符分析
- Linux 内核设备驱动之GPIO驱动之GPIO 控制器设备描述
- Linux Kernel 设备驱动之I2C之host描述
- Linux Kernel 设备驱动之I2C之client描述
- Linux 设备驱动之 DTS 描述的资源
- Linux设备驱动之《字符设备驱动》
- linux设备驱动之总线、设备、驱动
- 设备驱动之二----字符设备驱动
- 字符设备驱动之I2C设备驱动
- Linux设备驱动之块设备驱动
- linux设备驱动之总线,设备,驱动
- linux设备驱动之总线、设备、驱动
- Linux设备驱动之字符设备驱动
- 读书笔记:操作系统概念
- 508. Most Frequent Subtree Sum | 查找子树和中出现次数最多的和
- opencv中Mat与IplImage,CVMat类型之间转换
- ios NSNotificationCenter通知的使用
- SpringMvc+Mybatis企业级集成Websocket在线聊天
- uboot 设备驱动之设备描述
- JS常用
- 当我们copy一个web项目的时候,此时要修改其Context root
- [Jmeter] 关于2.6版本Jmeter使用备忘
- linux学习路线
- 安装redis记录一下~
- 解释:int型默认值为0
- git注意事项
- 总结一下顶级域名和子级域名之间的cookie共享和相互修改、删除