#
1.7 |
|
12-Oct-2022 |
kettenis |
Extend struct todr_chip_handle with a todr_quality member. This allows us to assign a quality to RTC implementation and pick the "best" RTC if a system has multiple RTCs (or multiple interfaces to an RTC). This allows us to prefer a battery-backed I2C RTC over an RTC that is part of the SoC which is only running of the SoC is powered. It also allows us to work around issues with firmware RTC interfaces that may lie to us or even crash the system.
This change makes sure the todr_quality member of the struct is always initialized. In most cases the quality will be set to zero; further adjustments of the quality for specific subsystems/architectures will follow.
ok cheloha@, patrick@
|
Revision tags: OPENBSD_7_1_BASE OPENBSD_7_2_BASE
|
#
1.6 |
|
24-Oct-2021 |
mpi |
Constify struct cfattach.
ok visa@ a long time ago
|
Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE
|
#
1.5 |
|
29-Aug-2018 |
dlg |
move the todr chip handle into a prtc_softc structure
no realy change, this avoid having to allocate the todr struct in attach
ok deraadt@
|
#
1.4 |
|
28-Aug-2018 |
dlg |
add support for storing the time of day on OPL based machines.
this let's me pull the date back from 2023 to 2018, and have it stay like that after a reboot.
ok deraadt@
|
Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
|
#
1.3 |
|
10-May-2014 |
kettenis |
Fix formwat string. Cast pointer to long and print it using %lx since %p prefixes the address with 0x which we want to avoid here.
|
Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
|
#
1.2 |
|
10-Jul-2008 |
kettenis |
Add support for getting the time of day on the m4k.
|
#
1.1 |
|
13-Mar-2008 |
kettenis |
First shot at a driver to get the time-of-day on the e10k.
|
#
1.6 |
|
24-Oct-2021 |
mpi |
Constify struct cfattach.
ok visa@ a long time ago
|
Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE
|
#
1.5 |
|
29-Aug-2018 |
dlg |
move the todr chip handle into a prtc_softc structure
no realy change, this avoid having to allocate the todr struct in attach
ok deraadt@
|
#
1.4 |
|
28-Aug-2018 |
dlg |
add support for storing the time of day on OPL based machines.
this let's me pull the date back from 2023 to 2018, and have it stay like that after a reboot.
ok deraadt@
|
Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
|
#
1.3 |
|
10-May-2014 |
kettenis |
Fix formwat string. Cast pointer to long and print it using %lx since %p prefixes the address with 0x which we want to avoid here.
|
Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
|
#
1.2 |
|
10-Jul-2008 |
kettenis |
Add support for getting the time of day on the m4k.
|
#
1.1 |
|
13-Mar-2008 |
kettenis |
First shot at a driver to get the time-of-day on the e10k.
|
#
1.5 |
|
29-Aug-2018 |
dlg |
move the todr chip handle into a prtc_softc structure
no realy change, this avoid having to allocate the todr struct in attach
ok deraadt@
|
#
1.4 |
|
28-Aug-2018 |
dlg |
add support for storing the time of day on OPL based machines.
this let's me pull the date back from 2023 to 2018, and have it stay like that after a reboot.
ok deraadt@
|
Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
|
#
1.3 |
|
10-May-2014 |
kettenis |
Fix formwat string. Cast pointer to long and print it using %lx since %p prefixes the address with 0x which we want to avoid here.
|
Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
|
#
1.2 |
|
10-Jul-2008 |
kettenis |
Add support for getting the time of day on the m4k.
|
#
1.1 |
|
13-Mar-2008 |
kettenis |
First shot at a driver to get the time-of-day on the e10k.
|
Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
|
#
1.3 |
|
10-May-2014 |
kettenis |
Fix formwat string. Cast pointer to long and print it using %lx since %p prefixes the address with 0x which we want to avoid here.
|
Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
|
#
1.2 |
|
10-Jul-2008 |
kettenis |
Add support for getting the time of day on the m4k.
|
#
1.1 |
|
13-Mar-2008 |
kettenis |
First shot at a driver to get the time-of-day on the e10k.
|