[comp.sys.amiga] Problem with trackdisk.device

carolyn@cbmvax.UUCP (Carolyn Scheppner CATS) (06/08/88)

In article <3822@pasteur.Berkeley.Edu> koster@cory.Berkeley.EDU.UUCP (Kevin Oster) writes:
>I am having trouble accessing the disk hardware directly. It seems that
>there is an interrupt server that works with the trackdisk.device that
>sets up the hardware registers the way it sees fit to set them on a regular
>basis, about one second intervals...

Well, at the very least, you have to make AmigaDOS stop looking at the
drive.  You must send an ACTION_INHIBIT packet to the MsgPort of the
drive's dos process (DeviceProc("df1:")).  Look for recently posted
(an on Fish disk) Conpackets.c for an example of sending a packet.

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Carolyn Scheppner -- CATS   >>Commodore Amiga Technical Support<<
                     UUCP  ...{allegra,ihnp4,rutgers}!cbmvax!carolyn 
                     PHONE 215-431-9180
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

bryce@cbmvax.UUCP (Bryce Nesbitt) (06/09/88)

In article <> koster@cory.Berkeley.EDU.UUCP (Kevin Oster) writes:
|
|I am having trouble accessing the disk hardware directly. It seems that
|there is an interrupt server that works with the trackdisk.device that
|sets up the hardware registers the way it sees fit to set them on a regular
|basis...
|   It's things like this that make me want to murder the Amiga software
|design team.

Maybe you really want to kill the documentation team :-).  There is
a prefect, defined, multitasking mechanism for getting to the disk
hardware.  It's called the "disk.resource", and the RKM contains
documentation for it.  See "disk.doc" and "GetUnit".