Go to the documentation of this file.
19 #ifndef __SERVER_TIME_TIME_H
20 #define __SERVER_TIME_TIME_H
22 #include <FreeNOS/System.h>
36 #define RTC_PORT(x) (0x70 + (x))
48 #define RTC_DAY_OF_WEEK 6
51 #define RTC_DAY_OF_MONTH 7
65 #define CMOS_YEARS_OFFS 2000
68 #define RTC_STATUS_A 10
71 #define RTC_STATUS_B 11
140 unsigned char readCMOS(
unsigned char addr);
149 unsigned bcd2bin(
unsigned char val);
virtual FileSystem::Result initialize()
Initialize the time device.
Input/Output operations specific to the ARM architecture.
unsigned bcd2bin(unsigned char val)
Convert from binary coded decimal to binary form.
Abstract device class interface.
Time(const u32 inode)
Constructor.
Abstract Input/Output buffer.
unsigned int u32
Unsigned 32-bit number.
unsigned int Size
Any sane size indicator cannot go negative.
virtual FileSystem::Result read(IOBuffer &buffer, Size &size, const Size offset)
Read time.
Result
Result code for filesystem Actions.
unsigned char readCMOS(unsigned char addr)
Returns the value stored at the given address from the CMOS.
Arch::IO m_io
Port I/O object.