blob: b16debfe8c1eefe4e529db82850b6b66e4986297 [file] [log] [blame]
Benjamin Herrenschmidtc6dbaef2006-11-11 17:18:39 +11001/*
2 * Arch specific extensions to struct device
3 *
4 * This file is released under the GPLv2
5 */
Magnus Damm9aaa7492009-07-31 07:47:17 +00006
7struct dev_archdata {
8};
Benjamin Herrenschmidtc6dbaef2006-11-11 17:18:39 +11009
Magnus Damm1eca5c92008-07-16 19:02:54 +090010struct platform_device;
11/* allocate contiguous memory chunk and fill in struct resource */
12int platform_resource_setup_memory(struct platform_device *pdev,
13 char *name, unsigned long memsize);
14
Magnus Damm87a00dc2009-04-15 10:50:21 +000015void plat_early_device_setup(void);
16
Magnus Damm6a93dde2009-08-14 10:48:16 +000017#define PDEV_ARCHDATA_FLAG_INIT 0
18#define PDEV_ARCHDATA_FLAG_IDLE 1
19#define PDEV_ARCHDATA_FLAG_SUSP 2
20
Magnus Damm9aaa7492009-07-31 07:47:17 +000021struct pdev_archdata {
22 int hwblk_id;
Magnus Damm6a93dde2009-08-14 10:48:16 +000023#ifdef CONFIG_PM_RUNTIME
24 unsigned long flags;
25 struct list_head entry;
26 struct mutex mutex;
27#endif
Magnus Damm9aaa7492009-07-31 07:47:17 +000028};