device.h 565 B

1234567891011121314151617181920212223242526272829
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Arch specific extensions to struct device
  4. */
  5. #ifndef _ASM_SPARC_DEVICE_H
  6. #define _ASM_SPARC_DEVICE_H
  7. #include <asm/openprom.h>
  8. struct device_node;
  9. struct platform_device;
  10. struct dev_archdata {
  11. void *iommu;
  12. void *stc;
  13. void *host_controller;
  14. struct platform_device *op;
  15. int numa_node;
  16. };
  17. void of_propagate_archdata(struct platform_device *bus);
  18. struct pdev_archdata {
  19. struct resource resource[PROMREG_MAX];
  20. unsigned int irqs[PROMINTR_MAX];
  21. int num_irqs;
  22. };
  23. #endif /* _ASM_SPARC_DEVICE_H */