Subversion Repositories f9daq

Rev

Rev 23 | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. #ifndef _PCICC32_LOCAL_H__
  2. #define _PCICC32_LOCAL_H__
  3. //-----------------------------------------------------------------------
  4. // Address definitions and constants for PCIADA of PCICC32 interface
  5. // designed by A.Rausch        
  6. //                                                                      
  7. // (c) 1999 ARW Elektronik
  8. //
  9. // this source code is published under GPL (Open Source). You can use, redistrubute and
  10. // modify it unless this header   is not modified or deleted. No warranty is given that
  11. // this software will work like expected.
  12. // This product is not authorized for use as critical component in life support systems
  13. // wihout the express written approval of ARW Elektronik Germany.
  14. //
  15. // Please announce changes and hints to ARW Elektronik
  16. //
  17. // what                                              who   when          
  18. // first parts derived from PCIVME                   AR    10.03.2000
  19. // added initialisation for AUTOREAD                 AR    17.03.2001  
  20. //
  21.  
  22. /*-----------------------------------------------------------------------*/
  23. /* all addresses relative to PCI-Window                                  */
  24.  
  25. /*--------- some masks in CSR -------------------------------------------*/
  26. #define MASK_MODNR   (WORD)0x00F0       /* the mask to get the module No */
  27. #define MASK_FPGA    (WORD)0x0F00       /* the mask to get the FPGA rev. */
  28. #define MASK_MODTYPE (WORD)0xF000       /* the mask to get type of module*/
  29.  
  30. /*---------- release und inhibit into 0x50 of PLX ------------------------*/
  31. #define RELEASE_CC32 (WORD)0x4186       /* write this to release access ..*/
  32. #define INHIBIT_CC32 (WORD)0x4086       /* write this to inhibit access ..*/
  33. #define ENABLE_PCIADA_IRQS  (WORD)0x0049 /* enable PCIADA IRQs            */
  34. #define DISABLE_PCIADA_IRQS (WORD)0x0009 /* disable PCIADA IRQs           */
  35.  
  36. #endif // _PCICC32_LOCAL_H__
  37.