Article View: comp.sys.amiga.tech
Article #12353Re: Definitions for Bits in IO_Flags field on IOStdReq structure
From: Matt Dillon
Date: Tue, 25 Apr 1989 03:10
Date: Tue, 25 Apr 1989 03:10
32 lines
1504 bytes
1504 bytes
>Does ANYONE (perhaps someone at CATS) know what all of the individual bit
>positions mean in the IO_Flags field of a IOStdReq structure?? Ive noticed
>when using the console port that bits 6 and 7 get set every time that a key is
>pressed and then those two bits are cleared after being processed.. Also, bit
>5 seems to ALWAYS be set... Perhaps someone could tell me what these bits
>stand for or how I could go about finding out..
>
>Thanks in advance..
All the bits except IOF_QUICK are reserved for the IO device. Each
device will use these reserved bits in different ways.
DoIo() and SendIO() preclear all the reserved bits while BeginIO()
is a direct call to the IO device and does not touch any of the bits.
This is why you have to use BeginIO() with the audio.device, because the
audio.device expects the program to set certain flag bits depending on the
action it wishes to take.
DoIO(ior) {
ior->io_Flags = IOF_QUICK;
BeginIO(ior);
WaitIO(ior);
}
SendIO(ior) {
ior->io_Flags = 0;
BeginIO(ior);
WaitIO(ior);
}
-Matt
Technical Details
Message-ID:
<8904250310.AA16696@hermes.berkeley.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!HERMES.BERKELEY.EDU!dillonShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!HERMES.BERKELEY.EDU!dillon From: dillon@HERMES.BERKELEY.EDU (Matt Dillon) Newsgroups: comp.sys.amiga.tech Subject: Re: Definitions for Bits in IO_Flags field on IOStdReq structure Message-ID: <8904250310.AA16696@hermes.berkeley.edu> Date: 25 Apr 89 03:10:20 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 32