HomeFreeBSD

Add common code to support realtime clocks that store year without century.

Description

Add common code to support realtime clocks that store year without century.

Most realtime clocks store the year as 2 BCD digits. Some add a century bit
to extend the range another hundred years. Every clock driver has its own
code to determine the century and pass a full year value to clock_ct_to_ts().
Now clock drivers can just convert BCD to bin and store the result in the
clocktime struct and let the common code figure out the century. Clocks
with a century bit can just add 100 to year if the century bit is on.

Details

Provenance
ianAuthored on
Parents
rS321399: Change my email address to wulf@FreeBSD.org in copyright headers.
Branches
Unknown
Tags
Unknown