mac_scsi.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. #ifndef MAC_NCR5380_H
  25. #define MAC_NCR5380_H
  26. #define MACSCSI_PUBLIC_RELEASE 2
  27. #ifndef ASM
  28. #ifndef CMD_PER_LUN
  29. #define CMD_PER_LUN 2
  30. #endif
  31. #ifndef CAN_QUEUE
  32. #define CAN_QUEUE 16
  33. #endif
  34. #ifndef SG_TABLESIZE
  35. #define SG_TABLESIZE SG_NONE
  36. #endif
  37. #ifndef USE_TAGGED_QUEUING
  38. #define USE_TAGGED_QUEUING 0
  39. #endif
  40. #include <scsi/scsicam.h>
  41. #define NCR5380_implementation_fields \
  42. int port, ctrl
  43. #define NCR5380_local_declare() \
  44. struct Scsi_Host *_instance
  45. #define NCR5380_setup(instance) \
  46. _instance = instance
  47. #define NCR5380_read(reg) macscsi_read(_instance, reg)
  48. #define NCR5380_write(reg, value) macscsi_write(_instance, reg, value)
  49. #define NCR5380_pread macscsi_pread
  50. #define NCR5380_pwrite macscsi_pwrite
  51. #define NCR5380_intr macscsi_intr
  52. #define NCR5380_queue_command macscsi_queue_command
  53. #define NCR5380_abort macscsi_abort
  54. #define NCR5380_bus_reset macscsi_bus_reset
  55. #define NCR5380_show_info macscsi_show_info
  56. #define NCR5380_write_info macscsi_write_info
  57. #endif /* ndef ASM */
  58. #endif /* MAC_NCR5380_H */