Quote:
Originally Posted by StingRay
For bootblock use I think there only need to be CloseDevice() calls added, the rest should be fine.
|
That's really not so bad then, and I agree that seems reasonable since no I/O gets issued on the IOReq.
I also like ross's approach but would probably do direct hw access and ignore trackdisk rather than grubbing in its device structure. It would be pretty simple to find valid drives by:
* All motors off
* DF0: is valid if: select unit 0 and check CIAAPRA_CHNG=1
* DFn: (n!=0) is valid if: select unit n and check CIAAPRA_RDY=0, CIAAPRA_CHNG=1.
Then check for disk tag on the filtered set of valid DFn.
So that's two nice methods