device.h 565 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Arch specific extensions to struct device
  3. *
  4. * This file is released under the GPLv2
  5. */
  6. #ifndef _ASM_SPARC_DEVICE_H
  7. #define _ASM_SPARC_DEVICE_H
  8. #include <asm/openprom.h>
  9. struct device_node;
  10. struct platform_device;
  11. struct dev_archdata {
  12. void *iommu;
  13. void *stc;
  14. void *host_controller;
  15. struct platform_device *op;
  16. int numa_node;
  17. };
  18. void of_propagate_archdata(struct platform_device *bus);
  19. struct pdev_archdata {
  20. struct resource resource[PROMREG_MAX];
  21. unsigned int irqs[PROMINTR_MAX];
  22. int num_irqs;
  23. };
  24. #endif /* _ASM_SPARC_DEVICE_H */