device.h 620 B

1234567891011121314151617181920212223242526272829303132333435
  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. struct device_node;
  9. struct of_device;
  10. struct dev_archdata {
  11. void *iommu;
  12. void *stc;
  13. void *host_controller;
  14. struct device_node *prom_node;
  15. struct of_device *op;
  16. int numa_node;
  17. };
  18. static inline void dev_archdata_set_node(struct dev_archdata *ad,
  19. struct device_node *np)
  20. {
  21. ad->prom_node = np;
  22. }
  23. static inline struct device_node *
  24. dev_archdata_get_node(const struct dev_archdata *ad)
  25. {
  26. return ad->prom_node;
  27. }
  28. #endif /* _ASM_SPARC_DEVICE_H */