KISS Data Aquisition and Control System
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
549 B

  1. /*
  2. *
  3. * PRU Debug Program - UIO routine header file
  4. * (c) Copyright 2011,2013 by Arctica Technologies
  5. * Written by Steven Anderson
  6. *
  7. */
  8. #ifndef H_UIO
  9. #define H_UIO
  10. #define UIO_MAX_UIO_FILEPATH 100 // maximum length of the path and name for a uio file (ex. /sys/class/uio/uio7/name)
  11. #define UIO_MAX_DEV_NAME 50
  12. struct uiomap {
  13. unsigned long address;
  14. unsigned long length;
  15. };
  16. struct uiodev {
  17. char *uio_file;
  18. char *name;
  19. char *version;
  20. struct uiomap *maps;
  21. };
  22. // prototypes
  23. int uio_getprussfile(char *devname);
  24. #endif