History log of /src/sys/dev/goldfish/
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base perseant-exfatfs-base-20240630 perseant-exfatfs-base
1.3 02-Jan-2024 thorpej

Add support for the Goldfish virtual TTY. This is only enough for
early console; the rest will come later.


1.2 02-Jan-2024 thorpej

Add support for the Goldfish virtual programmable interrupt controller.


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.


Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base perseant-exfatfs-base-20240630 perseant-exfatfs-base
1.2 24-Apr-2024 thorpej

Remove a superflouous printf().


1.1 02-Jan-2024 thorpej

Add support for the Goldfish virtual programmable interrupt controller.


Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base perseant-exfatfs-base-20240630 perseant-exfatfs-base
1.1 02-Jan-2024 thorpej

Add support for the Goldfish virtual programmable interrupt controller.


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.


Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base perseant-exfatfs-base-20240630 perseant-exfatfs-base
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.


Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base perseant-exfatfs-base-20240630 perseant-exfatfs-base
1.2 02-Jan-2024 thorpej

Add support for the timer portion of the Goldfish RTC device.


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.


1.5 11-Dec-2025 andvar

Fix various typos in comments.


1.4 04-Oct-2025 thorpej

Use device_{get,set}prop_bool() for "is-console".


Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base perseant-exfatfs-base-20240630 perseant-exfatfs-base
1.3 06-Jan-2024 thorpej

Put some meat on the bones of the Goldfish TTY driver. Works well enough
for sysinst.


1.2 02-Jan-2024 thorpej

Fix file-copy-o.


1.1 02-Jan-2024 thorpej

Add support for the Goldfish virtual TTY. This is only enough for
early console; the rest will come later.


Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base perseant-exfatfs-base-20240630 perseant-exfatfs-base
1.2 06-Jan-2024 thorpej

Put some meat on the bones of the Goldfish TTY driver. Works well enough
for sysinst.


1.1 02-Jan-2024 thorpej

Add support for the Goldfish virtual TTY. This is only enough for
early console; the rest will come later.