minix/include/sys/ioc_cmos.h
Jorrit Herder 74711a3b14 Check if kernel calls is allowed (from process' call mask) added. Not yet
enforced. If a call is denied, this will be kprinted. Please report any such
errors, so that I can adjust the mask before returning errors instead of
warnings.

Wrote CMOS driver. All CMOS code from FS has been removed. Currently the
driver only supports get time calls. Set time is left out as an exercise
for the book readers ... startup scripts were updated because the CMOS driver
is needed early on. (IS got same treatment.) Don't forget to run MAKEDEV cmos
in /dev/, otherwise the driver cannot be loaded.
2005-08-04 19:23:03 +00:00

15 lines
313 B
C
Executable file

/* sys/ioc_cmos.h - CMOS ioctl() command codes.
*/
#ifndef _S_I_CMOS_H
#define _S_I_CMOS_H
#include <minix/ioctl.h>
#define CIOCGETTIME _IOR('c', 1, u32_t)
#define CIOCGETTIMEY2K _IOR('c', 2, u32_t)
#define CIOCSETTIME _IOW('c', 3, u32_t)
#define CIOCSETTIMEY2K _IOW('c', 4, u32_t)
#endif /* _S_I_CMOS_H */