<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/dev/ofw, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>ofw: bool-ify OF_hasprop()</title>
<updated>2026-04-16T14:12:41+00:00</updated>
<author>
<name>Mitchell Horne</name>
<email>mhorne@FreeBSD.org</email>
</author>
<published>2026-04-16T14:12:41+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=b60cd486a652f0427e525b4482ac598be5460459'/>
<id>b60cd486a652f0427e525b4482ac598be5460459</id>
<content type='text'>
Adjust the function signature and the few callers that don't treat it
this way already.

This is style only; no functional change intended.

Reviewed by:	andrew
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D56203
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Adjust the function signature and the few callers that don't treat it
this way already.

This is style only; no functional change intended.

Reviewed by:	andrew
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D56203
</pre>
</div>
</content>
</entry>
<entry>
<title>OFW: Improve OFW_CPU.</title>
<updated>2026-02-22T17:53:27+00:00</updated>
<author>
<name>Michal Meloun</name>
<email>mmel@FreeBSD.org</email>
</author>
<published>2025-11-06T19:01:18+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=4840558e521934345793ef83b0d45a72fd615a7b'/>
<id>4840558e521934345793ef83b0d45a72fd615a7b</id>
<content type='text'>
Accept the assigned clock on the CPU node.
Don't report a missing "clock-frequency" property if the CPU node has
a "clocks" property.

MFC after:	3 weeks
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Accept the assigned clock on the CPU node.
Don't report a missing "clock-frequency" property if the CPU node has
a "clocks" property.

MFC after:	3 weeks
</pre>
</div>
</content>
</entry>
<entry>
<title>bus_alloc_resource: Pass rid by value to BUS_ALLOC_RESOURCE DEVMETHOD</title>
<updated>2025-12-09T20:00:06+00:00</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2025-12-09T19:59:21+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=575639548cef58590a1d70c29e47aae0e8d44153'/>
<id>575639548cef58590a1d70c29e47aae0e8d44153</id>
<content type='text'>
The wrapper functions such as bus_alloc_resource_any() still support
passing the rid by value or pointer, but the underlying implementation
now passes by value.

Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D53402
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The wrapper functions such as bus_alloc_resource_any() still support
passing the rid by value or pointer, but the underlying implementation
now passes by value.

Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D53402
</pre>
</div>
</content>
</entry>
<entry>
<title>ofw: Add ofw_bus_is_machine_compat().</title>
<updated>2025-12-03T06:47:41+00:00</updated>
<author>
<name>Michal Meloun</name>
<email>mmel@FreeBSD.org</email>
</author>
<published>2025-11-06T18:50:52+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=d14a985898eebd3bda8bb30c4078bde3ebd135f2'/>
<id>d14a985898eebd3bda8bb30c4078bde3ebd135f2</id>
<content type='text'>
We need a quick way to identify a given machine (SoC), mainly when
implementing quirks for a given SoC.

MFC after:	2 weeks
Reviwed by:	imp
Differential Revision:  https://reviews.freebsd.org/D53992
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We need a quick way to identify a given machine (SoC), mainly when
implementing quirks for a given SoC.

MFC after:	2 weeks
Reviwed by:	imp
Differential Revision:  https://reviews.freebsd.org/D53992
</pre>
</div>
</content>
</entry>
<entry>
<title>dev/ofw: Teach ofw_cpu to find the pcpu on arm64</title>
<updated>2025-11-18T18:00:29+00:00</updated>
<author>
<name>Andrew Turner</name>
<email>andrew@FreeBSD.org</email>
</author>
<published>2025-11-18T18:00:29+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=6b12b94c8fd2d5d85060d02620ed807ac6233f71'/>
<id>6b12b94c8fd2d5d85060d02620ed807ac6233f71</id>
<content type='text'>
Use the midr value to ensure we find the correct PCPU pointer on arm64.

Sponsored by:	Arm Ltd
Differential Revision:	https://reviews.freebsd.org/D53327
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use the midr value to ensure we find the correct PCPU pointer on arm64.

Sponsored by:	Arm Ltd
Differential Revision:	https://reviews.freebsd.org/D53327
</pre>
</div>
</content>
</entry>
<entry>
<title>dev/ofw: Register the ofw_cpu xref</title>
<updated>2025-10-27T11:36:18+00:00</updated>
<author>
<name>Andrew Turner</name>
<email>andrew@FreeBSD.org</email>
</author>
<published>2025-10-27T10:57:54+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=d539f2d9d2ce88f295567578d0e7a3b49d45544b'/>
<id>d539f2d9d2ce88f295567578d0e7a3b49d45544b</id>
<content type='text'>
This allows it to be referenced by other devices.

Reviewed by:	jhibbits
Sponsored by:	Arm Ltd
Differential Revision:	https://reviews.freebsd.org/D53329
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This allows it to be referenced by other devices.

