Simon Glass | dd6ab88 | 2014-02-26 15:59:18 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2013 Google, Inc |
| 3 | * |
| 4 | * (C) Copyright 2012 |
| 5 | * Pavel Herrmann <morpheus.ibis@gmail.com> |
| 6 | * |
| 7 | * SPDX-License-Identifier: GPL-2.0+ |
| 8 | */ |
| 9 | |
| 10 | #ifndef _DM_LISTS_H_ |
| 11 | #define _DM_LISTS_H_ |
| 12 | |
| 13 | #include <dm/uclass-id.h> |
| 14 | |
| 15 | /** |
| 16 | * lists_driver_lookup_name() - Return u_boot_driver corresponding to name |
| 17 | * |
| 18 | * This function returns a pointer to a driver given its name. This is used |
| 19 | * for binding a driver given its name and platdata. |
| 20 | * |
| 21 | * @name: Name of driver to look up |
| 22 | * @return pointer to driver, or NULL if not found |
| 23 | */ |
| 24 | struct driver *lists_driver_lookup_name(const char *name); |
| 25 | |
| 26 | /** |
| 27 | * lists_uclass_lookup() - Return uclass_driver based on ID of the class |
| 28 | * id: ID of the class |
| 29 | * |
| 30 | * This function returns the pointer to uclass_driver, which is the class's |
| 31 | * base structure based on the ID of the class. Returns NULL on error. |
| 32 | */ |
| 33 | struct uclass_driver *lists_uclass_lookup(enum uclass_id id); |
| 34 | |
Heiko Schocher | b74fcb4 | 2014-05-22 12:43:05 +0200 | [diff] [blame] | 35 | int lists_bind_drivers(struct udevice *parent); |
Simon Glass | dd6ab88 | 2014-02-26 15:59:18 -0700 | [diff] [blame] | 36 | |
Heiko Schocher | b74fcb4 | 2014-05-22 12:43:05 +0200 | [diff] [blame] | 37 | int lists_bind_fdt(struct udevice *parent, const void *blob, int offset); |
Simon Glass | dd6ab88 | 2014-02-26 15:59:18 -0700 | [diff] [blame] | 38 | |
| 39 | #endif |