spu_info.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. * This program is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License as published by
  11. * the Free Software Foundation; either version 2, or (at your option)
  12. * any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this program; if not, write to the Free Software
  21. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  22. */
  23. #ifndef _UAPI_SPU_INFO_H
  24. #define _UAPI_SPU_INFO_H
  25. #include <linux/types.h>
  26. #ifndef __KERNEL__
  27. struct mfc_cq_sr {
  28. __u64 mfc_cq_data0_RW;
  29. __u64 mfc_cq_data1_RW;
  30. __u64 mfc_cq_data2_RW;
  31. __u64 mfc_cq_data3_RW;
  32. };
  33. #endif /* __KERNEL__ */
  34. struct spu_dma_info {
  35. __u64 dma_info_type;
  36. __u64 dma_info_mask;
  37. __u64 dma_info_status;
  38. __u64 dma_info_stall_and_notify;
  39. __u64 dma_info_atomic_command_status;
  40. struct mfc_cq_sr dma_info_command_data[16];
  41. };
  42. struct spu_proxydma_info {
  43. __u64 proxydma_info_type;
  44. __u64 proxydma_info_mask;
  45. __u64 proxydma_info_status;
  46. struct mfc_cq_sr proxydma_info_command_data[8];
  47. };
  48. #endif /* _UAPI_SPU_INFO_H */