u-boot/test/dm
Simon Glass e59f458de6 dm: Introduce per-child data for devices
Some device types can have child devices and want to store information
about them. For example a USB flash stick attached to a USB host
controller would likely use this space. The controller can hold
information about the USB state of each of its children.

The data is stored attached to the child device in the 'parent_priv'
member. It can be auto-allocated by dm when the child is probed. To
do this, add a per_child_auto_alloc_size value to the parent driver.

Signed-off-by: Simon Glass <sjg@chromium.org>
2014-07-23 14:08:37 +01:00
..
.gitignore dm: Add basic tests 2014-03-04 12:15:29 -05:00
bus.c dm: Introduce per-child data for devices 2014-07-23 14:08:37 +01:00
cmd_dm.c dm: Display the sequence number for each device 2014-07-23 14:07:25 +01:00
core.c dm: Avoid accessing uclasses before they are ready 2014-07-23 14:07:26 +01:00
gpio.c dm: rename device struct to udevice 2014-05-27 10:21:32 -04:00
Makefile dm: Provide a function to scan child FDT nodes 2014-07-23 14:08:36 +01:00
test-dm.sh dm: Add basic tests 2014-03-04 12:15:29 -05:00
test-driver.c dm: Allow drivers to be marked 'before relocation' 2014-07-23 14:07:24 +01:00
test-fdt.c dm: Provide a function to scan child FDT nodes 2014-07-23 14:08:36 +01:00
test-main.c dm: Allow drivers to be marked 'before relocation' 2014-07-23 14:07:24 +01:00
test-uclass.c dm: rename device struct to udevice 2014-05-27 10:21:32 -04:00
test.dts dm: Provide a function to scan child FDT nodes 2014-07-23 14:08:36 +01:00
ut.c dm: Add basic tests 2014-03-04 12:15:29 -05:00