gvp11.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. int gvp11_detect(struct scsi_host_template *);
  12. int gvp11_release(struct Scsi_Host *);
  13. const char *wd33c93_info(void);
  14. int wd33c93_queuecommand(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
  15. int wd33c93_abort(Scsi_Cmnd *);
  16. int wd33c93_reset(Scsi_Cmnd *, unsigned int);
  17. #ifndef CMD_PER_LUN
  18. #define CMD_PER_LUN 2
  19. #endif
  20. #ifndef CAN_QUEUE
  21. #define CAN_QUEUE 16
  22. #endif
  23. #ifndef HOSTS_C
  24. /*
  25. * if the transfer address ANDed with this results in a non-zero
  26. * result, then we can't use DMA.
  27. */
  28. #define GVP11_XFER_MASK (0xff000001)
  29. typedef struct {
  30. unsigned char pad1[64];
  31. volatile unsigned short CNTR;
  32. unsigned char pad2[31];
  33. volatile unsigned char SASR;
  34. unsigned char pad3;
  35. volatile unsigned char SCMD;
  36. unsigned char pad4[4];
  37. volatile unsigned short BANK;
  38. unsigned char pad5[6];
  39. volatile unsigned long ACR;
  40. volatile unsigned short secret1; /* store 0 here */
  41. volatile unsigned short ST_DMA;
  42. volatile unsigned short SP_DMA;
  43. volatile unsigned short secret2; /* store 1 here */
  44. volatile unsigned short secret3; /* store 15 here */
  45. } gvp11_scsiregs;
  46. /* bits in CNTR */
  47. #define GVP11_DMAC_BUSY (1<<0)
  48. #define GVP11_DMAC_INT_PENDING (1<<1)
  49. #define GVP11_DMAC_INT_ENABLE (1<<3)
  50. #define GVP11_DMAC_DIR_WRITE (1<<4)
  51. #endif /* else def HOSTS_C */
  52. #endif /* GVP11_H */