[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: disk image emulator on the GS - possible?
"Toinet" <antoine.vignau@laposte.net> wrote in message
7043cd4b-8156-4504-b0b3-634cb76f075a@t21g2000yqi.googlegroups.com">news:7043cd4b-8156-4504-b0b3-634cb76f075a@t21g2000yqi.googlegroups.com...
>--------------------------
Thanks for your help, I appreciate. SET_DISKSW requires a device
number which I do not have as I need to let it be set by the device
dispatcher.
Then, I have had an idea: browse the contents of your Apple II
Developer CDs and the answer is to be found here: cd1 / System 6.0
sample code / System 6 pieces / SCSI.Drivers / SCSI Driver Mgmt
The way the Apple SCSI driver works is described hereafter: have a
default empty Device Independent Block and set it as not HW related.
That's all.
When a DStatus or DInfo is performed, control is passed to a routine
(unit_state) which creates DIBs dynamically depending on the
physical / logical volumes present on the device.
Consider now that we are in the FinderExtension, we have just double-
clicked the disk image we want to add to the system, we need to tell
our driver that a new device (then volume if recognized) must come
online. That can be done of two different ways:
- call a subcall to the driver and tell it to add the volume and make
it online (if not already in the devices)
- perform like IR from M. Deatherage does: InitialLoad2 a new driver,
set the interesting values and call it
And the volume will come online because of the SET_DISKSW call that
will be performed!
Oh, I think I will enjoy my summer holidays!
antoine
-------------------------<
Yes, enjoy your holidays. It sounds like you are having fun already.
Charlie