Benjamin Herrenschmidt | c6dbaef | 2006-11-11 17:18:39 +1100 | [diff] [blame] | 1 | /* |
| 2 | * Arch specific extensions to struct device |
| 3 | * |
| 4 | * This file is released under the GPLv2 |
| 5 | */ |
Magnus Damm | 9aaa749 | 2009-07-31 07:47:17 +0000 | [diff] [blame] | 6 | |
| 7 | struct dev_archdata { |
| 8 | }; |
Benjamin Herrenschmidt | c6dbaef | 2006-11-11 17:18:39 +1100 | [diff] [blame] | 9 | |
Magnus Damm | 1eca5c9 | 2008-07-16 19:02:54 +0900 | [diff] [blame] | 10 | struct platform_device; |
| 11 | /* allocate contiguous memory chunk and fill in struct resource */ |
| 12 | int platform_resource_setup_memory(struct platform_device *pdev, |
| 13 | char *name, unsigned long memsize); |
| 14 | |
Magnus Damm | 87a00dc | 2009-04-15 10:50:21 +0000 | [diff] [blame] | 15 | void plat_early_device_setup(void); |
| 16 | |
Magnus Damm | 6a93dde | 2009-08-14 10:48:16 +0000 | [diff] [blame^] | 17 | #define PDEV_ARCHDATA_FLAG_INIT 0 |
| 18 | #define PDEV_ARCHDATA_FLAG_IDLE 1 |
| 19 | #define PDEV_ARCHDATA_FLAG_SUSP 2 |
| 20 | |
Magnus Damm | 9aaa749 | 2009-07-31 07:47:17 +0000 | [diff] [blame] | 21 | struct pdev_archdata { |
| 22 | int hwblk_id; |
Magnus Damm | 6a93dde | 2009-08-14 10:48:16 +0000 | [diff] [blame^] | 23 | #ifdef CONFIG_PM_RUNTIME |
| 24 | unsigned long flags; |
| 25 | struct list_head entry; |
| 26 | struct mutex mutex; |
| 27 | #endif |
Magnus Damm | 9aaa749 | 2009-07-31 07:47:17 +0000 | [diff] [blame] | 28 | }; |