| 1 |
|
| 2 | #ifndef _KUNIT_PLATFORM_DRIVER_H
|
| 3 | #define _KUNIT_PLATFORM_DRIVER_H
|
| 4 |
|
| 5 | struct completion;
|
| 6 | struct kunit;
|
| 7 | struct platform_device;
|
| 8 | struct platform_driver;
|
| 9 | struct platform_device_info;
|
| 10 |
|
| 11 | struct platform_device *
|
| 12 | kunit_platform_device_alloc(struct kunit *test, const char *name, int id);
|
| 13 | int kunit_platform_device_add(struct kunit *test, struct platform_device *pdev);
|
| 14 | struct platform_device *
|
| 15 | kunit_platform_device_register_full(struct kunit *test,
|
| 16 | const struct platform_device_info *pdevinfo);
|
| 17 | void kunit_platform_device_unregister(struct kunit *test,
|
| 18 | struct platform_device *pdev);
|
| 19 |
|
| 20 | int kunit_platform_device_prepare_wait_for_probe(struct kunit *test,
|
| 21 | struct platform_device *pdev,
|
| 22 | struct completion *x);
|
| 23 |
|
| 24 | int kunit_platform_driver_register(struct kunit *test,
|
| 25 | struct platform_driver *drv);
|
| 26 |
|
| 27 | #endif
|