CVS log for funnyos/sys/devctl.h

[BACK] Up to [local] / funnyos / sys

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.1 / (download) - annotate - [select for diffs], Sun Dec 16 23:03:00 2007 UTC (16 years, 4 months ago) by nbrk
Branch: MAIN
CVS Tags: HEAD

introducing devctl, a mechanism to talk to device drivers from other drivers or userland.
interested drivers should implement callback function (xxx_devctl) and register it with devctl_register();
once registered, all other FunnyOS subsystems should be able to pass in/out some control commands
and data to/from device driver in subject.

for example, to toggle onboard LED on/off (see next commits) one will use: devctl("gpioled", 0, DCGPIOLED_TOGGLE, NULL);
DCGPIOLED is a 'ctlcmd' and NULL is a 'ctldata'. ctlcmd is a command recognized by that driver (gpioled);

this is similar to ioctl(2) in UNIX.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb