Subject: creating new ioctls
To: port-mac68k Mailing List <port-mac68k@NetBSD.ORG>
From: Colin Wood <cwood@ichips.intel.com>
List: port-mac68k
Date: 08/03/1997 17:06:39
I need to add a couple of new ioctl calls to the ite interface on the
mac68k port, and I was wondering how I do this?  I can see what code I
need to add to ite.c, but what I was really wondering was how do I set it
up in iteioctl.h?  In other words, the ioctl's I see are declared like 
this:

#define ITEIOC_GETBELL            _IOR('I', 128, struct bellparams)
#define ITEIOC_SETBELL            _IOW('I', 129, struct bellparams)
#define ITEIOC_RINGBELL            _IO('I', 130)

I know basically how this works, too, but how do I pick the number for a
new one?  Can I just use 131?  Are there any other files that need to be
modified to in order to make this work?

Any help would be appreciated.

Thanks.

-- 
Colin Wood                                 cwood@ichips.intel.com
Component Design Engineer - MD6                 Intel Corporation
-----------------------------------------------------------------
I speak only for myself, not for my employer.