device.h 479 B

123456789101112131415161718192021222324
  1. /*
  2. * Arch specific extensions to struct device
  3. *
  4. * This file is released under the GPLv2
  5. */
  6. #ifndef _ASM_POWERPC_DEVICE_H
  7. #define _ASM_POWERPC_DEVICE_H
  8. struct dma_mapping_ops;
  9. struct device_node;
  10. struct dev_archdata {
  11. /* Optional pointer to an OF device node */
  12. struct device_node *of_node;
  13. /* DMA operations on that device */
  14. struct dma_mapping_ops *dma_ops;
  15. void *dma_data;
  16. /* NUMA node if applicable */
  17. int numa_node;
  18. };
  19. #endif /* _ASM_POWERPC_DEVICE_H */