mac_scsi.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /*
  2. * Cumana Generic NCR5380 driver defines
  3. *
  4. * Copyright 1993, Drew Eckhardt
  5. * Visionary Computing
  6. * (Unix and Linux consulting and custom programming)
  7. * drew@colorado.edu
  8. * +1 (303) 440-4894
  9. *
  10. * ALPHA RELEASE 1.
  11. *
  12. * For more information, please consult
  13. *
  14. * NCR 5380 Family
  15. * SCSI Protocol Controller
  16. * Databook
  17. *
  18. * NCR Microelectronics
  19. * 1635 Aeroplaza Drive
  20. * Colorado Springs, CO 80916
  21. * 1+ (719) 578-3400
  22. * 1+ (800) 334-5454
  23. */
  24. /*
  25. * $Log: cumana_NCR5380.h,v $
  26. */
  27. #ifndef MAC_NCR5380_H
  28. #define MAC_NCR5380_H
  29. #define MACSCSI_PUBLIC_RELEASE 2
  30. #ifndef ASM
  31. #ifndef CMD_PER_LUN
  32. #define CMD_PER_LUN 2
  33. #endif
  34. #ifndef CAN_QUEUE
  35. #define CAN_QUEUE 16
  36. #endif
  37. #ifndef SG_TABLESIZE
  38. #define SG_TABLESIZE SG_NONE
  39. #endif
  40. #ifndef USE_TAGGED_QUEUING
  41. #define USE_TAGGED_QUEUING 0
  42. #endif
  43. #include <scsi/scsicam.h>
  44. #ifndef HOSTS_C
  45. #define NCR5380_implementation_fields \
  46. int port, ctrl
  47. #define NCR5380_local_declare() \
  48. struct Scsi_Host *_instance
  49. #define NCR5380_setup(instance) \
  50. _instance = instance
  51. #define NCR5380_read(reg) macscsi_read(_instance, reg)
  52. #define NCR5380_write(reg, value) macscsi_write(_instance, reg, value)
  53. #define NCR5380_pread macscsi_pread
  54. #define NCR5380_pwrite macscsi_pwrite
  55. #define NCR5380_intr macscsi_intr
  56. #define NCR5380_queue_command macscsi_queue_command
  57. #define NCR5380_abort macscsi_abort
  58. #define NCR5380_bus_reset macscsi_bus_reset
  59. #define NCR5380_proc_info macscsi_proc_info
  60. #define BOARD_NORMAL 0
  61. #define BOARD_NCR53C400 1
  62. #endif /* ndef HOSTS_C */
  63. #endif /* ndef ASM */
  64. #endif /* MAC_NCR5380_H */