home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / sun / admin / 6235 < prev    next >
Encoding:
Text File  |  1992-09-09  |  3.9 KB  |  89 lines

  1. Newsgroups: comp.sys.sun.admin
  2. Path: sparky!uunet!munnari.oz.au!manuel!csis!davidk
  3. From: davidk@csis.dit.csiro.au (David Keightley)
  4. Subject: SCSA SCSI driver development
  5. Message-ID: <1992Sep10.015234.5032@csis.dit.csiro.au>
  6. Summary: non-tape non-disk SCSA SCSI device driver development questions
  7. Keywords: SCSA SCSI SPARC driver device
  8. Organization: CSIRO Division of Information Technology
  9. Date: Thu, 10 Sep 1992 01:52:34 GMT
  10. Lines: 77
  11.  
  12. Hello,
  13.  
  14. I'm developing a SCSI driver for a Sun SPARCstation, and I've run into
  15. a couple of problems.  I'm not totally ignorant of the driver development
  16. process, I've developed two drivers for Suns (loadable, 1-block, 1-character)
  17. and one for a PC running Unix, but I've never written a SCSI driver before.
  18. I intend to use Sun's SCSA, but I may not make the first SCSI driver mod-
  19. loadable.  Firstly I want to get things talking via ioctl()s, then I'll add
  20. block transfers with a startegy() call.
  21.  
  22. Here is a start:
  23.  
  24. The device I'm connecting is not a tape or disk, but is an interactive visuali-
  25. sation system we are developing in conjunction with two universities.  The 
  26. device has a SCSI I/O controller board connected to a FutureBus plus chassis
  27. containing a DSP array and display driver.  
  28.  
  29. The device driver is pretty ignorant, and is used only to move data across
  30. the H/W boundary, no device address space is mapped into Host space.
  31.  
  32. 1.) I want to add my device to the CONFIG file (mine is called CSIS.PIPADS)
  33. but I'm not certain how to classify the device.  The config file
  34. contains the following SCSI entries (just a couple here):
  35.  
  36. scsibus0 at esp                         # declare first scsi bus
  37. disk sd0 at scsibus0 target 3 lun 0     # first hard SCSI disk
  38. disk sd1 at scsibus0 target 1 lun 0     # second hard SCSI disk
  39. disk sd2 at scsibus0 target 2 lun 0     # third hard SCSI disk
  40. disk sd3 at scsibus0 target 0 lun 0     # fourth hard SCSI disk
  41. tape st0 at scsibus0 target 4 lun 0     # first SCSI tape
  42. tape st1 at scsibus0 target 5 lun 0     # second SCSI tape
  43.  
  44. This goes on.
  45.  
  46. I can add my device, but does it matter what I call it?  It isn't a tape 
  47. or disk, so "disk sd.." and "tape st.." seem incorrect.  If I dump the
  48. file called driver in the same directory I get the following:
  49.  
  50. scsi/targets/sd_conf.c          optional sd scsibus
  51. scsi/targets/sd.c               optional sd scsibus
  52. scsi/targets/sf.c               optional sf scsibus not-supported
  53. scsi/targets/sg.c               optional sg scsibus not-supported
  54. scsi/targets/sr.c               optional sr scsibus
  55. scsi/targets/st_conf.c          optional st scsibus
  56. scsi/targets/st.c               optional st scsibus
  57.  
  58. Is my device an sf, sg, or sr? 
  59.  
  60.  
  61. 2.) Are SCSA SCSI drivers modloadable?  I didn't have any trouble with
  62. the last driver I wrote for a Sun, but it doesn't look clear to me how 
  63. to make the SCSI driver loadable.  If anyone out there has had experience
  64. with this I'd love to set up a dialogue.
  65.  
  66. 3.) I will post my results and as much of the driver as I legally can.  There
  67. are some Intellectual Property constraints on me, but not too strict.  Certainly
  68. I can help others a bit with the process once I've been through it.
  69.  
  70. Thanks very much
  71.  
  72. David Keightley
  73. +-------------------------------------------------------+
  74. | Name     : David E. Keightley                         |
  75. | Title    : Project Manager, Visualisation Group       |
  76. | Internet : davidk@csis.dit.csiro.au                   |
  77. | Voice    : +61-6-2750908                              |
  78. | Fax      : +61-6-2571052                              |
  79. | Postal   : CSIRO Division of Information Technology,  |
  80. |            GPO Box 664, Canberra ACT 2601             |
  81. |            AUSTRALIA                                  |
  82. +-------------------------------------------------------+
  83.  
  84. -- 
  85.  
  86. +-------------------------------------------------------+
  87. | Name     : David E. Keightley                         |
  88. | Title    : Project Manager, Visualisation Group       |
  89.