pluto.h 1002 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /* pluto.h: SparcSTORAGE Array SCSI host adapter driver definitions.
  2. *
  3. * Copyright (C) 1997 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
  4. */
  5. #ifndef _PLUTO_H
  6. #define _PLUTO_H
  7. #include "../fc4/fcp_impl.h"
  8. struct pluto {
  9. /* This must be first */
  10. fc_channel *fc;
  11. char rev_str[5];
  12. char fw_rev_str[5];
  13. char serial_str[13];
  14. };
  15. struct pluto_inquiry {
  16. u8 dtype;
  17. u8 removable:1, qualifier:7;
  18. u8 iso:2, ecma:3, ansi:3;
  19. u8 aenc:1, trmiop:1, :2, rdf:4;
  20. u8 len;
  21. u8 xxx1;
  22. u8 xxx2;
  23. u8 reladdr:1, wbus32:1, wbus16:1, sync:1, linked:1, :1, cmdque:1, softreset:1;
  24. u8 vendor_id[8];
  25. u8 product_id[16];
  26. u8 revision[4];
  27. u8 fw_revision[4];
  28. u8 serial[12];
  29. u8 xxx3[2];
  30. u8 channels;
  31. u8 targets;
  32. };
  33. /* This is the max number of outstanding SCSI commands per pluto */
  34. #define PLUTO_CAN_QUEUE 254
  35. int pluto_detect(struct scsi_host_template *);
  36. int pluto_release(struct Scsi_Host *);
  37. const char * pluto_info(struct Scsi_Host *);
  38. int pluto_slave_configure(struct scsi_device *);
  39. #endif /* !(_PLUTO_H) */