uboot uclass和uclass_driver

来源:互联网 发布:mac repo 安装 编辑:程序博客网 时间:2024/06/05 10:08

struct uclass {

         void*priv;

         structuclass_driver *uc_drv;

         structlist_head dev_head;

         structlist_head sibling_node;

};

struct uclass_driver {

         constchar *name;

         enumuclass_id id;

         int(*post_bind)(struct udevice *dev);

         int(*pre_unbind)(struct udevice *dev);

         int(*pre_probe)(struct udevice *dev);

         int(*post_probe)(struct udevice *dev);

         int(*pre_remove)(struct udevice *dev);

         int(*child_post_bind)(struct udevice *dev);

         int(*child_pre_probe)(struct udevice *dev);

         int(*init)(struct uclass *class);

         int(*destroy)(struct uclass *class);

         intpriv_auto_alloc_size;

         intper_device_auto_alloc_size;

         intper_device_platdata_auto_alloc_size;

         intper_child_auto_alloc_size;

         intper_child_platdata_auto_alloc_size;

         constvoid *ops;

         uint32_tflags;

};

0 0
原创粉丝点击