]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - include/dm/test.h
dm: Provide a function to scan child FDT nodes
[people/ms/u-boot.git] / include / dm / test.h
index 409f1a3667fe3954b6164238b6ab2acccad2aa86..e8e1c0b24a38ffd8e4ca92e41d3a47d7cdacd7c8 100644 (file)
@@ -155,6 +155,15 @@ int testfdt_ping(struct udevice *dev, int pingval, int *pingret);
 int dm_check_operations(struct dm_test_state *dms, struct udevice *dev,
                        uint32_t base, struct dm_test_priv *priv);
 
+/**
+ * dm_check_devices() - check the devices respond to operations correctly
+ *
+ * @dms: Overall test state
+ * @num_devices: Number of test devices to check
+ * @return 0 if OK, -ve on error
+ */
+int dm_check_devices(struct dm_test_state *dms, int num_devices);
+
 /**
  * dm_test_main() - Run all the tests
  *