home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / programm / 14822 < prev    next >
Encoding:
Text File  |  1992-08-31  |  1.9 KB  |  49 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!mcsun!sun4nl!fwi.uva.nl!maarten
  3. From: maarten@fwi.uva.nl (Maarten Carels)
  4. Subject: Re: How do I mount a SCSI device?
  5. Message-ID: <1992Sep1.091726.27915@fwi.uva.nl>
  6. Sender: news@fwi.uva.nl
  7. Nntp-Posting-Host: mail.fwi.uva.nl
  8. Organization: FWI, University of Amsterdam
  9. References: <BtuqLx.2xE@acsu.buffalo.edu> <BtuxzG.J80@world.std.com>
  10. Distribution: comp
  11. Date: Tue, 1 Sep 1992 09:17:26 GMT
  12. Lines: 35
  13.  
  14. zobkiw@world.std.com (Joe Zobkiw) writes:
  15. >In article <BtuqLx.2xE@acsu.buffalo.edu> triantos@acsu.buffalo.edu (Nick B Triantos) writes:
  16. >>Hi,
  17. >>Forgive me if this is in the FAQ, but I couldn't find it.  I'd like to write a
  18. >>program for myself that, when launched, will simply mount all SCSI devices it
  19. >>finds in the chain.  I've looked in IM for a magic SCSIMount function, or
  20. >>something reasonably close, and I can't find anything which I can understand.
  21.  
  22. >Look at the low-level File Manager calls such as PBMountVol...I think this
  23. >is what you want.
  24.  
  25. Guess not. There is much more to do for SCSI devices. You have to:
  26. - determine it's there. Try to read block 0 from the device (you'll need it
  27.   anyway). If you can't read the block, assume no device present.
  28. - using block 0, locate the driver on the disk, allocate memory in the system
  29.   heap, read the driver, and jsr to it with some parameters in registers.
  30. - the driver should post a disk inserted event for any partition it wants
  31.   to be mounted. Process all disk inserted events.
  32.  
  33. Documentation for all of this?
  34. Inside Mac volume IV and V (SCSI manager, scsi disk layout)
  35. some technotes
  36. SCSI Development package (APDA, way out of date, but it some things are only
  37. documented in comments in the example driver).
  38.  
  39. Are you sure you want to make such beastie?
  40. SCSI hacking on macintoshes is fun, but it's not easy (I know, I made disk
  41. drivers).
  42.  
  43. --maarten
  44. -- 
  45. In real life:    Maarten Carels
  46.         Computer Science Department
  47.         University of Amsterdam
  48. email:        maarten@fwi.uva.nl
  49.