History log of /src/sys/kern/device_calls
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.4 04-Oct-2025 thorpej

Add a platform device tree passthrough for device properties. First,
the device's properties dictionary is consulted, and if it doesn't have
what we're looking for, we go ask the platform device tree. The upshot
is that we can g/c (or not have to add) code that duplicates values from
the device tree into the properties dictionary (either in something like
device_register() or in a driver attachment front-end -- there are multiple
example of both in the system, currently), and everyone gets to use a
consistent interface (which will, over time, allow more code to de-duplicated).

Implement back-ends for ACPI, Sun OpenBoot, and OpenFirmware (including FDT).


# 1.3 03-Oct-2025 thorpej

Add a device_register() hook for the platform device tree. For ACPI and
OpenFirmware (including FDT), use this to record the firmware path to
the device in the "device-path" property.


# 1.2 08-Sep-2025 thorpej

Introduce a device call "device-is-system-todr", which allows the
platform device tree to be consulted if there are multiple TODR / RTC
devices present on the system; if the call is not supported, the behavior
is un-changed: the first TODR device is attached, all others ignored. If
the call is supported, devices other than the specified system TODR are
skipped.

Implement this device call for FDT.

kern/59630


Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base netbsd-10-1-RELEASE perseant-exfatfs-base-20240630 perseant-exfatfs-base netbsd-10-0-RELEASE netbsd-10-0-RC6 netbsd-10-0-RC5 netbsd-10-0-RC4 netbsd-10-0-RC3 netbsd-10-0-RC2 thorpej-ifq-base thorpej-altq-separation-base netbsd-10-0-RC1 netbsd-10-base bouyer-sunxi-drm-base
# 1.1 15-Sep-2021 thorpej

Device call interface definition files for the "device" and "pci"
subsystems.