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 | */ |
David S. Miller | e865f3e | 2007-07-18 20:59:54 -0700 | [diff] [blame] | 6 | #ifndef _ASM_SPARC_DEVICE_H |
| 7 | #define _ASM_SPARC_DEVICE_H |
| 8 | |
Grant Likely | 1636f8a | 2010-06-18 11:09:58 -0600 | [diff] [blame] | 9 | #include <asm/openprom.h> |
| 10 | |
David S. Miller | e865f3e | 2007-07-18 20:59:54 -0700 | [diff] [blame] | 11 | struct device_node; |
Grant Likely | b505ff5 | 2010-06-18 11:09:59 -0600 | [diff] [blame] | 12 | struct platform_device; |
David S. Miller | e865f3e | 2007-07-18 20:59:54 -0700 | [diff] [blame] | 13 | |
| 14 | struct dev_archdata { |
David S. Miller | ad7ad57 | 2007-07-27 22:39:14 -0700 | [diff] [blame] | 15 | void *iommu; |
| 16 | void *stc; |
| 17 | void *host_controller; |
Grant Likely | b505ff5 | 2010-06-18 11:09:59 -0600 | [diff] [blame] | 18 | struct platform_device *op; |
David S. Miller | c1b1a5f | 2008-03-19 04:52:48 -0700 | [diff] [blame] | 19 | int numa_node; |
David S. Miller | e865f3e | 2007-07-18 20:59:54 -0700 | [diff] [blame] | 20 | }; |
| 21 | |
Grant Likely | 2959604 | 2010-06-29 11:15:54 -0600 | [diff] [blame] | 22 | extern void of_propagate_archdata(struct platform_device *bus); |
| 23 | |
Magnus Damm | d7aacad | 2009-07-08 13:21:31 +0200 | [diff] [blame] | 24 | struct pdev_archdata { |
Grant Likely | 1636f8a | 2010-06-18 11:09:58 -0600 | [diff] [blame] | 25 | struct resource resource[PROMREG_MAX]; |
| 26 | unsigned int irqs[PROMINTR_MAX]; |
| 27 | int num_irqs; |
Magnus Damm | d7aacad | 2009-07-08 13:21:31 +0200 | [diff] [blame] | 28 | }; |
| 29 | |
David S. Miller | e865f3e | 2007-07-18 20:59:54 -0700 | [diff] [blame] | 30 | #endif /* _ASM_SPARC_DEVICE_H */ |