vas-api_powerpc.h 649 B

12345678910111213141516171819202122232425262728
  1. /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
  2. /*
  3. * Copyright 2019 IBM Corp.
  4. */
  5. #ifndef _MISC_VAS_H
  6. #define _MISC_VAS_H
  7. #include <linux/types.h>
  8. #include <asm/ioctl.h>
  9. #define VAS_MAGIC 'v'
  10. #define VAS_TX_WIN_OPEN _IOW(VAS_MAGIC, 0x20, struct vas_tx_win_open_attr)
  11. /* Flags to VAS TX open window ioctl */
  12. /* To allocate a window with QoS credit, otherwise use default credit */
  13. #define VAS_TX_WIN_FLAG_QOS_CREDIT 0x0000000000000001
  14. struct vas_tx_win_open_attr {
  15. __u32 version;
  16. __s16 vas_id; /* specific instance of vas or -1 for default */
  17. __u16 reserved1;
  18. __u64 flags;
  19. __u64 reserved2[6];
  20. };
  21. #endif /* _MISC_VAS_H */