| #
62e8ccc3
|
| 26-Dec-2023 |
Emmanuel Vadot <manu@FreeBSD.org> |
syscon: Move syscon code in dev/syscon
We've removed kernel option EXT_RESOURCES almost two years ago. While it was ok to have some code under a common 'extres' subdirectory at first, we now have a
syscon: Move syscon code in dev/syscon
We've removed kernel option EXT_RESOURCES almost two years ago. While it was ok to have some code under a common 'extres' subdirectory at first, we now have a lot of consumer of it and we made it mandatory so no need to have it under a cryptic name.
Reviewed by: mhorne Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D43196
show more ...
|
| #
685dc743
|
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
sys: Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
| #
4d846d26
|
| 10-May-2023 |
Warner Losh <imp@FreeBSD.org> |
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause.
Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
show more ...
|
| #
79794d5c
|
| 29-Sep-2022 |
Kyle Evans <kevans@FreeBSD.org> |
extres: syscon: pull in sys/malloc.h (fix !FDT)
syscon currently includes sys/malloc.h via header pollution from dev/ofw/ofw_bus.h -> dev/ofw/openfirm.h. Fix the build without FDT defined by includ
extres: syscon: pull in sys/malloc.h (fix !FDT)
syscon currently includes sys/malloc.h via header pollution from dev/ofw/ofw_bus.h -> dev/ofw/openfirm.h. Fix the build without FDT defined by including sys/malloc.h directly.
Reviewed by: andrew, imp, manu Differential Revision: https://reviews.freebsd.org/D36787
show more ...
|
| #
e35c28a2
|
| 17-Nov-2020 |
Emmanuel Vadot <manu@FreeBSD.org> |
syscon: Add syscon_get_by_ofw_node
This allow to get a syscon node defined under a specific fdt node (which isn't always the device one).
|
| #
01d0f9c0
|
| 25-Sep-2020 |
Michal Meloun <mmel@FreeBSD.org> |
Refine locking inside of syscon driver. In some cases, the syscon driver may be used by consumer requiring better control about locking (ie. it may be used as registe file provider for clock driver w
Refine locking inside of syscon driver. In some cases, the syscon driver may be used by consumer requiring better control about locking (ie. it may be used as registe file provider for clock driver which needs locked access to multiple registers). Add fine locking protocol methods together with bunch of helper functions in syscon driver and implement this functionality in syscon_generic driver.
MFC after: 4 weeks
show more ...
|
| #
7f8c4c78
|
| 18-Aug-2019 |
Michal Meloun <mmel@FreeBSD.org> |
Add method for getting of syscon handle from parent device.
If simple multifuction device also provides syscon interface, its childern should be able to consume it. Due to this: - declare corespondi
Add method for getting of syscon handle from parent device.
If simple multifuction device also provides syscon interface, its childern should be able to consume it. Due to this: - declare coresponding method in syscon interface - implement it in simple multifunction device driver
MFC after: 1 week
show more ...
|
| #
2dd13cf6
|
| 19-Mar-2019 |
Michal Meloun <mmel@FreeBSD.org> |
extres: Unify error codes for <foo>_get_by_ofw_property() methods. Return: - ENOENT if requested property doesn't exist - ENODEV if producer device is not (yet) attached - ENXIO otherwise
MFC aft
extres: Unify error codes for <foo>_get_by_ofw_property() methods. Return: - ENOENT if requested property doesn't exist - ENODEV if producer device is not (yet) attached - ENXIO otherwise
MFC after: 2 weeks
show more ...
|
| #
4b3c64f7
|
| 09-May-2018 |
Kyle Evans <kevans@FreeBSD.org> |
Remove "All Rights Reserved" on files that I hold sole copyright on
See r333391 for more detail; in summary: it holds no weight and may be removed.
|
| #
f7604b1b
|
| 09-Apr-2018 |
Oleksandr Tymoshenko <gonzo@FreeBSD.org> |
Align OF_getencprop_alloc API with OF_getencprop and OF_getprop_alloc
Change OF_getencprop_alloc semantics to be combination of malloc and OF_getencprop and return size of the property, not number o
Align OF_getencprop_alloc API with OF_getencprop and OF_getprop_alloc
Change OF_getencprop_alloc semantics to be combination of malloc and OF_getencprop and return size of the property, not number of elements allocated.
For the use cases where number of elements is preferred introduce OF_getencprop_alloc_multi helper function that copies semantics of OF_getencprop_alloc prior to this change.
This is to make OF_getencprop_alloc and OF_getencprop_alloc_multi function signatures consistent with OF_getencprop_alloc and OF_getencprop_alloc_multi.
Functionality-wise this patch is mostly rename of OF_getencprop_alloc to OF_getencprop_alloc_multi except two calls in ofw_bus_setup_iinfo where 1 was used as a block size.
show more ...
|
| #
5996fd28
|
| 13-Jan-2018 |
Kyle Evans <kevans@FreeBSD.org> |
Add SPDX tags to syscon bits, correct inconsistency in Copyright line.
|
| #
198ca831
|
| 26-Dec-2017 |
Kyle Evans <kevans@FreeBSD.org> |
extres/syscon: Commit missing bits from r327106
r327106 introduced kobj to syscon so it can be subclassed and fit in with the rest of the syscon framework. The diff for syscon.c was misapplied in a
extres/syscon: Commit missing bits from r327106
r327106 introduced kobj to syscon so it can be subclassed and fit in with the rest of the syscon framework. The diff for syscon.c was misapplied in a clean tree prior to commit, so bring it back to what was included in the review and tested. The entire file has basically been rewritten from what was present prior to the kobj work.
Pointy hat to: me
show more ...
|
| #
cd04523f
|
| 23-Dec-2017 |
Kyle Evans <kevans@FreeBSD.org> |
Move syscon into extres framework
This should help reduce confusion between syscon/syscons a little bit. syscon is a resource generally modeled by FDT platforms, and not to be confused with syscons.
|
| #
4d68f3da
|
| 23-Dec-2017 |
Kyle Evans <kevans@FreeBSD.org> |
syscon: Introduce kobj and split out fdt bits
Allow more flexibility by kobj'ifying syscon and splitting out fdt specific bits in preparation of a move to the extres framework.
The generic fdt driv
syscon: Introduce kobj and split out fdt bits
Allow more flexibility by kobj'ifying syscon and splitting out fdt specific bits in preparation of a move to the extres framework.
The generic fdt driver has been moved to syscon_generic.c and the fdt requirement has been removed from the syscon interface, as is common to the extres framework.
Reviewed by: strejda Differential Revision: https://reviews.freebsd.org/D13521
show more ...
|
| #
ce5252c4
|
| 11-Dec-2017 |
Kyle Evans <kevans@FreeBSD.org> |
Correct a typo in syscon driver 'modify' logic
Not previously caught because the current consumer (not yet in tree) doesn't use the 'modify' bits (yet).
Reported by: rpokala
|
| #
b9f5a3d3
|
| 11-Dec-2017 |
Kyle Evans <kevans@FreeBSD.org> |
Add generic 'syscon' driver
Upstream dts for allwinner will require a syscon driver, since the emac node coming in 4.15 will be using xref to /soc/syscon for configuring the emac clock. Add a generi
Add generic 'syscon' driver
Upstream dts for allwinner will require a syscon driver, since the emac node coming in 4.15 will be using xref to /soc/syscon for configuring the emac clock. Add a generic syscon driver to attach to /soc/syscon for use by if_awg, providing basic read/write functionality to consumers.
syscon driver will also be used by arm64 at least for A64+H5 emac/if_awg.
Written by: mmel Reviewed by: manu Differential Revision: https://reviews.freebsd.org/D13295
show more ...
|