OpenGrok
Cross Reference: gfrtc.c
xref
: /
src
/
sys
/
dev
/
goldfish
/
gfrtc.c
Home
|
History
|
Annotate
|
Download
|
only in
goldfish
History log of
/src/sys/dev/goldfish/gfrtc.c
Revision
Date
Author
Comments
1.7
07-Sep-2025
thorpej
Change todr_chip_handle::cookie -> todr_chip_handle::todr_dev, and
make it a device_t. Upcoming functional changes will require the
device_t associated with a TODR device.
Change todr_chip_handle::bus_cookie -> todr_chip_handle::todr_devaux.
Nothing was using the old field, but I decided to keep it around just
in cause something needs it in the future.
And with these largely mechanical yet semantically meaningful changes,
thus spake the Oracle: "Welcome to NetBSD 11.99.2."
1.6
07-Sep-2025
thorpej
Remove unnecessary NULL-initialization of TODR handle fields.
1.5
05-Mar-2024
isaki
Fix two problems that the time runs late on virt68k.
- The time between the time the alarm occurred and the time read by
TIME_* register in the next interrupt handler was not accumulated.
- With the one-shot timer method, once the host time prolongs, the
guest time will never be able to catch up with the host time again.
New one does:
- The driver maintains its (guest's) time (as sc_alarm_time) and always
set the next alarm sc_interval_ns after the previous alarm.
- gfrtc_set_alarm() takes an absolute time instead of a relative time
as the argument.
PR kern/57980. Confirmed on QEMU.
1.4
04-Jan-2024
simonb
Fix nanosecond math in gfrtc_gettime().
1.3
02-Jan-2024
thorpej
Add support for the timer portion of the Goldfish RTC device.
1.2
31-Dec-2023
thorpej
gfrtc_settime(): Write the low half of the time valueinto the RTC_TIME_LOW
register, not the RTC_TIME_HIGH register.
1.1
29-Dec-2023
thorpej
Re-factor the Goldfish RTC driver into attach-front-end and generic
back-end; Goldfish virtual devices can be found on virtual platforms
that don't use FDT.
Indexes created Mon Oct 13 01:09:56 GMT 2025