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);
Input/Output operations specific to the ARM architecture.
Abstract device class interface.
Abstract Input/Output buffer.
Arch::IO m_io
Port I/O object.
virtual FileSystem::Result read(IOBuffer &buffer, Size &size, const Size offset)
Read time.
virtual FileSystem::Result initialize()
Initialize the time device.
unsigned char readCMOS(unsigned char addr)
Returns the value stored at the given address from the CMOS.
unsigned bcd2bin(unsigned char val)
Convert from binary coded decimal to binary form.
unsigned int u32
Unsigned 32-bit number.
unsigned int Size
Any sane size indicator cannot go negative.
Result
Result code for filesystem Actions.