rsxx.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * Filename: rsxx.h
  3. *
  4. *
  5. * Authors: Joshua Morris <josh.h.morris@us.ibm.com>
  6. * Philip Kelleher <pjk1939@linux.vnet.ibm.com>
  7. *
  8. * (C) Copyright 2013 IBM Corporation
  9. *
  10. * This program is free software; you can redistribute it and/or
  11. * modify it under the terms of the GNU General Public License as
  12. * published by the Free Software Foundation; either version 2 of the
  13. * License, or (at your option) any later version.
  14. *
  15. * This program is distributed in the hope that it will be useful, but
  16. * WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  18. * General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU General Public License
  21. * along with this program; if not, write to the Free Software Foundation,
  22. * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  23. */
  24. #ifndef __RSXX_H__
  25. #define __RSXX_H__
  26. /*----------------- IOCTL Definitions -------------------*/
  27. #define RSXX_MAX_DATA 8
  28. struct rsxx_reg_access {
  29. __u32 addr;
  30. __u32 cnt;
  31. __u32 stat;
  32. __u32 stream;
  33. __u32 data[RSXX_MAX_DATA];
  34. };
  35. #define RSXX_MAX_REG_CNT (RSXX_MAX_DATA * (sizeof(__u32)))
  36. #define RSXX_IOC_MAGIC 'r'
  37. #define RSXX_GETREG _IOWR(RSXX_IOC_MAGIC, 0x20, struct rsxx_reg_access)
  38. #define RSXX_SETREG _IOWR(RSXX_IOC_MAGIC, 0x21, struct rsxx_reg_access)
  39. #endif /* __RSXX_H_ */