home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
200-299
/
ff294.lzh
/
DNet
/
amiga
/
lib
/
dioctl.c
< prev
next >
Wrap
C/C++ Source or Header
|
1989-12-11
|
464b
|
28 lines
/*
* DIoctl.C
*/
#include "lib.h"
void
DIoctl(_chan, cmd, val, aux)
void *_chan;
ubyte cmd;
uword val;
ubyte aux;
{
CHANN *chan = (CHANN *)_chan;
IOSTD ior;
ior.io_Command = DNCMD_IOCTL;
ior.io_Unit = (void *)chan->chan;
ior.io_Offset = (long)chan;
ior.io_Message.mn_ReplyPort = (PORT *)chan;
ior.io_Data = (APTR)(long)((val<<16)|(aux<<8)|cmd);
PutMsg(chan->dnetport, (MSG *)&ior);
WaitMsg(&ior);
FixSignal(chan);
}