gvp11.h 1.3 KB

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