blob: 80e6fad28b4fdb7762d93cef14296c59b875a149 [file] [log] [blame]
Stephen Rothwellb41912c2007-05-01 16:12:57 +10001#ifndef _ASM_POWERPC_OF_PLATFORM_H
2#define _ASM_POWERPC_OF_PLATFORM_H
Benjamin Herrenschmidt7eebde72006-11-11 17:24:59 +11003/*
4 * Copyright (C) 2006 Benjamin Herrenschmidt, IBM Corp.
5 * <benh@kernel.crashing.org>
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version
10 * 2 of the License, or (at your option) any later version.
11 *
12 */
13
Stephen Rothwellb41912c2007-05-01 16:12:57 +100014/* This is just here during the transition */
15#include <linux/of_platform.h>
Benjamin Herrenschmidt7eebde72006-11-11 17:24:59 +110016
17/* Platform drivers register/unregister */
18extern int of_register_platform_driver(struct of_platform_driver *drv);
19extern void of_unregister_platform_driver(struct of_platform_driver *drv);
20
21/* Platform devices and busses creation */
22extern struct of_device *of_platform_device_create(struct device_node *np,
23 const char *bus_id,
24 struct device *parent);
25/* pseudo "matches" value to not do deep probe */
26#define OF_NO_DEEP_PROBE ((struct of_device_id *)-1)
27
28extern int of_platform_bus_probe(struct device_node *root,
29 struct of_device_id *matches,
30 struct device *parent);
31
Benjamin Herrenschmidt7eebde72006-11-11 17:24:59 +110032extern struct of_device *of_find_device_by_phandle(phandle ph);
Stephen Rothwellb41912c2007-05-01 16:12:57 +100033
34#endif /* _ASM_POWERPC_OF_PLATFORM_H */