Reviewed by:	jhibbits
Sponsored by:	Arm Ltd
Differential Revision:	https://reviews.freebsd.org/D53329
</pre>
</div>
</content>
</entry>
<entry>
<title>dev/ofw: Move ofw_cpu earlier</title>
<updated>2025-10-27T11:36:18+00:00</updated>
<author>
<name>Andrew Turner</name>
<email>andrew@FreeBSD.org</email>
</author>
<published>2025-10-27T10:57:44+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=87cea227e1945a8aa808b72d210f9a391be9b234'/>
<id>87cea227e1945a8aa808b72d210f9a391be9b234</id>
<content type='text'>
Move ofw_cpu to BUS_PASS_CPU + BUS_PASS_ORDER_MIDDLE so it can be used
by other devices.

Reviewed by:	jhibbits
Sponsored by:	Arm Ltd
Differential Revision:	https://reviews.freebsd.org/D53328
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Move ofw_cpu to BUS_PASS_CPU + BUS_PASS_ORDER_MIDDLE so it can be used
by other devices.

Reviewed by:	jhibbits
Sponsored by:	Arm Ltd
Differential Revision:	https://reviews.freebsd.org/D53328
</pre>
</div>
</content>
</entry>
<entry>
<title>dev/ofw: Add interrupt-map support</title>
<updated>2025-07-21T12:07:14+00:00</updated>
<author>
<name>Andrew Turner</name>
<email>andrew@FreeBSD.org</email>
</author>
<published>2025-07-21T11:46:12+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=7fcdbfc9baf5c5b6ba920df2b0afc1ce1ee4e58f'/>
<id>7fcdbfc9baf5c5b6ba920df2b0afc1ce1ee4e58f</id>
<content type='text'>
Follow interrupt-map properties until either an interrupt controller or
invalid node is found. In the former case return the translated details
for the interrupt controller driver to decode. In the latter case return
0 as an error.

Tested on the Arm DTS files that use interrupt-maps and with a
userspace test.

Sponsored by:	Arm Ltd
Differential Revision:	https://reviews.freebsd.org/D51257
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Follow interrupt-map properties until either an interrupt controller or
invalid node is found. In the former case return the translated details
for the interrupt controller driver to decode. In the latter case return
0 as an error.

Tested on the Arm DTS files that use interrupt-maps and with a
userspace test.

Sponsored by:	Arm Ltd
Differential Revision:	https://reviews.freebsd.org/D51257
</pre>
</div>
</content>
</entry>
<entry>
<title>machine/stdarg.h -&gt; sys/stdarg.h</title>
<updated>2025-06-11T16:39:02+00:00</updated>
<author>
<name>Brooks Davis</name>
<email>brooks@FreeBSD.org</email>
</author>
<published>2025-06-11T16:39:02+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=e453e498cbb88570a3ff7b3679de65c88707da95'/>
<id>e453e498cbb88570a3ff7b3679de65c88707da95</id>
<content type='text'>
Switch to using sys/stdarg.h for va_list type and va_* builtins.

Make an attempt to insert the include in a sensible place.  Where
style(9) was followed this is easy, where it was ignored, aim for the
first block of sys/*.h headers and don't get too fussy or try to fix
other style bugs.

Reviewed by:	imp
Exp-run by:	antoine (PR 286274)
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1595
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Switch to using sys/stdarg.h for va_list type and va_* builtins.

Make an attempt to insert the include in a sensible place.  Where
style(9) was followed this is easy, where it was ignored, aim for the
first block of sys/*.h headers and don't get too fussy or try to fix
other style bugs.

Reviewed by:	imp
Exp-run by:	antoine (PR 286274)
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1595
</pre>
</div>
</content>
</entry>
<entry>
<title>openfirm: Add OF_device_unregister_xref</title>
<updated>2025-04-03T14:03:44+00:00</updated>
<author>
<name>Emannuel Vadot</name>
<email>manu@FreeBSD.org</email>
</author>
<published>2025-04-03T13:54:41+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=944eda42fa6e449ec802958d41302e71a125ca5f'/>
<id>944eda42fa6e449ec802958d41302e71a125ca5f</id>
<content type='text'>
When a device fails to attach, or a module is unloaded, we want to be
able to unregister the xref as the device goes away.  While the device_t
may still be valid, it won't be providing whatever functionality the
consumer that follows the xref wants it for and thus, we should not
keep it discoverable.

[Commit message re-worded by kevans@]

Reviewed by:	ian, imp
Differential Revision:	https://reviews.freebsd.org/D22945
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When a device fails to attach, or a module is unloaded, we want to be
able to unregister the xref as the device goes away.  While the device_t
may still be valid, it won't be providing whatever functionality the
consumer that follows the xref wants it for and thus, we should not
keep it discoverable.

[Commit message re-worded by kevans@]

Reviewed by:	ian, imp
Differential Revision:	https://reviews.freebsd.org/D22945
</pre>
</div>
</content>
</entry>
</feed>
