spu_info.h 832 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
  2. /*
  3. * SPU info structures
  4. *
  5. * (C) Copyright 2006 IBM Corp.
  6. *
  7. * Author: Dwayne Grant McConnell <decimal@us.ibm.com>
  8. */
  9. #ifndef _UAPI_SPU_INFO_H
  10. #define _UAPI_SPU_INFO_H
  11. #include <linux/types.h>
  12. #ifndef __KERNEL__
  13. struct mfc_cq_sr {
  14. __u64 mfc_cq_data0_RW;
  15. __u64 mfc_cq_data1_RW;
  16. __u64 mfc_cq_data2_RW;
  17. __u64 mfc_cq_data3_RW;
  18. };
  19. #endif /* __KERNEL__ */
  20. struct spu_dma_info {
  21. __u64 dma_info_type;
  22. __u64 dma_info_mask;
  23. __u64 dma_info_status;
  24. __u64 dma_info_stall_and_notify;
  25. __u64 dma_info_atomic_command_status;
  26. struct mfc_cq_sr dma_info_command_data[16];
  27. };
  28. struct spu_proxydma_info {
  29. __u64 proxydma_info_type;
  30. __u64 proxydma_info_mask;
  31. __u64 proxydma_info_status;
  32. struct mfc_cq_sr proxydma_info_command_data[8];
  33. };
  34. #endif /* _UAPI_SPU_INFO_H */