gvp11.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #ifndef GVP11_H
  2. /* $Id: gvp11.h,v 1.4 1997/01/19 23:07:12 davem Exp $
  3. *
  4. * Header file for the GVP Series II SCSI controller for Linux
  5. *
  6. * Written and (C) 1993, Ralf Baechle, see gvp11.c for more info
  7. * based on a2091.h (C) 1993 by Hamish Macdonald
  8. *
  9. */
  10. #include <linux/types.h>
  11. #ifndef CMD_PER_LUN
  12. #define CMD_PER_LUN 2
  13. #endif
  14. #ifndef CAN_QUEUE
  15. #define CAN_QUEUE 16
  16. #endif
  17. /*
  18. * if the transfer address ANDed with this results in a non-zero
  19. * result, then we can't use DMA.
  20. */
  21. #define GVP11_XFER_MASK (0xff000001)
  22. struct gvp11_scsiregs {
  23. unsigned char pad1[64];
  24. volatile unsigned short CNTR;
  25. unsigned char pad2[31];
  26. volatile unsigned char SASR;
  27. unsigned char pad3;
  28. volatile unsigned char SCMD;
  29. unsigned char pad4[4];
  30. volatile unsigned short BANK;
  31. unsigned char pad5[6];
  32. volatile unsigned long ACR;
  33. volatile unsigned short secret1; /* store 0 here */
  34. volatile unsigned short ST_DMA;
  35. volatile unsigned short SP_DMA;
  36. volatile unsigned short secret2; /* store 1 here */
  37. volatile unsigned short secret3; /* store 15 here */
  38. };
  39. /* bits in CNTR */
  40. #define GVP11_DMAC_BUSY (1<<0)
  41. #define GVP11_DMAC_INT_PENDING (1<<1)
  42. #define GVP11_DMAC_INT_ENABLE (1<<3)
  43. #define GVP11_DMAC_DIR_WRITE (1<<4)
  44. #endif /* GVP11_H */