 74711a3b14
			
		
	
	
		74711a3b14
		
	
	
	
	
		
			
			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.
		
			
				
	
	
		
			16 lines
		
	
	
		
			313 B
		
	
	
	
		
			C
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			16 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 */
 | |
| 
 |