device.h 825 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * Arch specific extensions to struct device
  3. *
  4. * This file is subject to the terms and conditions of the GNU General Public
  5. * License v2. See the file "COPYING" in the main directory of this archive
  6. * for more details.
  7. */
  8. #ifndef _ASM_MICROBLAZE_DEVICE_H
  9. #define _ASM_MICROBLAZE_DEVICE_H
  10. struct device_node;
  11. struct dev_archdata {
  12. /* Optional pointer to an OF device node */
  13. struct device_node *of_node;
  14. /* DMA operations on that device */
  15. struct dma_map_ops *dma_ops;
  16. void *dma_data;
  17. };
  18. struct pdev_archdata {
  19. };
  20. static inline void dev_archdata_set_node(struct dev_archdata *ad,
  21. struct device_node *np)
  22. {
  23. ad->of_node = np;
  24. }
  25. static inline struct device_node *
  26. dev_archdata_get_node(const struct dev_archdata *ad)
  27. {
  28. return ad->of_node;
  29. }
  30. #endif /* _ASM_MICROBLAZE_DEVICE_H */