janz.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. * Common Definitions for Janz MODULbus devices
  3. *
  4. * Copyright (c) 2010 Ira W. Snyder <iws@ovro.caltech.edu>
  5. *
  6. * This program is free software; you can redistribute it and/or modify it
  7. * under the terms of the GNU General Public License as published by the
  8. * Free Software Foundation; either version 2 of the License, or (at your
  9. * option) any later version.
  10. */
  11. #ifndef JANZ_H
  12. #define JANZ_H
  13. struct janz_platform_data {
  14. /* MODULbus Module Number */
  15. unsigned int modno;
  16. };
  17. /* PLX bridge chip onboard registers */
  18. struct janz_cmodio_onboard_regs {
  19. u8 unused1;
  20. /*
  21. * Read access: interrupt status
  22. * Write access: interrupt disable
  23. */
  24. u8 int_disable;
  25. u8 unused2;
  26. /*
  27. * Read access: MODULbus number (hex switch)
  28. * Write access: interrupt enable
  29. */
  30. u8 int_enable;
  31. u8 unused3;
  32. /* write-only */
  33. u8 reset_assert;
  34. u8 unused4;
  35. /* write-only */
  36. u8 reset_deassert;
  37. u8 unused5;
  38. /* read-write access to serial EEPROM */
  39. u8 eep;
  40. u8 unused6;
  41. /* write-only access to EEPROM chip select */
  42. u8 enid;
  43. };
  44. #endif /* JANZ_H */